cart: empty [ Login ]

Plot style for leaders

1 
Spring Air
1/30/2024 4:18 PM
I'm trying to come up with a PDF plot style that prints everything in black, except dimension lines and leader lines, which are grey. The following works for dimension lines, but not leaders:
C# Code:
var ps = new PlotStyle(); if (plotPropertyOwner is DxfEntity e && ( (!(e is DxfMText) && drawContext.BlockContext is DxfDimension) || e is DxfLeader ) ) ps.Color = new ArgbColor(128, 128, 128); else ps.Color = new ArgbColor(0, 0, 0) ;
I'm just wondering if there's a set of component entities I have to look for instead, like with the dimensions?
Wout
1/30/2024 5:05 PM
I don't know, you should be able to override leader color like any other entity. - Wout
Spring Air
1/31/2024 9:12 PM
Looks like the colour gets overridden when the method is called on some private non-entity object that seems to contain the entity.
1