
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I created a LISP that presents the user with a dialog allowing them to select viewports in the drawing based on several different properties (like center position, layer, etc.), it then prompts the user to specify a set of layers either from the master list or from a group filter. I was hoping that I could then use VPLAYER to VP Freeze the selected layers in the selected viewports, but VPLAYER only works on the active layout (see command call below).
(command "VPLAYER" "F" (eval lyr_str) "S" ss "" "")
If I wanted this to freeze each viewport in selection set ss, then I would need to get the layout of the viewport, switch to that layout, and then re-run the VPLAYER command. This is doable, but in a 30mb drawing with 50 layouts it takes a significant amount of time. Time I was trying to save by writing the LISP in the first place. I have searched for other methods of accessing the VP Freeze property of a viewport but have come up empty handed.
Does anyone know how to VP Freeze a layer in a given viewport without the VPLAYER command?
Solved! Go to Solution.