Just so you know, I'm not trying to be funny, but doesn't seem everything is
running as smooth as it should.
They (Autodesk) wrote a disclaimer regarding the functions they found to be
flawed, leaving us the rest to find.
"Rudy Tovar" wrote in message
news:D3181F710F163F2720E181F7BE294056@in.WebX.maYIadrTaRb...
> So what's new, yeah that's not the only screwy function.
>
> Seems to be something missing...not your code.
>
> "michael puckett" wrote in message
> news:850A9B40931ABA0588C3E7A73AAEAEB6@in.WebX.maYIadrTaRb...
> > 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
> > 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.
> >
> >
>
>