Skip to content

Question about layer coloring #220

Answered by DomCR
AlexxCrp asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @AlexxCrp,

Yesterday I merged a PR to fix this issue #219, for this particular case when you add entities make sure that you are assigning the layer to the entity and the color is set to ByLayer (is the default but make sure is set as it is). Here is the example that I've used to test this feature:

Layer layer = new Layer("Test");
layer.Color = new Color(25);
this.Document.Layers.Add(layer);

Circle c = new Circle();
c.Center = new XYZ(0, 0, 0);
c.Radius = 10;
c.Layer = layer;
c.Color = Color.ByLayer;

this.Document.Entities.Add(c);

If you are using the nuget package, let me know and I'll do a release or if you are using the repository make sure to update the master branch with the lat…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@AlexxCrp
Comment options

Answer selected by AlexxCrp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants