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:

CollinJ

Verified Members
  • Posts

    9
  • Joined

  • Last visited

CollinJ's Achievements

Newbie

Newbie (1/14)

2

Reputation

  1. Hi, I'm wondering if there is a CHook SDK function that will output a normal vector (or u/v parameter/tangents) for a given input point on a surface. I have looked at calc_surf_unit_norm, however it requires u, v parameters and the tangent vectors as input. Thanks
  2. Hi, I've been searching the C-Hook SDK for a rectangular pattern function. I have been able to find the struct for params (SLD_PATTERN_PARAMS) but no function that takes these params as an argument. Do I have to use sld_extrude_from_chain in a control structure to create a pattern? Thanks
  3. Just checked the linker dependencies one more time and alas - I made a spelling error. Everything works great now. Thanks Roger.
  4. After some tinkering, I was able to eliminate the Linker error #1104. Now I am experiencing a different error: Error 2 error LNK2001: unresolved external symbol "__declspec(dllimport) char __cdecl sld_extrude_from_chain(struct CHAIN *,struct SLD_EXTRUDE_PARAMS &,int,int *,char *)" (__imp_?sld_extrude_from_chain@@YADPEAUCHAIN@@AEAUSLD_EXTRUDE_PARAMS@@HPEAHPEAD@Z) C:\Users\johnstonco\documents\visual studio 2013\Projects\CHookWizard3\CHookWizard3\main.obj CHookWizard3
  5. Hi Roger, I have tried with Mastercam 2017 and x9. MCGeomSld.lib is included in project dependencies. Here is the actual linker error: LINK: fatal error LNK1104: cannot open file 'mcgeomsld.lib' Here's how I'm using the function: CHAINS *chains=nullptr; if (chain_1("Select a chain", &chains)==CHAIN_OK){ SLD_EXTRUDE_PARAMS params; InitExtrudeParams(params); result=sld_extrude_from_chain(chains,params,0,nullptr,_T("NewExtrude")); } Where the InitExtrudeParams function defines all of the members of params.
  6. Hi, I have been playing with the C-Hook SDK Introduction examples by Mick George - in particular the SolidExtrusion CHook. I swapped out the DoExtrude() function call in the main method with a call to the TestSolidExtrude function. I am now getting a linker error saying: cannot open file 'mcgeomsld.lib'. In another application I am using the sld_extrude_from_chain() function and also am running into linker errors. The call in my other application looks identical to Mick's function call. Any thoughts? Thanks

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