Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Suppressing/Turning Off View Visibility in the DRAWING with iLogic

1 REPLY 1
Reply
Message 1 of 2
bmerton
293 Views, 1 Reply

Suppressing/Turning Off View Visibility in the DRAWING with iLogic

I need to find a way to turn of the visibility of a specific component within an assembly view of a drawing (NB NOT the assembly model) using iLogic.

 

The view visibility seems to be switching back on every time a new configuration is given on the model and a part becomes unsuppressed.

 

Any help would be greatly appreciated.

1 REPLY 1
Message 2 of 2
Vladimir.Ananyev
in reply to: bmerton

You may consider the following approach.

Step 1.  Create a collection oColl of all drawing curves projected from the target component occurrence oOcc.

Dim oColl As ObjectCollection = oApp.TransientObjects.CreateObjectCollection
dim oCurveUnum As DrawingCurvesEnumerator = oDrawView.DrawingCurves(oOcc)
For Each oCurve As DrawingCurve In oCurveUnum
    For Each oSegment As DrawingCurveSegment In oCurve.Segments
       oColl.Add(oSegment)
    Next
Next

  

Step 2. Move all these segments to the drawing layer which is set to invisible mode. 

oSheet.ChangeLayer(oColl, oLayer)

 

Similar problemv was discussed here: http://forums.autodesk.com/t5/inventor-customization/add-occurrences-to-the-selection-in-drawing-mod...


Vladimir Ananyev
Developer Technical Services
Autodesk Developer Network

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report