Message 1 of 3
Isolating Dimension Type using iLogic

Not applicable
07-28-2014
06:37 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an iLogic rule that converts certain dimensions from a fractional dimension to a sheet steel gage. It is looping through all the General Dimensions on the drawing. This causes some of my angular dimensions to be updated by mistake, so I need it to exclude all angular dimensions when it runs through the loop and can't find how to do it.
The code is given below if that is of any assistance.
Dim oDoc as DrawingDocument Dim tDim as String oDoc = ThisApplication.ActiveDocument Dim sheetX As Sheet = oDoc.Sheets(1) For Each genDim as GeneralDimension In sheetX.DrawingDimensions.GeneralDimensions tDim = gendim.text.formattedtext If (Len(tDim) > 25) Then Goto 30: gendim.hidevalue = False genFrac = (RoundToFraction(genDim.modelvalue/2.54,1/64,RoundingMethod.Round)) If (genFrac = "3/16" Or genFrac = "1/8" Or genFrac = "1/16" Or genFrac = "3/64") Then If (Right(iProperties.Value("Custom","Material Thickness"),3) = "ga.") Then genDim.hidevalue = True gendim.text.formattedtext = iProperties.Value("Custom","Material Thickness") Else gendim.text.formattedtext = "" End If End If 30: Next
Thanks,
Dan