I am currently programming a project where I need to draw an arrow from point A to point B. This is a process much more complicated than I thought it would be. I have done most of the scripting necessary, my only problem remains actually creating the lines.
The following script creates a graphic object with style "line" and an end arrow; unfortunately nothing appears on the card where it is drawn !
Any solutions ? Help greatly appreciated !
Code: Select all
on createArrows
go to card "arrowCard"
if exists(graphic "theArrow" of card "arrowCard") then delete graphic "theArrow" of card "arrowCard"
create graphic "theArrow"
set the style of graphic "theArrow" of card "arrowCard" to "line"
set the endArrow of graphic "theArrow" of card "arrowCard" to true
set the lineSize of graphic "theArrow" of card "arrowCard" to 2
set the arrowSize of graphic "theArrow" of card "arrowCard" to 3
set the height of graphic "theArrow" of card "arrowCard" to 100
set the width of graphic "theArrow" of card "arrowCard" to 100
send "choose browse tool" to me in 1 tick
end createArrows