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:

Parameters chook members


Recommended Posts

Hi guys,

 

I'm trying to play with the struct prm_chook when creating a new operation.

 

Takashi already suggested roughly how the creation of a new chook operation could be done in the following thread

 

http://www.emastercam.com/ubb/ultimatebb.p...t=000416#000001

 

Have someone used these members succesfully :

code:

chook_name, opmgr_prm, opmgr_tool, opmgr_geom, regen_nci, opmgr_nciL, opmgr_nciR ?

Thanks a lot !!

 

--Titus

Link to comment
Share on other sites

Hello guys,

 

Just a quick update, I found I could use

 

DllImpExp void set_init_op_use_prev_op_same_type ( MC_BOOL use_prev_op )

 

 

in order to copy other operation data, however the challenge would be to be able to set every property upon creation of an operation as Takashi suggested.

 

The issue I'm having actually is that setting these properties individually, I'm getting errors like "Program entry point not found" rather than performing tasks.

 

Any hint will be really appreciated !! Thanks !

 

--Titus

Link to comment
Share on other sites

Hi guys,

 

FYI, I found the issue. I was doing this as Takashi suggested, I mean

code:

strcpy( op.u.chook.opmgr_txt, "my chook toolpath!!!");	

strcpy( op.u.chook.chook_name, "chook.dll");

strcpy( op.u.chook.opmgr_prm, "ParametersFunction"); // chook's function to call when op's parameters are selected in the Operation Manager

however my function ParametersFunction wasn't declared as

code:

extern "C" __declspec(dllexport) 

Thanks for your help !!

 

--Titus

Link to comment
Share on other sites

Thanks Titus, wink.gif

 

I was looking for this function!

code:

 

DllImpExp void set_init_op_use_prev_op_same_type ( MC_BOOL use_prev_op )

 


I just made prmdef.dll for X in a few minutes.

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

 

However, I think prmdef.dll will be added in the next release..

quote:

This has been previously logged as enhancement request number cnc00028175. Thank you.


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...