My intent is to have a custom toolbar button and when the user clicks it will be prompted for a string value, I then need to set this string value as the subject property of the Line object and activate the line tool so the user can draw this line in the document.
I've already figured out how to create the custom toolbar function and get user input, I just need to figure out how to activate the line tool and manipulate it's properties.
pseudocode:
Code: Select all
var response = app.response({
cQuestion: "What is the type?",
cTitle: "Input Type",
cLabel: "Type:"
});
newLine = Some_Call_That_Starts_Line_Tool;
newLine.subject = response;
[edit]
I've found that I can do this.addAnnot({type:'Line', etc...}); but this isn't ideal as I need the user to mouse click the start and end points of the lines.