.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to test an acad entity is in paper or model

1 REPLY 1
Reply
Message 1 of 2
wang890
201 Views, 1 Reply

how to test an acad entity is in paper or model

so using vb.net how do i find out an object such as a hatch is in paperspace or modelspace? so no "ismodel" or "islayout" boolean property that i can find. i was only using the interop but do i have to use the managed wrapper to do that?

thank you
Stantec
Dell Precision 5530, Prism M320PU, C3D 14/17/19
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: wang890

public class EntityHelper
{
public static bool IsEntityInModelSpace( Entity entity )
{
return entity.BlockId == SymbolUtilityServices.GetBlockModelSpaceId( entity.Database );
}
}

--
http://www.caddzone.com

AcadXTabs: MDI Document Tabs for AutoCAD 2009
Supporting AutoCAD 2000 through 2009

http://www.acadxtabs.com

Introducing AcadXTabs 2010:
http://www.caddzone.com/acadxtabs/AcadXTabs2010.htm

wrote in message news:5983507@discussion.autodesk.com...
so using vb.net how do i find out an object such as a hatch is in paperspace or modelspace? so no "ismodel" or "islayout" boolean property that i can find. i was only using the interop but do i have to use the managed wrapper to do that?

thank you

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost