Book a Demo

Author Topic: Automated script: How set Label Rotation for a Dependency  (Read 2839 times)

cathello

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Automated script: How set Label Rotation for a Dependency
« on: August 29, 2019, 10:06:43 pm »
Hi all,
i have a simple question: Is it possible set the label Rotation for Dependency?

The script is:

var connectorDependency as EA.Connector;                  
connectorDependency = elementSource.Connectors.AddNew("", "Realization");
connectorDependency.Stereotype = "DataAssociation";
connectorDependency.Type = "Dependency";         
connectorDependency.Name = "Test";
connectorDependency.SupplierID = elementDestination.ElementID;   
connectorDependency.Update();

The default value is "Horizontal".

Thanks,
Catello.

qwerty

  • EA Guru
  • *****
  • Posts: 13584
  • Karma: +397/-301
  • I'm no guru at all
    • View Profile
Re: Automated script: How set Label Rotation for a Dependency
« Reply #1 on: August 29, 2019, 10:19:54 pm »
diagramlinks.geometry contains a CSV list where you either have to change or add ROT=1; or =-1 (see p. 15 of my Inside book).

q.