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

transient graphics and layer respect

1 REPLY 1
Reply
Message 1 of 2
FRFR1586
299 Views, 1 Reply

transient graphics and layer respect

Hi everybody,

 

I'm writing a small project to display 2d object using transient graphics.

 

the project work fine expect for 1 point :

  the objects use 2 differents layers . The layers are differents about the color and line  style

 

the layers are affected using the syntax like MyEntity.Layer="Layer_Color_1"

 

when the object are displayed, they use the 0 layer

 

is it an autocad restriction ?

 

regards

 

Luc

1 REPLY 1
Message 2 of 2
FRFR1426
in reply to: FRFR1586

Logic colors (ByBlock, ByLayer) have no effect on transient graphics because the entities does not belong to a database. You need to set explicitely the color like this : entity.ColorIndex = 1

Maxence DELANNOY
Manager
Add-ins development for Autodesk software products
http://wiip.fr

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