Blog


Learn about industry trends, news and how-tos from our product experts.

CAD

Mount + Simulation

// First shape CompositeCurve cc1 = new CompositeCurve(new ICurve[] { new Line(Plane.XY, 0, 0,96,0), new Line(Plane.XY,96,0,96,24), new Line(Plane.XY,96,24,76,24), new Arc(Plane.XY,new Point2D(76,32),new Point2D(76,40),new Point2D(76,24)), new Line(Plane.XY,76,40,96,40), new Line(Plane.XY,96,40,96,64), new Line(Plane.XY,96,64,0,64), new Line(Plane.XY,0,64,0,0), }); devDept.Eyeshot.Entities.Region r1 = new devDept.Eyesh…

by Eugenio Turchet | April 05, 2024 | Share

CAD

CAD Drawing Practice

Draw the figure design1.Layers[0].LineWeight = 2; design1.Grid.Visible = false; design1.OriginSymbol.Visible = false; const string DashDot = "DashDot"; design1.LineTypes.Add(DashDot, new float[] { 5, -1, 1, -1 }); const double TextHeight = 4; //Plane Plane plane1 = Plane.XY; plane1.Rotate(Math.PI/2, Vector3D.AxisZ); Plane plane2 = Plane.XY; plane2.Rotate(-Math.PI, Vector3D.AxisZ); //Internal contour Cir…

by Eugenio Turchet | April 05, 2024 | Share

CAD

CAD Practice Drawings 2D-01

Define layers, linetypes and text height. design1.Layers[0].LineWeight = 2; const string DashDot = "DashDot"; design1.LineTypes.Add(DashDot, new float[] { 5, -1, 1, -1 }); const string DimLayer = "Dimension"; design1.Layers.Add(new Layer(DimLayer, Color.CornflowerBlue)); const string Construction = "Construction"; design1.Layers.Add(new Layer(Construction, Color.DarkViolet, DashDot)); const…

by Lorenzo Capelli | February 28, 2024 | Share

CAD

Angular Bracket

// Extruded L shape CompositeCurve cc1 = new CompositeCurve(new ICurve[]{ new Line(Plane.XZ, 0, 0, 50, 0), new Line(Plane.XZ, 50, 0, 50, -10), new Line(Plane.XZ, 50, - 10, -5, -10), new Arc(Plane.XZ, new Point2D(-5, -5), new Point2D(-10, -5), new Point2D(-5, -10)), new Line(Plane.XZ, -10, -5 , - 10, 20), new Line(Plane.XZ, -10, 20, 0, 20), new Line(Plane.XZ, 0, 20, 0, 0) }); devDept.Eyeshot.Entities.Region r1 = new devDept.Eyeshot.Entities.Region(cc1, Plane…

by Lorenzo Capelli | February 27, 2024 | Share

CAD

Drawing 2D-01

const string dimLayerName = "Dimension", linetypeName = "DashDot", referenceLayerName = "Reference"; Plane vertical = new Plane(Point3D.Origin, Vector3D.AxisY, -1 * Vector3D.AxisX); // plane.XY; // adding different layers design1.LineTypes.Add(linetypeName, new float[] { 10, -2, 2, -2 }); design1.Layers[0].LineWeight = 2; design1.Layers.Add(new Layer(dimLayerName, Color.CornflowerBlue) { LineWeig…

by Gianpiero Tovo | October 13, 2023 | Share

CAD

YouTube logo

// main body arcs definitions Arc a1 = new Arc(Plane.XY, new Point3D(-20, -15), new Point3D(-22, 0), new Point3D(-20, 15), true); Arc a2 = new Arc(Plane.XY, new Point3D(-20, 15), new Point3D(0, 16.5), new Point3D(20, 15), true); Arc a3 = new Arc(Plane.XY, new Point3D(20, 15), new Point3D(22, 0), new Point3D(20, -15), true); Arc a4 = new Arc(Plane.XY, new Point3D(20, -15), new Point3D(0, -16.5), new Point3D(-20, -15), true); double filletRadius = 8; Cur…

by Gianpiero Tovo | September 21, 2023 | Share

CAD

Creating a BRep entity from scratch

In this article, we create a BRep entity by defining its vertices, edges, faces and shells. const double radius = 10, height = 20, centreToCentre = 20, offset = 3; Point3D[] vertices = new Brep.Vertex[8]; vertices[0] = new Brep.Vertex(0, -radius); vertices[1] = new Brep.Vertex(centreToCentre, -radius); vertices[2] = new Brep.Vertex(centreToCentre, +radius); vertices[3] = new Brep.Vertex(0, +radius); vertic…

by Alberto Bencivenni | July 28, 2023 | Share

CAD

Modeling Practice Drawings 110

// Main polygon CompositeCurve cc1 = new CompositeCurve( new Line(-34, 0, 34, 0), new Line(34, 0, 34, 59.4), new Arc(Plane.XY, new Point2D(0, 59.4), 34, Utility.DegToRad(0), Utility.DegToRad(180)), new Line(-34, 59.4, -34, 0)); devDept.Eyeshot.Entities.Region reg1 = new devDept.Eyeshot.Entities.Region(cc1); Brep ext1 = reg1.ExtrudeAsBrep(new Interval(0, 26)); // Borders devDept.Eyeshot.Entities.Region reg2 = devD…

by Paolo Bencivenni | July 24, 2023 | Share

CAD

Modeling Practice Drawings 91

// Big slot devDept.Eyeshot.Entities.Region reg1 = devDept.Eyeshot.Entities.Region.CreateSlot(0, 0,22.5, 18, 0, true); Brep ext1 = reg1.ExtrudeAsBrep(new Interval(0, 4.4)); // Small slot devDept.Eyeshot.Entities.Region reg2 = devDept.Eyeshot.Entities.Region.CreateSlot(0, 0, 22.5, 7.6, 0, true); ext1.ExtrudeAdd(reg2, new Interval(0, 16)); devDept.Eyeshot.Entities.Region reg3 = devDept.Eyeshot.En…

by Paolo Bencivenni | July 24, 2023 | Share

CAD

Modeling Practice Drawings 69

At the time of writing, due to a singularity, we need to set the radius as 19 units instead of 20. // Sketch 1 var sk1 = new devDept.Geometry.ConstraintSolver.Sketch(); // Add origin point SketchPoint origin1 = sk1.AddOrigin(); // Lines var l1 = sk1.AddLine(-20, -60, -20, -100); var l2 = sk1.AddLine(-20, -100, 20, -100); var l3 = sk1.AddLine(20, -100, 20, -60); // Mid point var p1 = sk1.AddPoint(20, -100); sk1.AddConstraintMidP…

by Paolo Bencivenni | July 20, 2023 | Share