Message 1 of 10
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
How can I get a VLA object of a viewport using a selection such as
(vl-load-com)
(setq vp (entsel "\n Select Viewport :"))
(setq obj (vlax-ename->vla-object (car vp)))
However, how can I get vla-object of a viewport using CVPORT number? In my case it would be always number 2, because each layout only has one viewport. So I am ok with getting the first viewport, or all the viewports on the layout also... I need to select it automatically without the user.
The definition of insanity is doing the same thing over and over again and expecting different results
Solved! Go to Solution.