michaelk Posted September 6, 2020 Share Posted September 6, 2020 When creating a linear parametric object, what's the trick to getting the second point? I've done GetCustomObjectInfo and GetCustomObjectPath but I'm not sure if that works with linear objects. GetSegPt1 and GetSegPt2 on the path don't return anything. Same with GetPolyPt(h,0,p1X,p1y) and GetPolyPt(h,1,p2X,p2Y) I'm not using the correct function to get the line or am I not using the correct functions to get the endpoints? Or both? Quote Link to comment
michaelk Posted September 6, 2020 Author Share Posted September 6, 2020 Or is the length all you need to know? The second click is always pLineLength,0? 1 Quote Link to comment
michaelk Posted September 6, 2020 Author Share Posted September 6, 2020 🤓 …nevermind. It's so much simpler than I expected it to be 🙂 1 Quote Link to comment
Peter Vandewalle Posted September 6, 2020 Share Posted September 6, 2020 Indeed, just (Linelength, 0) 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.