Heat Sink 2

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

LinearPath lp1 = new LinearPath(Plane.XY,
    new Point2D(57, -5),
    new Point2D(57, 0),
    new Point2D(0, 0),
    new Point2D(0, 3),
    new Point2D(60, 3),
    new Point2D(60, -5));

LinearPath lp2 = new LinearPath(Plane.XY,
  new Point2D(55, -10),
  new Point2D(36, -10),
  new Point2D(36, -7),
  new Point2D(55, -7));

Arc arcExt = new Arc(55, -5, 0, 5, -Math.PI / 2, 0);
Arc arcInt = new Arc(55, -5, 0, 2, -Math.PI / 2, 0);

CompositeCurve cc = new CompositeCurve(lp1, arcExt, arcInt, lp2);

devDept.Eyeshot.Entities.Region baseRegion = new devDept.Eyeshot.Entities.Region(cc, Plane.XY);
Brep ext1 = baseRegion.ExtrudeAsBrep(83);

devDept.Eyeshot.Entities.Region finRR = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XY, 36, -20, 1, 10);
ext1.ExtrudeAddPattern(finRR, 83, 3.8, 5, 0, 1);

finRR = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XY, 0, 3, 1, 10);
ext1.ExtrudeAdd(finRR, 83);

int finCount = 11;
double lenght = 39.2;
double spacingX = lenght / 11;

finRR = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XY, 6.5 + spacingX / 2, 3, 1, 10);
ext1.ExtrudeAddPattern(finRR, 83, spacingX, finCount, 0, 1);

finRR = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XY, 49 + spacingX / 2, 3, 1, 7);
ext1.ExtrudeAddPattern(finRR, 83, spacingX, 3, 0, 1);

devDept.Eyeshot.Entities.Region removeRegion = devDept.Eyeshot.Entities.Region.CreatePolygon(
    new Point2D(60, -10),
    new Point2D(36, -13),
    new Point2D(36, -30),
    new Point2D(60, -30));

ext1.ExtrudeRemove(removeRegion, 83);

Arc arc1 = new Arc(30, -130, 0, 142, Utility.DegToRad(79.5), Utility.DegToRad(120));
Arc arc2 = new Arc(30, -130, 0, 200, Utility.DegToRad(79.5), Utility.DegToRad(120));
Line l1 = new Line(arc1.StartPoint, arc2.StartPoint);
Line l2 = new Line(arc1.EndPoint, arc2.EndPoint);

removeRegion = new devDept.Eyeshot.Entities.Region(new CompositeCurve(arc1, arc2, l1, l2), Plane.XY);
ext1.ExtrudeRemove(removeRegion, 83);

devDept.Eyeshot.Entities.Region rr = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.ZY, 7.3, 4.3, 1.65, 10);
ext1.ExtrudeRemovePattern(rr, -60, Plane.ZY, 14, 6, 0, 1);

devDept.Eyeshot.Entities.Region cr = devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XZ, 4.15, 7.15, 1.65);
ext1.ExtrudeRemovePattern(cr, -3, Plane.XZ, 43.7, 2, 42.7, 2);

ext1.ExtrudeRemove(devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XZ, 47.85, 7.15, 5.5), new Interval(7, 20));
ext1.ExtrudeRemove(devDept.Eyeshot.Entities.Region.CreateCircle(Plane.XZ, 47.85, 49.85, 5.5), new Interval(7, 20));

rr = devDept.Eyeshot.Entities.Region.CreateRectangle(Plane.XZ, 0, 62, 7, 21);
ext1.ExtrudeRemove(rr, -13);

model1.Entities.Add(ext1, model1.Layers[0].Name, Color.Gray);

MultilineText code1 = new MultilineText(Plane.ZY, Point2D.Origin, "651-10930-10SAF" + System.Environment.NewLine + "045-0", 1, 2, 3.5, devDept.Eyeshot.Entities.Text.alignmentType.TopCenter);
code1.Rotate(Utility.DegToRad(180), Vector3D.AxisY);
code1.Translate(60.01, 2, 41.5);
model1.Entities.Add(code1, model1.Layers[0].Name, Color.Black);

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.