Created
January 22, 2019 01:19
-
-
Save autokludge/4a73d23212b303dad6b47b0a93c784e8 to your computer and use it in GitHub Desktop.
Inventor iLogic change detail view radius (circle only)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Dim oDrawDoc As DrawingDocument = ThisDrawing.Document | |
Dim oSheet As Sheet | |
Dim oSheets As Sheets | |
'Dim oView As DrawingView | |
Dim oViews As DrawingViews | |
Dim oSizeStr As String | |
Dim oSize As Double | |
oSizeStr = InputBox("Enter Desired Size", "Size", "") | |
If Not IsNumeric(oSizeStr) Then | |
Return | |
Else | |
oSize = CDblAny(oSizeStr) | |
End If | |
oSheets = oDrawDoc.Sheets | |
For Each oSheet In oSheets | |
oViews = oSheet.DrawingViews | |
For Each oView As DrawingView In oViews | |
If oView.ViewType = DrawingViewTypeEnum.kDetailDrawingViewType Then | |
Dim oDetView As DetailDrawingView | |
oDetView = oView | |
If oDetView.CircularFence Then | |
oDetView.FenceRadius = oSize | |
End If | |
End If | |
Next | |
Next |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment