.NET

.NET

Reply
Distinguished Contributor
junoj
Posts: 116
Registered: ‎02-26-2009
Message 11 of 12 (91 Views)

Re: ModelSpace vs. PaperSpace Viewport

08-20-2013 12:09 PM in reply to: BlackBox_

Thank you BlackBox for the response.  The link to the code that you provided works nice only if one is in the Model Tab or in the Layout Tab.

 

However if you are in the Layout Tab (Paper Space) and you are looking via the viewport at the Model Space then the code will return the Model Space ID.

Distinguished Mentor
BlackBox_
Posts: 785
Registered: ‎02-25-2013
Message 12 of 12 (75 Views)

Re: ModelSpace vs. PaperSpace Viewport

08-20-2013 02:53 PM in reply to: junoj

I overlooked your earlier statement that you're attempting to identify the active space from a side Database... The only other thing I can think to suggest without Googling, is for you to consider Database.CurrentSpaceId as Kean suggests here:

 

http://through-the-interface.typepad.com/through_the_interface/2007/09/accessing-the-a.html

 

 

 

... Perhaps someone much smarter than I will be along shortly, to better suggest a solution. Sorry I could not be of more help.

 

Cheers



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security


AutoCAD® 2014, and Civil 3D® 2014 Certified Professional ~ Autodesk® Authorized Developer

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.