Of course it doesn't.
But the reason is because you're trying to run
before you've learned to crawl.
Each open document has its own Editor object.
Study the object model, and whatever samples you
can find, including the API labs. Most of them use
the Editor class. Look at them, and see how the
Editor object for a document is obtained.
No, I'm not going to show you because you are being
lazy by not taking the effort to study the samples that
are available to you, many of which use the Editor
object, and show exactly how to get it.
--
http://www.caddzone.com
AcadXTabs: MDI Document Tabs for AutoCAD 2004/2005/2006/2007
http://www.acadxtabs.com
"James Maeding"
wrote in message news:5500866@discussion.autodesk.com...
I'm doing this wrong, this does not work:
Dim vpID As ObjectId = Autodesk.AutoCAD.EditorInput.Editor.CurrentViewportObjectId
I get an error about a non-shared member...I ran into this before but forget the answer...
Paul Richardson
|>Opps missed the getting the viewport part. Try...
|>Autodesk.AutoCAD.EditorInput.Editor.CurrentViewportObjectId
|>
|>"James Maeding" wrote in message
|>news:5500239@discussion.autodesk.com...
|>I am doing a prog that lets you know if a layer is frozen in the current
|>viewport.
|>Lets assume my cursor is in a paperspace viewport, and I know the exact
|>layer I want to test, how would I do that?
|>
|>I ran my code to grab the layer object, and did a watch on it. There is no
|>"frozen in cur vp" property, so it must be
|>tucked in the viewport object. I have not figured out how to grab the vport
|>object I am in, that will likely be the key
|>to this.
|>
|>This will be important in 2008 as it remembers lots of things per viewport.
|>thx
|>James Maeding
|>Civil Engineer and Programmer
|>jmaeding - at - hunsaker - dotcom
James Maeding
Civil Engineer and Programmer
jmaeding - at - hunsaker - dotcom