Blog
Learn about industry trends, news and how-tos from our product experts.
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
3D-DP951
// "C" section sliding profile devDept.Eyeshot.Entities.Region r1 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.YZ, new Point2D[]{ new Point2D(0, 0), new Point2D(20, 0), new Point2D(20, 44), new Point2D(0, 44), new Point2D(0, 34), new Point2D(6, 34), new Point2D…
by
Giovanni Bargellini |
December 03, 2024 | Share
CAD Practice Drawing 150
const double Diameter1 = 50; const double Diameter2 = 70; const double Diameter2_x = 8; // Radius of c2_a, c2_b, c2_c const double Diameter3 = 60; const double TextHeight = 2; // Geometry drawing Circle c1 = new Circle(0, 0, 0, Diameter1 / 2); Circle c2_a = new(0, Diameter2 / 2, 0, Diameter2_x / …
by
Giovanni Bargellini |
December 03, 2024 | Share
Modeling Practice Drawings 61
protected override void OnLoad(EventArgs e) { design1.Units = linearUnitsType.Millimeters; design1.Grid.Visible = false; design1.OriginSymbol.Visible = false; // create all regions devDept.Eyeshot.Entities.Region topCircle = devDept.Eyeshot.Entities.Region.CreateCircle(0, …
by
Daniel Maura |
June 21, 2024 | Share
2D CAD drawing practice + hatch
protected override void OnLoad(EventArgs e) { const string Dim = "Dimension", DashDot = "DashDot"; const double TextHeight = 4; design1.Layers.Add(new Layer(Dim, Color.CornflowerBlue)); design1.Layers.Add(new Layer("framelayer")); design1.Layers.Add(new Layer("framelayertext")…
by
Daniel Maura |
June 10, 2024 | Share
Hair Dryer
design1.ActiveViewport.DisplayMode = displayType.Shaded;design1.Shaded.EdgeColorMethod = edgeColorMethodType.EntityColor;design1.Shaded.EdgeThickness = 2;// parameters double trimTol = 0.001; double filletTol = 0.001; double offsetTol = 0.1; double offsetAmount = -1; // creates the lists of …
by
Eugenio Turchet |
May 16, 2024 | Share