Book a Demo

Author Topic: Obtain info on MDG diagram from Shape Script  (Read 3461 times)

amacara1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Obtain info on MDG diagram from Shape Script
« on: January 26, 2023, 03:12:00 am »
I would like to decide output of a Shape script based on properties of the diagram where the element is displayed into, specifically if the diagram is from an MDG. Can I?

My end goal is to be able to display Phase field of an element onto a diagram.

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Re: Obtain info on MDG diagram from Shape Script
« Reply #1 on: January 26, 2023, 03:45:23 am »
Yes, you can tes the diagram type in your shapescript e.g. diagram.mdgtype
See https://sparxsystems.com/enterprise_architect_user_guide/16.1/modeling_frameworks/displaying_element_properties.html for more properties

Geert

amacara1

  • EA User
  • **
  • Posts: 57
  • Karma: +0/-0
    • View Profile
Re: Obtain info on MDG diagram from Shape Script
« Reply #2 on: January 26, 2023, 04:37:10 am »
thank you. I will also be looking into Custom Compartments of Elements