View Single Post
  #2  
Old 02-26-2018, 11:57 PM
Marten Marten is offline
Registered User
 
Join Date: Feb 2006
Location: Tilburg, The Netherlands
Posts: 139
Re: Load sketch, choose position

It depends on the context what works, but here are two options:

Put it in avail_cmds like this:

(oli::sd-put-buffer "AM_LOAD_SKETCH :FILENAME (format nil \"~A/VersionNeutral/Annotation/NotesCastMetal.mi\" (oli::sd-sys-getenv \"SDSITECUSTOMIZEDIR\"))")

Or, don't pass : position, but add :interactive-rest to the command

But, I think you want to load some standard text-blocks etc. Then your best option is to use templates. They are located in the template-browser, and you can very easily add your own (using "Define" in tab "insert", group "Sketch")

With kind regards,

Marten
Reply With Quote