LinkedIn
X (Twitter)
Facebook
Hi,
How can I get ID of current(active) viewport by .Net?
Solved! Go to Solution.
If you're talking about paper space viewports, the active one is the one which Number property is equal to CVPORT system variable.
Gilles ChanteauProgrammation AutoCAD LISP/.NETGileCADGitHub
Thank you
If by 'ID', you mean the ObjectId of the active viewport, the Editor.ActiveViewportId property returns that. If you need to open the Viewport then ActiveViewportId is the shortest path.
never-displayed