Rudy Tovar
2003-09-17 16:30:30 UTC
So what's new, yeah that's not the only screwy function.
Seems to be something missing...not your code.
Seems to be something missing...not your code.
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(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
the active space back and forth, re-opened the dwg. Done an audit /
recoveretc. 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 )?
(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.
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 )?
(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.