Message 1 of 8
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am learning iLogic and have a few questions. I have created a rule that dimensions the height of my part.
I would like to turn on of my dimensions into a reference and one into a symmetric tolerance (+/-.18).
I've included my current rule code below, lines 11 and 12 are the two dimensions I'd like to change.
If possible I'd also like to make line 13 to 3 decimal places. I am very new with both iLogic and VB so if you provide a solution I'd greatly appreciate an explanation as well. So far I've done this much by scouring these and other forums.
Thanks!
'View1 Dimensions
Dim Sheet_1 = ThisDrawing.Sheets.ItemByName("Sheet:1")
Dim VIEW1 = Sheet_1.DrawingViews.ItemByName("VIEW1")
Dim namedGeometry1 = VIEW1.GetIntent("Face2")
Dim namedGeometry2 = VIEW1.GetIntent("TopPlane")
Dim namedGeometry3 = VIEW1.GetIntent("Edge1")
Dim namedGeometry4 = VIEW1.GetIntent("Face4")
Dim namedGeometry5 = VIEW1.GetIntent("Face3")
Dim genDims = Sheet_1.DrawingDimensions.GeneralDimensions
'Dim linDim1 = genDims.AddLinear("Dimension 1", VIEW1.SheetPoint(0.5, -0.1), namedGeometry1)
Dim linDim2 = genDims.AddLinear("Dimension 2", VIEW1.SheetPoint(1.00, -0.1), namedGeometry2, namedGeometry3)
Dim linDim3 = genDims.AddLinear("Dimension 3", VIEW1.SheetPoint(-0.125, -0.1), namedGeometry2, namedGeometry4)
Dim linDim4 = genDims.AddLinear("Dimension 4", VIEW1.SheetPoint(-0.125, -0.1), namedGeometry1, namedGeometry5)
Solved! Go to Solution.