Blog
Learn about industry trends, news and how-tos from our product experts.
CAD Practice Drawings 27
const string Dimensions = "m"; const string DashDot = "DashDot"; design1.Grid.Visible = false; design1.Layers[0].LineWeight = 2; design1.Layers.Add(new Layer(Dimensions, Color.CornflowerBlue) { LineWeight = 0.2f }); design1.LineTypes.Add(DashDot, new float[] { 7, -2, 2, -2 }); Circle c1 = new Cir…
by
Davide Angiolini |
May 15, 2025 | Share
Modeling Practice Drawings 57
CompositeCurve cc1 = new CompositeCurve( new Line(65, 0, 0, -65, 0, 0), new Arc(Plane.XY, new Point3D(-45, 0, 0), 20, Math.PI, 3 * Math.PI / 2.0), new Line(-45, -20, 0, 65, -20, 0), new Line(65, -20, 0, 65, 0, 0) ); devDept.Eyeshot.Entities.Region r1 = new devDept.Eyeshot.Entities.Reg…
by
Davide Angiolini |
May 15, 2025 | Share
Modeling Practice Drawings 135
devDept.Eyeshot.Entities.Region front = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{ new Point2D(-120,0), new Point2D(-150,0), new Point2D(-150,-60), new Point2D(-134,-60), new Point2D(-134,-25), new Point2D(-120,-25), }); front.Translate(0, 38…
by
Davide Angiolini |
May 15, 2025 | Share
Part2
devDept.Eyeshot.Entities.Region front = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XZ, new Point2D[]{ new Point2D(0,0), new Point2D(12.5,0), new Point2D(12.5-5,8), new Point2D(17.5,8), new Point2D(17.5,16), new Point2D(-17.5,16), new Point2D(-17.5,8), new Point2D(-…
by
Davide Angiolini |
May 13, 2025 | Share
2D Exercise 900
Define layer names and text size. private const string DimLayer = "Dimension", ThinLayer = "ThinLayer", DashDot = "DashDot"; private const double TextHeight = 2.5; Draw the component and its dimensions. design1.Layers[0].LineWeight = 2; design1.Layers.Add(new Layer(DimLayer, Color.CornflowerBlue…
by
Federico Gherardi |
April 22, 2025 | Share
Pipe Vice
In this article, we will use Assembly Mates to assemble the pipe vice attached. Step 1: Main Screw To begin, we fix the Support and add the first ConcentricMate between it and the Main Screw. For each Mate, we identify the defining faces and, for each face, its corresponding chain of parents. Read…
by
Lorenzo Capelli |
January 27, 2025 | Share
Exercise 239
//Main circle extrusion devDept.Eyeshot.Entities.Region cr1 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XY, 0, 0, 22.5); //Main circle extrude remove devDept.Eyeshot.Entities.Region cr2 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XY, 0, 0, 10); //Main circle extrude remove rect…
by
Federico Gherardi |
January 27, 2025 | Share
Simple ball-and-stick molecular model
This article shows how to draw a ball-and-stick model of a simple molecule using Brep entities. protected int radiusC = 70; protected int radiusH = 53; protected int sp3CH = 220; protected double CH4angle = Utility.DegToRad(109.5); Brep CHbond = Brep.CreateCylinder(20, sp3CH); Brep H = Brep.Create…
by
Giovanni Bargellini |
January 17, 2025 | Share
CAD Practice Drawings 74
// Base profileCircle c1 = new Circle(Plane.XY, 57); c1.Translate(40, 0, 0); Circle c2 = new Circle(Plane.XY, 27); c2.Translate(-60, 0, 0); Line[] tanLines = devDept.Geometry.Utility.GetLinesTangentToTwoCircles(c1, c2); // Arcs connecting tangent lines endpoints Arc a1 = new Arc(Plane.XY, new Poi…
by
Marco Segapeli |
December 16, 2024 | Share
Piston
For each construction step, a new sketch was created to enhance code readability. Before every operation on the BRep object, the code includes comments that, if uncommented, will display the sketch on the screen. All of the sketches have zero resulting degrees of freedom.Sketch 1 - Building the ma…
by
Giovanni Bargellini |
December 06, 2024 | Share