cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Changing size of object

njacob
Super Contributor

Hi all,

 

We have a macro which creates application centric diagram (based on message flows in the system). But the siz of the objects on the diagram is set by default. We want to find a way to set the size of the object to a specific value. Any leads would be appreviated

 

Regards,

Nikhil

2 Replies

lionel
MEGA
MEGA

Hello Nikhil,

 

with diagram API, you can do this easily.

Just use the setPos command on your drawingItem :

myDrawingItem.SetPos LefPosition, TopPosition, RightPosition, BottomPosition

Regards,

 

Lionel

oguimard
Retired

Hello,

 

You have 2 options about the shapes of the object on the diagrams :

* either you changes the default MGS shapes file

* or you use the API to custom the size. The Mega Drawing API allow to manage the size at creation, or loading of the diagram.

 

I hope this help