Hi Drag737,
If I’m understanding correctly, you’d like to create a function that draws a line between a two widgets that a user clicks. If that’s the case, the example posted here may help what you’re looking to do:
https://www.axure.com/c/forum/advanced-prototyping/21288-connect-two-rectangles-straight-line.html#post67992
In this example, josephxbrick uses a repeater widget to store the various x and y values of the different widgets, and then a “OnItemLoad” interaction to size and rotate the lines depending on which widgets are clicked by the user. Please note that this implementation is fairly complex, involving the use of a repeater widget as well as some conditional logic and mathematical expressions. If you’re not yet familiar with these concepts in Axure RP, I’d recommend reading more about them on our support page:
Axure | Repeater Widgets
Axure | Conditional Logic
Axure | Math, Functions, and Expressions
Hopefully this helps! Please let me know if you have any questions or if this wasn’t quite what you were looking for.