CollinJ
-
Posts
9 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
eMastercam Wiki
Blogs
Gallery
Events
Posts posted by CollinJ
-
-
Thanks Roger. Mastercam 2017.
- 2
-
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
-
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
-
Just checked the linker dependencies one more time and alas - I made a spelling error.
Everything works great now.
Thanks Roger.
-
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
-
Yes, the include directory paths are correct.
-
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.
-
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
Surface normal function?
in Mastercam C-Hook, NET-Hook and VBScript Development
Posted
Thanks - I sent you an email.