PDA

View Full Version : Whats the Paper Space System Variable?


kmelchor
2007-10-08, 10:57 PM
Can anyone tell me if there is a system variable that will tell me the quantity of paper space views (tabs) that are in a drawing?

Thank you,

T.Willey
2007-10-08, 11:06 PM
I don't know of a system variable off the top of my head, but with ActiveX you could do

(1-
(vla-get-Count
(vla-get-Layouts
(vla-get-ActiveDocument
(vlax-get-Acad-Object)
)
)
)
)

Use the ' 1- ' because of the Model space tab.

RobertB
2007-10-09, 12:33 AM
There is no system variable.

(length (vl-remove "Model" (layoutlist)))

kmelchor
2007-10-09, 04:22 PM
Thank you guys! Either one of these will work, I think.

ch00su
2007-10-11, 03:40 AM
How can you make that into a Diesel Expression?

Mike_R
2007-10-11, 02:46 PM
In your acaddoc.lsp, set is as a string in one of your users1-users5 system variables and reference that variable through diesel.