OpenAPI - Show Column Type

General discussions about MagicDraw

Moderator: Moderators

OpenAPI - Show Column Type

Postby Douglas.Pickard@prattwhitney.com » Thu Sep 14, 2023 6:23 am

I am working on a macro to automatically set some display options in bulk for a whole bunch of Instance tables.

I found the tagged values for "showUnitsOnValues" and "showUnitsOnColumn" and can set them the way I want with StereotypesHelper, but I can not find where the "Show Column Type" option is.

Does anyone know how I can set this via an OpenAPI call?
Douglas.Pickard@prattwhitney.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Thu Sep 14, 2023 6:19 am

Re: OpenAPI - Show Column Type

Postby Douglas.Pickard@prattwhitney.com » Thu Sep 21, 2023 7:11 am

I got an answer from Dassault on this.

In case anyone is looking for this in the future, this value is stored as a property on the Diagram presentation element. Modify it via:

Code: Select all
diagramPresentationElement.getPropertyManager().addProperty(new BooleanProperty("SHOW_COLUMN_TYPE_PROPERTY_ID", value))
Douglas.Pickard@prattwhitney.com
Forum Newbie
Forum Newbie
 
Posts: 2
Posts Rating:0
Joined: Thu Sep 14, 2023 6:19 am


Return to MagicDraw

Who is online

Users browsing this forum: No registered users and 0 guests

cron