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:
Hello All,
Well, it's been more than a year and half since my last post , sidetracked to SolidWorks API,
learned something, it was sort of fun, and came back.
Currently, using Win7, Mcam X6 MU3, NETHook2_0.dll, .NETFramework4, VS2010 Pro.
Now, I'm looking at NetHook2Example sample program in C#.
In the beginning, I was looking at the same program in Visual Basic, but there were some posts
here talking about "Late binding", so I switched to C#.
I have an error in Debug mode, as follows:
public class ArcClassesExample
...
// see a quarter circle in the upper left quadrant of the screen.
ArcGeometry NewArcGeom = new ArcGeometry(ParamArc);
NewArcGeom.Commit(); <--Error happens here.
GraphicsManager.Repaint(true);
DialogManager.OK("There should be a quarter-circle on the screen now - is there?", DialogTitle);
Error message on screen says "Waring-zero length arc".
Error detail:
Mastercam.App.Exceptions.EntityWriteFailedException was unhandled by user code
HResult=-2146233088
Message=A database error has occurred - the writing of an entity to the database has failed.
Source=NETHook2_0
Name=Mastercam Database Exception: Entity Write Failed
Just for a try out, downloaded X7 preview version and NETHook3_0.dll (comes with X7), it just worked fine.
Am I missing something?
Or, if this is a known problem, then are there any way to go-around the problem?
Thanks for your help, appreciated.
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.