Book a Demo

Author Topic: Diagrams and block compartment visibility  (Read 3283 times)

rmsimmons

  • EA Novice
  • *
  • Posts: 3
  • Karma: +0/-0
    • View Profile
Diagrams and block compartment visibility
« on: April 23, 2020, 07:41:27 am »
I'm using the API to populate a diagram with several blocks, all of which are showing the properties in EA.  Inspecting the diagram objects with an Excel VBA utility, every one of the Show* properties is False, and Style shows only a DUID.  I changed the diagram creation code to set ShowNotes to True, after which the Notes compartment showed exactly one character), and Ctrl-Shift-Y confirmed that Maximum Characters for Element Notes was set to 1 as opposed to the default 1000.

Researching the posts, it looks like the application does things under the hood with Style or StyleEx that are not exposed by the API.

All of the diagrams can be manually cleaned up, but I'm importing a large model and want to minimize cleanup.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Diagrams and block compartment visibility
« Reply #1 on: April 23, 2020, 05:06:36 pm »
Properties is not a unique name. So not sure which of the properties you mean.

Instead of touching each element you can also modify diagram properties (like showing package contents, attributes, etc.).

q.