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

How to move the endpoints of a ModeLink-DrawingItem (or a DrawingLink)?

Solved
Highlighted
Occasional Contributor

How to move the endpoints of a ModeLink-DrawingItem (or a DrawingLink)?

How can I, using the Diagram API, move the endpoints of a ModeLink-DrawingItem (or a DrawingLink)? Neither setting the bounds (top, left, height, width) not by setting the coordinates of the “DrwLine_Points”-Points works.

Tags (3)
1 Reply
Highlighted
MEGA

Re: How to move the endpoints of a ModeLink-DrawingItem (or a DrawingLink)?

Hello Ralf

 

There is indeed no function for this.

 

A solution is to add extra points and keep original extremitives with orthogonal lines

See the article Diagram API Tutorial (MEGA 2009 SP5) page 6

 

Extract

Modifying the points of a line is done via a special interface. To be successful, the new points
collection must keep the original extremities coordinates (the first and the last points). If the
line is orthogonal, extra care must be taken to ensure that the new point collection is
orthogonal; otherwise the line points will be reset.

Jerome