Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic Access X and Y of the ShapeControlPoint (Read 2332 times)
Cyrinael
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 42
Joined: Jul 22nd, 2016
Access X and Y of the ShapeControlPoint
Aug 9th, 2016 at 1:34pm
Print Post  
Hi,

is there a way to access the X and Y property of a ShapeControlPoint?

Best regards,

Cyrinael
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Access X and Y of the ShapeControlPoint
Reply #1 - Aug 10th, 2016 at 10:18am
Print Post  
Hi,

These are not stored in ShapeControlPoint but calculated dynamically when needed by node from its current size and ShapeFormulaParam values. We'll add a public API to return them in next couple of days.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Cyrinael
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 42
Joined: Jul 22nd, 2016
Re: Access X and Y of the ShapeControlPoint
Reply #2 - Aug 10th, 2016 at 11:00am
Print Post  
Hi Slavcho,

thank you for your effort.

Best regards,

Cyrinael
  
Back to top
 
IP Logged
 
Slavcho
YaBB Moderator
*****
Offline


tech.support

Posts: 3154
Joined: Oct 19th, 2005
Re: Access X and Y of the ShapeControlPoint
Reply #3 - Aug 12th, 2016 at 8:56am
Print Post  
Hi Cyrinael ,

The build below adds following  method to ShapeControlPoint -
https://mindfusion.eu/_beta/wpfdiag341.zip

public Point? LocationForNode(ShapeNode node, bool local)

Set local to true to get coordinates relative to the node, or false to get coordinates in the diagram. The result might be null if the node is not of same Shape as the one containing the control point.

Regards,
Slavcho
Mindfusion
  
Back to top
 
IP Logged
 
Cyrinael
YaBB Newbies
*
Offline


I Love MindFusion!

Posts: 42
Joined: Jul 22nd, 2016
Re: Access X and Y of the ShapeControlPoint
Reply #4 - Aug 12th, 2016 at 12:02pm
Print Post  
Hi Slavcho,

that works perfectly!

Best regards,

Cyrinael
  
Back to top
 
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint