I am struggling trying to call InfoDistancePP from my Library item script (like MyRectangle.js).
I would like to let the user drop the library script onto the drawing but before the item is drawn I would like to call InfoDistancePP to get a distance then use this to draw the actual item into the drawing (in this case MyRectangle.js), is this possible?
I found this post (#6) viewtopic.php?f=30&t=1927&hilit=export where Andrew is calling OpenFile from a script and thought I might be able to use it as a base to call InfoDistancePP.
Code: Select all
include("scripts/File/OpenFile/OpenFile.js");
var open = new OpenFile();
open.openFile("/path/to/my/file.dwg");
open.finishEvent();
Where is the call to openFile defined, I cannot find it in OpenFile.js script (or NewFile.js for that matter)?
Hope someone can shed some light, I am struggling with the scripting side of things.
Thanks,
Andrew.