Hi @zachary.watsonTTAEZ. If you are wanting a VBA macro that you can run, where you can either pre-select an assembly component, or select the component after you run the macro, then turn all of that components WorkPlanes on, then the VBA code below should work OK for you. Your wording was a little difficult to understand though, so I was not sure if the component that you select may actually represent a sub assembly itself. If that is the case, then you will want to change the selection filter from "kAssemblyLeafOccurrenceFilter" to "kAssemblyOccurrenceFilter", because the 'Leaf' version will only allow you to select components that represent parts, not assemblies, but it will also allow you to select components that are down within other components that represent sub assemblies.
Sub PickCompTurnOnWPlanes()
If ThisApplication.ActiveDocumentType <> kAssemblyDocumentObject Then
Call MsgBox("An Assembly must be 'Active' to use this Macro.", vbCritical, "")
Exit Sub
End If
Dim oADoc As AssemblyDocument
Set oADoc = ThisApplication.ActiveDocument
Dim oOcc As ComponentOccurrence
If oADoc.SelectSet.Count > 0 Then
If TypeOf oADoc.SelectSet.Item(1) Is ComponentOccurrence Then
Set oOcc = oADoc.SelectSet.Item(1)
End If
End If
If oOcc Is Nothing Then
Set oOcc = ThisApplication.CommandManager.Pick(kAssemblyLeafOccurrenceFilter, "Select a component.")
End If
If oOcc Is Nothing Then Exit Sub
If oOcc.Suppressed Then Exit Sub
Dim oWPlanes As WorkPlanes
Set oWPlanes = oOcc.Definition.WorkPlanes
Dim oWPlane As WorkPlane
For Each oWPlane In oWPlanes
If oWPlane.Visible = False Then oWPlane.Visible = True
Next
Call oADoc.Update2(True)
End Sub
If this solved your problem, or answered your question, please click ACCEPT SOLUTION .
Or, if this helped you, please click (LIKE or KUDOS) 👍.
Wesley Crihfield

(Not an Autodesk Employee)