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:

stepnc

Members
  • Posts

    5
  • Joined

  • Last visited

Recent Profile Visitors

152 profile views

stepnc's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. I am using C++. I cut and paste your code into my program with no luck. Do you know what library contains this function? Right now my list of additional dependencies is: UICtrls.lib MCMill.lib MCCore.lib Mastercam.lib MCMachineDef.lib STEP-NC guy
  2. Markov, This looks like it might work but I am getting an undefined symbol error from the linker for SetActiveMachine. The signature of the function makes me wonder if there has been a change between VC 7 and VC8, or maybe I need to include another dependency file, if so which one? extern DllExport MC_BOOL SetActiveMachine (LPCTSTR name); I tried changing LPCTSTR name to char * name without any joy. STEP-NC guy
  3. Takashi, This code worked. Thanks very much my problem #1 is gone. For problem #2 I want to set the Machine type to mill/Generic Haas 4X MM. Letting the type be the default does not seem to work. Eventually, I am going to want to set the Machine type to a value taken from my input data. STEP-NC guy
  4. Takashi, I am setting the group idn but perhaps I am setting it to the wrong value. My code to get the idn value consists of the single line m_grp_idn = default_op_group (group_list_ptr, NULL_ID); at tbe beginning of the program. This part of the API is new to me so perhaps I need to do more. Thanks for the pointer. STEP-NC Guy
  5. Hi, I have CHook code that I am moving from MCAM9 to MCAM X2. Mostly the transfer has been seamless but I have three problems: 1. When my program creates tools using the tool manager they do not appear in the operation dialog until I save and then restore the data to an mcx file. 2. Unlike MC9, MCX has Machine types, are there any new functions in CHooks that I can use to set the machine type? 3. When I run my program MCX pops-up a dialog box asking the user to "Enter a new NC name" is there a function that I can use to set this name to a default in my program? Thanks in advance for any help that you can give me. STEP-NC Guy.

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