Noob coder here, apologies in advance if I have my thinking or terminology bass-ackwards.
I'm drudging my way through the SDK and attempting my first custom tool for Tcad v19. In all the examples I've studied and information discovered in the SDK, when drawing an object using code (line, arc, poly... etc) it appears there is only the option to input absolute coordinates. The samples are very informative BTW, great job Kevan and Co.
For example: If the code is drawing a multiline it is told to start at (0,0,0) for 1st vertex, move to (1,0,0) for the second vertex, (1,1,0) for the third, and so on, until the code tells it to end/finish/close.
I'm trying to build a tool that will begin drawing the multiline from a mouse click (which I found in this thread: Detect Mouse Clicks
) and use relative coordinates to draw the shape. Meaning the first vertex is at MouseClick X,Y,Z, second vertex is at 1 inch 0 degrees away, and third vertex is 1 inch 90 degrees from second vertex.
Is this possible? If so, hints or examples of what objects or functions in the SDK I need to read up on would be much appreciated.