michael puckett
Usenet Archive
- Joined
- Mar 10, 2000
- Messages
- 306
- Reaction score
- 0
Has anyone else found the results bogus or unreliable?
(vla-get-count
(vla-get-viewports
(vla-get-activedocument
(vlax-get-acad-object)
)
)
)
I have a drawing with 4 modelspace vports; *NO* viewports in paperspace ( aside from paperspace itself ), yet the above code reports 27. I've toggled the active space back and forth, re-opened the dwg. Done an audit / recover etc. No change.
Other drawings correctly report the modelspace vport count.
Is it a flaky method or am I misinterpreting the results / failing to understand the vla-get-viewports method ( collection of all <modelspace> viewports in the drawing )?
PS: I initially encountered the problem using objectdbx, ie:
(vla-get-count
(vla-get-viewports DBXDOC)
)
but the same values ( one would hope ) are realized opening the dwg in the editor and using
(vla-get-count
(vla-get-viewports
(vla-get-activedocument
(vlax-get-acad-object)
)
)
)
Thanks for any enlightening thoughts fellow lithpers.
Michael.
(vla-get-count
(vla-get-viewports
(vla-get-activedocument
(vlax-get-acad-object)
)
)
)
I have a drawing with 4 modelspace vports; *NO* viewports in paperspace ( aside from paperspace itself ), yet the above code reports 27. I've toggled the active space back and forth, re-opened the dwg. Done an audit / recover etc. No change.
Other drawings correctly report the modelspace vport count.
Is it a flaky method or am I misinterpreting the results / failing to understand the vla-get-viewports method ( collection of all <modelspace> viewports in the drawing )?
PS: I initially encountered the problem using objectdbx, ie:
(vla-get-count
(vla-get-viewports DBXDOC)
)
but the same values ( one would hope ) are realized opening the dwg in the editor and using
(vla-get-count
(vla-get-viewports
(vla-get-activedocument
(vlax-get-acad-object)
)
)
)
Thanks for any enlightening thoughts fellow lithpers.
Michael.