VBA changing layer of views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am trying to make a script that exports my current opened drawing to dwg. To do this I want to be sure no views or other objects have been placed outside the borders of the drawing.
If views/other objects are placed outside of these border, I want to change them to a layer which I will then turn off before exporting. Currently this is all going really well except for one part; Data from reference parts is not changed. (see attached pic). It is very strange because changing the visibility does work on these lines.
To select the curves, im just cycling through all views, if they are outside then loop through each curve and for each curve loop through each segment, I add all these lines to an Object COllection and then change it in the end.
My question:
Is there a way to select the Off option in the reference data; line style using VBA? (see 2nd pic)
or
Is there a way to change the layer of the reference curves?