#1
|
||||
|
||||
Load sketch, choose position
I’m trying to create a button in the UI to load an .mi file as a sketch, in the current sheet, and choose a position. I figure I’ll put it in am_avail_cmds.cmd. Starting with recorder, and poking around the help I think the command should look something like
(AM_LOAD_SKETCH :FILENAME (format nil "~A/VersionNeutral/Annotation/NotesCastMetal.mi" (oli::sd-sys-getenv "SDSITECUSTOMIZEDIR")) :position (gpntdocu :point-2d)) But I can’t figure out the position portion. I can just do 0,0 and move after load, but that’s pretty lame. I’d like it to behave the same as using the UI, where the sketch is now hanging on my cursor waiting to be placed. I’m not sure how to tell it “load the file and wait for the user to pick a point on the drawing” I can use AM_LOAD_SKETCH from the command line, but it doesn’t work when I put it in am_avail_cmds.cmd I’m also trying this from the help, but it doesn’t work either. (sd-am-load-sketch :file_name "test.mi" :position 0,0 :adjust :upper_left :current-sheet :adjust ) |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|