Hi,
Try this code, put into VBA macro. not in iLogic rule.
Public Sub ViewOriginPlane()
Dim oDwgDoc As DrawingDocument
Set oDwgDoc = ThisApplication.ActiveDocument
Dim oSht As Sheet
Set oSht = oDwgDoc.ActiveSheet
Dim oDwgView As DrawingView
Set oDwgView = ThisApplication.CommandManager.Pick(kDrawingViewFilter, "Select view to show the origin plane")
Dim oWP As WorkPlane
If oDwgView.ReferencedDocumentDescriptor.ReferencedDocumentType = kPartDocumentObject Then
Dim oPartDoc As PartDocument
Set oPartDoc = oDwgView.ReferencedDocumentDescriptor.ReferencedDocument
Dim oPartCompDef As PartComponentDefinition
Set oPartCompDef = oPartDoc.ComponentDefinition
For Each oWP In oPartCompDef.WorkPlanes
oWP.AutoResize = True
On Error Resume Next
Call oDwgView.SetIncludeStatus(oWP, True)
Next
Else
Dim oAssyDoc As AssemblyDocument
Set oAssyDoc = oDwgView.ReferencedDocumentDescriptor.ReferencedDocument
Dim oAssyCompDef As AssemblyComponentDefinition
Set oAssyCompDef = oAssyDoc.ComponentDefinition
For Each oWP In oAssyCompDef.WorkPlanes
oWP.AutoResize = True
On Error Resume Next
Call oDwgView.SetIncludeStatus(oWP, True)
Next
End If
End Sub
Please use the ACCEPT AS SOLUTION or KUDOS button if my Idea helped you to solve the problem.
Autodesk Inventor Professional Certified 2014