Showing results for 
Search instead for 
Did you mean: 

Get displayed color


Hello everyone,

I currently have a program that changes line colors through DependentDisplay.ApplyWireframeEdit. however, when I run the program twice it must ignore the previous colored lines.


Every time I check the color of a line in DraftingCurve.color, only the original color is displayed.


Is there a way to identify the displayed color and not the original color?


Thank you very much.


Re: Get displayed color

Siemens Phenom Siemens Phenom
Siemens Phenom

The color of a DraftingCurve is defined by the Visible Lines setting of the member view or by a manual view dependent edit for that object and Information->Object reports the object color and the view dependent edits color.


You can get the VDE color with the C API function UF_VIEW_ask_vde_data

(or the UFView wrapper method like UFView.AskVdeData in NET).