CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > Annotation

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 02-26-2018, 10:32 AM
gmatelich's Avatar
gmatelich gmatelich is offline
Registered User
 
Join Date: Oct 2002
Location: Bellevue, WA, USA
Posts: 396
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 )
Reply With Quote
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 09:53 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.