Bushing

2019-07-03_8-46-18.png

devDept.Eyeshot.Entities.Region r1 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XY, new Point2D[]{
    new Point2D(0, 0),
    new Point2D(0, 53),
    new Point2D(98, 53),
    new Point2D(98, 37.5),
    new Point2D(116, 37.5),
    new Point2D(116, 53),
    new Point2D(130, 53),
    new Point2D(130, 0)});

Brep rev1 = r1.RevolveAsBrep(Utility.DegToRad(360), Vector3D.AxisX, Point3D.Origin);
devDept.Eyeshot.Entities.Region ssr1 = devDept.Eyeshot.Entities.Region.CreateSlot(Plane.ZX, 0, 15, 126, 15, 0, true);
devDept.Eyeshot.Entities.Region cr1 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.ZX, 63, 15, 7.5);
devDept.Eyeshot.Entities.Region cr2 = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.ZX, -63, 15, 7.5);
devDept.Eyeshot.Entities.Region diff = devDept.Eyeshot.Entities.Region.Difference(ssr1, cr1, cr2);
devDept.Eyeshot.Entities.Region copy = (devDept.Eyeshot.Entities.Region)diff.Clone();
diff.Translate(0, 22, 0);
copy.Translate(0, -22, 0);
rev1.ExtrudeAdd(diff, 18);
rev1.ExtrudeAdd(copy, -18);

devDept.Eyeshot.Entities.Region r2 = devDept.Eyeshot.Entities.Region.CreatePolygon(Plane.XY, new Point2D[]{
    new Point2D(0, 0),
    new Point2D(0, 37.5),
    new Point2D(86, 37.5),
    new Point2D(86, 27),
    new Point2D(106, 27),
    new Point2D(106, 22.5),
    new Point2D(130, 22.4),
    new Point2D(130, 0),
    new Point2D(0, 0)});

rev1.RevolveRemove(r2, Utility.DegToRad(360), Vector3D.AxisX, Point3D.Origin);
model1.Entities.Add(rev1, model1.Layers[0].Name, Color.NavajoWhite);

Previous versions of this article: Eyeshot 10

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.