Is there a View Specific Element Graphics dialog in the API?

Is there a View Specific Element Graphics dialog in the API?

SimonaQQ
Advocate Advocate
385 Views
1 Reply
Message 1 of 2

Is there a View Specific Element Graphics dialog in the API?

SimonaQQ
Advocate
Advocate

hello,

I looked it up in the API and couldn't find it, so is it there?
I know there's a colorSelectionDialog.
Of course, I can also assemble the dialog myself.
What value should I give for "By Object Style"?
love you

OverrideGraphicSettings graphicSet = new OverrideGraphicSettings();
//What value should I set if it's By Object Style? Or just not setting it?
graphicSet.SetProjectionLineColor(new Color(Convert.ToByte(255), 0, 0));

doc.ActiveView.SetElementOverrides(newRevisionCloud.Id, graphicSet);

QQ图片20210703095526.pngQQ图片20210703095535.png

0 Likes
386 Views
1 Reply
Reply (1)
Message 2 of 2

jeremy_tammik
Autodesk
Autodesk

I think that each of those settings can either be the element id of an existing setting element or InvalidElementId.

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes