Sam Jones Posted July 5, 2020 Share Posted July 5, 2020 Is there an event, paramChange, or GetState result that will tell a path PIO that its path has been changed, usually by the Reshape tool? Yet again, TIA Quote Link to comment
Sam Jones Posted July 5, 2020 Author Share Posted July 5, 2020 Also, is there a way to get the new location of a specified vertex (the last vertex). Quote Link to comment
JBenghiat Posted July 6, 2020 Share Posted July 6, 2020 vsoStateGetExitGroup should do it, even if reshaped with the tool. The new location should be the current location. The old location would be harder to get — I think the only option is to store it in a hidden variable. Quote Link to comment
Sam Jones Posted July 6, 2020 Author Share Posted July 6, 2020 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. Quote Link to comment
JBenghiat Posted July 6, 2020 Share Posted July 6, 2020 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. Quote Link to comment
Recommended Posts
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.