Hi,
I have a drawing view connected with an assembly: this assembly has many subassemblies and some subassembly has other subassemblies.
I'd like to show hidden edges of some subassembly.
If I record a macro when I press the right mouse button on the component, the macro doesn't record any interesting api.
I.e.:
Set Part = swApp.ActiveDoc
boolstatus = Part.Extension.SelectByID2("H033956.0-2@Drawing View2/H033956.0EA01-1@H033956.0/H033956.0IN01-1@H033956.0EA01/0221-00284A-1@H033956.0IN01", "COMPONENT", 0, 0, 0, False, 0, Nothing, 0)
Part.ClearSelection2 True
End Sub
I tried to use the DrawingDoc.ShowEdge, preselecting all the visible edges of the component and also of his bodies: I view the selected edges, but the api doesn't show this edges.
Instead, if I manually press the right mouse button on the component and select "show hidden edges", then the ShowEdge and the HideEdge api are ok (if I select some edges that I want to show/hide).
But if I don't press before this the button, the api doesn't work correctly.
How I can simulate the "show hidden edges" feature?
Thanks
SolidworksApi macros