I have what I think should be a simple question. I have an open sketch and a line selected. I want to:
1) Get the ID of the line so I can get back to it later. I've found code to loop through all of the sketch segments and get their IDs but that doesn't help me because I don't know which ones they are. I need to get the ID of the selected line only.2) Get the start and end points of the line in x and y coordinates. I found GetStartPoint and GetEndPoint but can't figure out how to use them.
To me this should be very simple and maybe it is, but I can't seem to find anything explaining how to do it. Any help will be most appreciated.
john smith