Jump to content
Developer Wiki and Function Reference Links ×

Event for PIO path change


Recommended Posts

 

2 hours ago, JBenghiat said:

vsoStateGetExitGroup should do it, even if reshaped with the tool. 

 

FUNCTION   vsoStateGetExitGroup( hObj:HANDLE;  VAR outGrpType:LONGINT) :BOOLEAN 

 

Super, but given the documentation state of "vsoStateGet..." functions in the Function Reference, what do I pass in the "outGrpType"?  And, is the function only true when the path object is changed?

 

Some things just wouldn't happen without you Josh.

Link to comment

The constants are documented: https://developer.vectorworks.net/index.php/VS:vsoStateGetExitGroup

 

though you don’t pass a value, the function returns a value to tell you what group was edited. 
 

You only get a notification that the path group was entered and exited, not whether there was an actual change. There also a reshape state change, but I think that will not be true for a path group change. 
 

But as you are really just interested in the end point changing coordinates, you may just want to keep it simple and just always check if the end value is the same as the stored comparison value. I think the overhead in processing states and comparing the values is about the same. 

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...