i need the active vport (model space vport)
(vla-get-ActiveViewport *doc*) --> always retunrs the same vport
from doc help:
"Use the StatusID property to determine if a viewport is currently active."
but i get error even for paper space vport:
(vla-get-StatusId vp)
; error: ActiveX Server returned the error: unknown name: StatusId
and
"You can iterate through existing viewports to find a particular viewport. To do this, first identify the name of the viewport configuration on which the desired viewport resides using the Name property." but:
(vlax-for x (vla-get-Viewports *doc*)
(print (vla-get-name x))
)
returns
"*Active"
"*Active"
"*Active"
"*Active"
"*Active"
"*Active"
"*Active"
"*Active"
I have tried using cvport and enget without success
I thought it would be easy