Displaymanager edit style in .NET

Displaymanager edit style in .NET

steven.devries
Participant Participant
273 Views
1 Reply
Message 1 of 2

Displaymanager edit style in .NET

steven.devries
Participant
Participant

Hi,

I have loaded 2 layers in the Displaymanager and now I want to use c# to

  • modify the Style of the layer by using the style editor
  • and add a Text label
  • and set the style of this label
  • and I want to do it all with c#
  • is this even possible?

stevendevries_0-1674657760884.png

 

stevendevries_1-1674657760888.png

 

 

 

stevendevries_2-1674657760891.png

 

Kind regards,

Steven

 

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

norman.yuan
Mentor
Mentor

Yes, it is possible (to some degree): in your AutoCAD .NET add-in project, add reference to ManagedMapApi.dll (located in C:\...\[AutoCAD C3D installation\map" folder), and then examine the classes in Autodesk.Gis.Map.DisplayManagement namespace, which are the Map's .NET APIs used to manipulate map entities' display styles.

 

Norman Yuan

Drive CAD With Code

EESignature

0 Likes