Message 1 of 3
Update all views in a sheet to turn on Associative check box - iLogic

Not applicable
01-18-2018
04:51 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is it possible to turn on the Associative check box for all views in a drawing using iLogic?
Here is what I have so far which does the opposite of what I want:
Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument
Dim oSheet As Sheet
Dim oDrawView As DrawingView
For Each oSheet In oDrawDoc.Sheets
For Each oDrawView In oSheet.DrawingViews
Representation = oDrawView.ActiveDesignViewRepresentation
If Representation <> "" Then
oDrawView.SetDesignViewRepresentation(Representation, False)
'End If
Next
Next
The problem is that the Representation = "" if the associative box is unchecked. And I require the Representation name to SetDesignViewRepresentation and set the Associative value to True.
This is a related post: