Layers or Entities order
Moderators: SDS, support, admin
Layers or Entities order
Is there a way to reorder layers or entities after adding them to bring to front, send to back or add to between.
I tried to reorder the layers list, but it was not changed.
=> cadImage.Converter.Layers.Reverse();
A entity added to a layer is shown on front on the layer as it is expected.
Can I add a entity between entities on a layer directly? or should I remove and add all entities that I reorder?
And how about layer order as the same to the entity ones?
Thank you
I tried to reorder the layers list, but it was not changed.
=> cadImage.Converter.Layers.Reverse();
A entity added to a layer is shown on front on the layer as it is expected.
Can I add a entity between entities on a layer directly? or should I remove and add all entities that I reorder?
And how about layer order as the same to the entity ones?
Thank you
Re: Layers or Entities order
Hello,
Entities are drawn in the order they are stored in a CADConverter.Entities collection: Entities[0], Entities[1], Entities[2], etc. For example, a solid fill normally goes after the entities which form its border (has a higher index in the Entities collection) that means the fill is drawn on top of the border.
To reorder entities (bring to front, send to back or add an entity between other entities), you will have to rearrange elements in the CADConverter.Entities collection.
Mikhail
Entities are drawn in the order they are stored in a CADConverter.Entities collection: Entities[0], Entities[1], Entities[2], etc. For example, a solid fill normally goes after the entities which form its border (has a higher index in the Entities collection) that means the fill is drawn on top of the border.
To reorder entities (bring to front, send to back or add an entity between other entities), you will have to rearrange elements in the CADConverter.Entities collection.
Mikhail
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support
Chat support on Skype: cadsofttools.support
Re: Layers or Entities order
Thank you!! Mikhail. I will try to do it.