Change generic annotation category color
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello everybody,
hope this message find you well. The main concern of this topic is the fact that API is not letting me change the annotation generic graphic style color:
curve1 = fdoc.FamilyCreate.NewDetailCurve(drawView, l1);
GraphicsStyle gs = curve1.LineStyle as GraphicsStyle;
gs.GraphicsStyleCategory.LineColor = new Color(255,0,0);
I also wanna bring this post up: https://adndevblog.typepad.com/aec/2015/06/revitiapi-how-to-create-a-colored-detail-line-in-family.h...
which propose a workaround for this matter which is to generate a new category and set new color from there. The problem is that afterwards I will need to loop through every single Curve generated in my family document and set the linestyle property value and considering the extension of the code, it'll increase the computation.
Any insights on why the approach showed above do not change lineStyle color at all?
All the Best,
Miguel Gutierrez