试用期员工
- UID
- 665
- 积分
- 258
- 金币
-
- 活跃
-
- 阅读权限
- 30
- 注册时间
- 2006-9-18
- 最后登录
- 1970-1-1
|
- mRenderView.ClearAll() '清楚屏幕
- 'HP320*12的型材外轮廓
- Dim HPShapes As New TopoShapeList From {
- SketchBuilder.MakeLine(New GPnt(0, 0, 0), New GPnt(0, 0, 320)),
- SketchBuilder.MakeLine(New GPnt(0, 0, 320), New GPnt(0, 44, 320)),
- SketchBuilder.MakeArcOfCircle(New GPnt(0, 44.0, 320), New GPnt(0, 51.0, 293.9), New GPnt(0, 57.5, 309.6)),
- SketchBuilder.MakeLine(New GPnt(0, 51.0, 293.9), New GPnt(0, 19, 275.4)),
- SketchBuilder.MakeArcOfCircle(New GPnt(0, 19, 275.4), New GPnt(0, 12, 263.3), New GPnt(0, 13.9, 270.3)),
- SketchBuilder.MakeLine(New GPnt(0, 12, 263.3), New GPnt(0, 12, 0)),
- SketchBuilder.MakeLine(New GPnt(0, 12, 0), New GPnt(0, 0, 0))
- }
- '腹板端切CUT轮廓
- Dim WEBShapes As New TopoShapeList From {
- SketchBuilder.MakeArcOfCircle(New GPnt(50, 0, 0), New GPnt(0, 0, 50), New GPnt(35.4, 0, 35.4)),
- SketchBuilder.MakeLine(New GPnt(0, 0, 50), New GPnt(0, 0, 150)),
- SketchBuilder.MakeLine(New GPnt(0, 0, 150), New GPnt(294.4, 0, 320)),
- SketchBuilder.MakeLine(New GPnt(294.4, 0, 320), New GPnt(-100, 0, 320)),
- SketchBuilder.MakeLine(New GPnt(-100, 0, 320), New GPnt(-100, 0, 0)),
- SketchBuilder.MakeLine(New GPnt(-100, 0, 0), New GPnt(50, 0, 0))
- }
- '面板端切CUT轮廓
- Dim FLAShapes As New TopoShapeList From {
- SketchBuilder.MakeLine(New GPnt(-100, 12, 0), New GPnt(294.4, 12, 0)),
- SketchBuilder.MakeLine(New GPnt(294.4, 12, 0), New GPnt(294.4, 27, 0)),
- SketchBuilder.MakeLine(New GPnt(294.4, 27, 0), New GPnt(348.1, 58, 0)),
- SketchBuilder.MakeLine(New GPnt(348.1, 58, 0), New GPnt(-100, 58, 0)),
- SketchBuilder.MakeLine(New GPnt(-100, 58, 0), New GPnt(-100, 12, 0))
- }
- Dim HBface = SketchBuilder.MakePlanarFace(SketchBuilder.MakeWire(HPShapes)) 'HP320*12的型材外轮廓组合成面
- Dim HBpart = FeatureTool.Extrude(HBface, 2000, New GDir(1, 0, 0)) '拉伸腹板端切CUT轮廓
- Dim WEBface = SketchBuilder.MakePlanarFace(SketchBuilder.MakeWire(WEBShapes)) '轮廓组合成面
- Dim WEBpart = FeatureTool.Extrude(WEBface, 300, New GDir(0, 1, 0)) '拉伸腹板端切CUT轮廓
- Dim FLAface = SketchBuilder.MakePlanarFace(SketchBuilder.MakeWire(FLAShapes)) '轮廓组合成面
- Dim FLApart = FeatureTool.Extrude(FLAface, 350, New GDir(0, 0, 1)) '面板端切CUT轮廓
- Dim part As TopoShape = BooleanTool.Cut(HBpart, WEBpart) '布尔运算-,切出腹板形状
- part = BooleanTool.Cut(part, FLApart) '布尔运算-,切出页板形状
- mRenderView.ShowShape(part, ColorTable.Beige) '显示模型
- '标注腹板留根尺寸
- Dim dim1 = New LinearDimensionNode(New Vector3(0, 0, 0), New Vector3(0, 0, 150), New Vector3(-20, 0, 75), 90, "150")
- dim1.SetFontHeight(30)
- dim1.SetArrowLength(30)
- dim1.Update()
- mRenderView.ShowSceneNode(dim1)
- '标注腹板削斜角度
- Dim angle = New AngularDimensionNode(New Vector3(0, 0, 150), New Vector3(200, 0, 150), New Vector3(147.2, 0, 235), "30")
- angle.SetFontHeight(30)
- angle.SetArrowLength(30)
- angle.Update()
- mRenderView.ShowSceneNode(angle)
- Dim line_SB = SketchBuilder.MakeLine(New GPnt(0, 0, 150), New GPnt(220, 0, 150))
- mRenderView.ShowShape(line_SB, ColorTable.Cyan)
- '标注面板留根尺寸
- Dim dim2 = New LinearDimensionNode(New Vector3(294.4, 0, 320), New Vector3(294.4, 25, 320), New Vector3(274.4, 90, 320), 90, "25")
- dim2.SetFontHeight(30)
- dim2.SetArrowLength(10)
- dim2.SetArrowStyle(EnumDimensionArrowStyle.ARCHTICK)
- dim2.Update()
- mRenderView.ShowSceneNode(dim2)
- '标注面板削斜角度
- Dim angle1 = New AngularDimensionNode(New Vector3(294.4, 25, 320), New Vector3(494.4, 25, 320), New Vector3(484.93, 135, 320), "30")
- angle1.SetFontHeight(30)
- angle1.SetArrowLength(30)
- angle1.Update()
- mRenderView.ShowSceneNode(angle1)
- Dim line_SB1 = SketchBuilder.MakeLine(New GPnt(294.4, 25, 320), New GPnt(524.4, 25, 320))
- mRenderView.ShowShape(line_SB1, ColorTable.Cyan)
- Dim line_SB2 = SketchBuilder.MakeLine(New GPnt(294.4, 25, 320), New GPnt(484.93, 135, 320))
- mRenderView.ShowShape(line_SB2, ColorTable.Cyan)
- '标注端切R
- Dim radiusDim = New RadiusDimensionNode(New Vector3(0, 0, 0), New Vector3(35.36, 0, 35.36), New Vector3(70.71, 0, 70.71), "R50")
- radiusDim.SetFontHeight(30)
- radiusDim.SetArrowLength(30)
- radiusDim.Update()
- mRenderView.ShowSceneNode(radiusDim)
- mRenderView.ZoomAll()
复制代码 效果图如下:
-->
-->
-->
-->
-->
|
评分
-
查看全部评分
|