Register now to participate in the forums, access the download area, buy Mastercam training materials, post processors and more. This message will be removed once you have signed in.
Use your display name or email address to sign in:
I see it usually in X6, normally just before a crash. I dont necessarily get it when posting, and I assume it's a memory leak. I just restart MasterCam.
I copied the text "blank page" from your post above, and pasted it into the Search Function. I believe the second or third hit down was your topic.
See? You ARE learning something new from the Forums every day
The GroupData and OpData arrays come back as NOTHING ["If IsNothing(GroupData) Then"...] ... which is the way they were sent out to the function.
I just emailed the test.mcx-7 file out
Thanx, Roger
I'm having a bit of trouble getting 'GetOpGroupDataInExternalFile' to run with success.
Using X7, and attempting to read in an X7 file which contains Operations. The function always returns FALSE.
dropped the following code into my Run Function:
Dim FileSpec As String = "C:\TMP\TEST.MCX-7"
Dim success As Boolean = False
Dim OpData() As ExternalOpsFileData = Nothing
Dim GroupData() As ExternalGroupsFileData = Nothing
success = SearchManager.GetOpGroupDataInExternalFile(FileSpec, GroupData, OpData)
Any idea what I'm doing wrong ?
Here's another version that a new guy might find easier to follow:
This will change the machine to the MasterCam supplied machine named "MILL 3 - AXIS HMC MM.MMD-6"
it looks in the default folder "C:\Users\Public\Documents\shared Mcamx6\CNC_MACHINES\", which is the default folder in Mcx6, and Windows 7 :
Sub Main()
' -- Add code here...
' define a variable for your machine folder
Dim MachineFolder
MachineFolder="C:\Users\Public\Documents\shared Mcamx6\CNC_MACHINES\"
' define a variable for the machine (.mmd-6)
Dim MachineName
MachineName="MILL 3 - AXIS HMC MM.MMD-6"
' define a variable to tell us whether we suceeded or not
Dim Success
' change the current machine to what we have above
Success=SetActiveMachine(MachineFolder & MachineName)
' pop up box to tell us the results
If Success = True Then ' we changed the machine
ShowString "Machine Def was successfully changed"
Else
ShowString "Machine Def change was unsuccessfull" ' something went wrong
End If
End Sub
Those are some pretty bold claims for an initial release of a product. Are you an employee of CNC, Inc, or do you have any data to back up these opinions ?
I cant offer much now, except this hit using advanced search:
http://www.emastercam.com/board/index.php?showtopic=73121&hl=%2Binvalid+%2Bprocedure+%2Bcall+%2Bargument
my search terms are in the URL
maybe if you PM the OP ASAP (ha ha, i had to do that last one) he might have something to offer
We see and hear this constantly - the print was made "auto-magically", and we end up with hundreds of threads dimensioned +-.005 on thread depths, because that was the default supplied dimension. No other reason.
I've suddenly had this very problem for the last 9 days or so. And to hear someone else speak of it, means either I'm not insane, or it's a conspiracy. I'd take either, at this point. What I see is that the right-click functionality in the Level manager disappears. And if there are equivalent HotKey replacements, I don't know of them.
I'm currently in the middle of a large Parametric project in Mcx. So I'm copying chunks of Layered geometry and entire Toolpath folders for never ending "redefinition". It would be real nice if I could set the current level.
We use MPMaster as a base for all our 3-4 axis machines. We use Reverse Wear comp, almost exclusively. Never had a problem. First place I'd look is any incompatibilities between your post and your Control Definirion.
He might just find the extra effort necessary. If I'm plotting which could essentially be a Legal Document to a customer, I'd want total control over the process.
And Acad can give you that total control. And, it unfortunately hasn't been replaced in that regard.
And I'd be willing to bet, that 51% of the lurkers that read this, will agree .... I calculated this, on my SLIDE RULE
The .ft file did the trick. Many times, when I'm trying something out quick, I will just put a shortcut to the nethook from the \bin directory of the vb project. Saves time.
But I still don't understand why the .ft file works. Especially given the conversation we had about something similar, in This Post
Ive been trying to grab an event (MCamEvent.Pre_File_Open) with no success.
I have the following code in my MyBase.Notify event:
Public Overrides Function Notify(ByVal event_code As MCamEvent) As MCamReturn
Select Case event_code
Case MCamEvent.Pre_File_Open
MsgBox("opening file")
End Select
Return MyBase.Notify(event_code)
End Function
and I also have the following in MyBase.Close:
Public Overrides Function Close(ByVal param As Integer) As MCamReturn
MsgBox("chook closing")
Return MCamReturn.NoErrors
End Function
But I get nothing but the close event, immediately. Even if I load a form in MyBase.Run ... I get the "chook closing" message, and the form still sits there, but no
event fires when I load different files.
Is there something else I should be doing ?
eMastercam - your online source for all things Mastercam.
Together, we are the strongest Mastercam community on the web with over 56,000 members, and our online store offers a wide selection of training materials for all applications and skill levels.