CompositeCurve cc = new CompositeCurve(new ICurve[] { new Arc(0, 0, 0, 10, devDept.Geometry.Utility.DegToRad(180), devDept.Geometry.Utility.DegToRad(270)), new Line(0, -10, 40, -10) });
manufacture1.Entities.Add(cc);
Stock st = Stock.CreateBox(Plane.XY, -12, -12, 52, 12, new devDept.Geometry.Interval(-15, 0));
Setup s = new Setup("Top", linearUnitsType.Millimeters, Plane.XY, st);
EndMill em = new EndMill(15, 0);
Geometry2D g = new Geometry2D(cc, 0.01);
Contour2D contour2D = new Contour2D(s, em, g, new devDept.Geometry.Interval(-10, 0), 2);
contour2D.DoWork();
Toolpath tp = contour2D.Result;
// changes resulting toolpath color before simulation
tp.ColorMethod = colorMethodType.byEntity;
tp.Color = Color.Blue;
manufacture1.SimulationSetup = s;
manufacture1.SimulationTool = em;
manufacture1.SimulationToolpath = tp;
manufacture1.SimulationStock = st.GetSimulationStock();
Open contour machining
Alberto Bencivenni
This content is available only to customers with an active subscription. Please ensure your subscription is current to access this article.
Please sign in to access this article.
If you believe this is an error, please contact our support team for assistance.
Comments
This compiles for me, but when I run the simulation, I immediately get the error message :
System.NullReferenceException
HResult=0x80004003
Message=Object reference not set to an instance of an object.
Source=devDept.Eyeshot.Control.Wpf.v2023
StackTrace:
at devDept.Eyeshot.Control.Manufacture.#=z0vEubBXGA2Yt(Entity #=zhuOXhFQ=)
at devDept.Eyeshot.Control.Manufacture.#=z0AGF_PKrgKGM()
at devDept.Eyeshot.Control.Manufacture.Start()
at devDept.Eyeshot.Control.Manufacture.#=zodhddtOUgh88Dn4RZQ==(Object #=zx37kDes=, HandledEventArgs #=z1xeeOpk=)
What else do I need to do to run the simulation?
Hi Matt,
by using Eyeshot 2023.2 I cannot replicate the error; if you still have issues, please consider opening a ticket on the support request channel.
Please sign in to leave a comment.