Skip to content

Instantly share code, notes, and snippets.

@autokludge
Created January 22, 2019 01:19
Show Gist options
  • Save autokludge/4a73d23212b303dad6b47b0a93c784e8 to your computer and use it in GitHub Desktop.
Save autokludge/4a73d23212b303dad6b47b0a93c784e8 to your computer and use it in GitHub Desktop.
Inventor iLogic change detail view radius (circle only)
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