If I look from distant the layout in paperspace and I build a little viewport, (don't ask me why and the scale..) autocad return -1 in number property.
If I perform a zoom similar to size of viewport that i'm going to build...also with a very very little size autocad return > 1
This is a big bug...IMHO.
The behavior of this property is very very strange, 'cause you see the viewport..in your drawing. in the first case in code you'havent the right setting...in number property .
at the stop of your code...if you ask autocad the entget (via lisp example..) of this viewport you see a right setting! but when you run the code the build this little viewport, if you don't have a zoom in paper space...it pass from 0 to -1 until your code is terminated
and the docs in arx/managed about viewport is pure fantasy...it's talks about property that doesn't exist. Bad, very very bad..autodesk.
Believe if I said that i'm going crazy to resolve this... :ugly: :ugly: