Jump to content

Welcome to eMastercam

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:

error: 1 duplicate entities were not brought in


Recommended Posts

MCFile.GetOperations() function seems calling MCFile.OpenMC() internally.

 

I have not tried following code..but it may work.

code:

MCFile.SaveMCAs(mcamName,1)' Save cuurent

MCFile.NewMC(0) ' Reset Database

MCFile.GetOperations(mcamName,array) ' Open File and Read op arraylist...

 


Visual Studio Tool Menu -> IL Dasm, and open nethook.dll for disassembled code.

 

code:

     bool GetOperations(string PathName, ArrayList arrOps)

{

if (!OpenMC(PathName))

{

return false;

}

 


So I added MCFunc.GetOperations()function to MCHook.dll

http://ai-sols.sytes.net/download/nethook_test4.zip

 

[ 11-05-2006, 12:49 AM: Message edited by: MasterShake ]

Link to comment
Share on other sites

Thanks for helping me MasterShake, You helped me really much. Now I can go without problems through the Operations.

 

quote:

MCFile.SaveMCAs(mcamName,1)' Save cuurentMCFile.NewMC(0) ' Reset DatabaseMCFile.GetOperations(mcamName,array) ' Open File and Read op arraylist...

To save first the file is not a good way I think to solve the problem, but with your hook it works fine.

 

Ekke

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.

Join us!

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.

Follow us

×
×
  • Create New...