iLogic include work axis of a part in the assembly view in a drawing
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello
I'm finding this rule very useful, written by @JhoelForshav, in order to include work axis from assembly to drawing.
Dim View As DrawingView = ThisApplication.CommandManager.Pick(SelectionFilterEnum.kDrawingViewFilter, "Pick view")
Dim refDoc = View.ReferencedDocumentDescriptor.ReferencedDocument
Dim oAxes As WorkAxes = refDoc.ComponentDefinition.WorkAxes
For Each oAxis As WorkAxis In oAxes
Dim oInclude As DialogResult
oInclude = MessageBox.Show("Include " & oAxis.Name & "?", "Include Axis", _
MessageBoxButtons.YesNo, MessageBoxIcon.Question)
If oInclude = DialogResult.Yes Then
View.SetIncludeStatus(oAxis, True)
Else
View.SetIncludeStatus(oAxis, False)
End If
Next
Sometime I'd like to include the work axis of a part in the assembly view, not of the assembly itself.
After selecting the view, is there a way to select the part I like to in the selected view?
Thank you