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.
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...