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

How to determine which Layer is an Entity on?

1 REPLY 1
Reply
Message 1 of 2
ROBERTOYGLESIAS1067
472 Views, 1 Reply

How to determine which Layer is an Entity on?

Hi everyone,

 

I'm starting to migrate some code I had on COM Interop on .Net to a managed DLL to run within AutoCAD and it's been harder than the Interop which was very straightforward! I can't seem to be able to get from an Object on which layer it is. It is to perform a simple check of whether any object is on Layer "0" or not. 


BTW is there any good reference for how to make managed DLLs? The Developer Guide is as good as nothing and seems like even the simplest task is heavily complicated using this method.

 

Thanks,

1 REPLY 1
Message 2 of 2

Entity.layer or Entity.layerId properties? Seems pretty straightforward to me.

 

Have you looked at this : http://images.autodesk.com/adsk/files/autocad_2010_dotnet_training.zip

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