Blog


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

CAD

Modeling Practice Drawings 42

Brep elbow; //creating the first part of the elbow var headRegion = devDept.Eyeshot.Entities.Region.CreateRoundedRectangle(360, 360, 10); for (int i = 0; i < 2; i++) { for (int k = 0; k < 2; k++) { Func<int, int> calcPos = (int pos) => (pos > 0) ? (pos * (360 - …

by Gian Maria Gentilini | May 30, 2022 | Share

CAD

Base revolve sketch

Sketch sk1 = new Sketch(); SketchLine[] segments = sk1.AddPolygon( new Point2D(0, 0), new Point2D(130, 0), new Point2D(130, 53), new Point2D(116, 53), new Point2D(116, 37.5), new Point2D(98, 37.5), new Point2D(98, 53), new Point2D(0, 53) ); // hor/ver constraints …

by Alberto Bencivenni | May 17, 2022 | Share

CAD

Modeling Practice Drawings 125

The following lines allow you to draw this model in the above picture from scratch: // Body CompositeCurve bodyProfile = new CompositeCurve( new Line(-92, 0, -10, 0), new Arc(-10, 10, 0, 10, Math.PI * 1.5, Math.PI * 2), new Line(0, 10, 0, 77), new Arc(-10, 77, 0, 10, 0,…

by Stefano Volpe | October 29, 2021 | Share

CAD

Hook

Let us define some useful constants first: private const string dimLayer = "Dimension", thinLayer = "ThinLayer", dashDot = "DashDot"; private const double textHeight = 5; private const float defaultLineWeight = 2; Here is the primary function: void hook() { hookSetup(); hookFrame(); …

by Stefano Volpe | October 25, 2021 | Share

CAD

Casing

Define layer names and text height. const string Dim = "Dim", DashDot = "DashDot", Frame = "Frame", FrameText = "FrameText"; const double textHeight = 2.0; Draw the component and its dimensions. // Setting layers and linetype design1.Layers.Add(new Layer(Dim, Color.CornflowerBlue)…

by Adriano Ongaretto | August 30, 2021 | Share

CAD

Modeling Practice Drawings 152

Circle c1 = new Circle(new Point3D(0, 0), 30); Circle c2 = new Circle(new Point3D(105, 0), 21); devDept.Eyeshot.Entities.Region creg1 = new devDept.Eyeshot.Entities.Region(c1, Plane.XY); devDept.Eyeshot.Entities.Region creg2 = new devDept.Eyeshot.Entities.Region(c2, Plane.XY); Arc l1top = (Arc) U…

by Alberto Bencivenni | April 09, 2021 | Share

CAD

Swivel Handle

double y1 = 5.62; double y2 = 7.11; Line lineint = new Line(-50, y1, 0, y2); Point3D first = lineint.IntersectWith(new Circle(new Point3D(0, 0), 15))[0]; Arc a1 = new Arc(new Point3D(0, 0), new Point3D(15, 0), first); Point3D second = lineint.IntersectWith(new Circle(new Point3D(-50, 0), 14))[0];…

by Alberto Bencivenni | April 07, 2021 | Share

CAD

CAD Practice Drawings 124

private const string DimLayer = "Dimension", ThinLayer = "ThinLayer", DashDot = "DashDot"; design1.Layers[0].LineWeight = 2; design1.Layers.Add(new Layer(DimLayer, Color.CornflowerBlue)); design1.Layers.Add(new Layer(ThinLayer)); design1.LineTypes.Add(DashDot, new float[] { 30, -5, 5,…

by Alberto Bencivenni | April 07, 2021 | Share

CAD

Swing Arm

Circle c1 = new Circle(Plane.XY, new Point3D(0, 0, 0), 25.0); Circle c2 = new Circle(Plane.XY, new Point3D(100, 0, 0), 12.0); Circle c1_inner = new Circle(Plane.XY, c1.Center, 18.0); Circle c2_inner = new Circle(Plane.XY, c2.Center, 6.0); Circle c3_inner = new Circle(Plane.XY, new Point3D(c2.Cent…

by Federico Fucci | March 03, 2021 | Share

CAD

2D CAD Exercises 57

const string Dim = "Dimension"; const string DashDot = "DashDot"; design1.LineTypes.Add(DashDot, new float[] { 20, -2, 2, -2 }); design1.Layers.Add(new Layer(Dim, Color.CornflowerBlue)); design1.Layers[0].LineWeight = 2.5f; // Y axis Line axisY = new Line(0, -45, 0, 45) { LineTypeMethod = c…

by Federico Fucci | March 03, 2021 | Share