Message 1 of 8
AcGiSubEntityTraits::setLayer() and line weight, transparency and plottable
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
In the worlddraw/viewportdraw of my custom entity, I call AcGiSubEntityTraits::setLayer() several times to change drawing properties of primitives. But, only color and lineType are applied from layer. What about line weight, transparency and plottable/frozen/inactive?
Do I need to manually "sync" these properties? Something like this:
wd->subEntityTraits().setLayer(idLayer);
AcDbLayerTableRecordPointer pLayer(idLayer, AcDb::kForRead);
if(pLayer.openStatus() == Acad::eOk)
{
wd->subEntityTraits().setLineWeight(pLayer->lineWeight());
wd->subEntityTraits().set...
}Note: I use layers as properties for my custom entity because it's very user convenient (layer = container of multiple properties).
Best regards,
--
Jonathan
Jonathan