View Single Post
  #5  
Old 03-09-2018, 05:21 AM
tom kirkman's Avatar
tom kirkman tom kirkman is offline
Registered User
 
Join Date: Oct 2002
Location: Perrysburg, Ohio
Posts: 397
Re: Load sketch, choose position

You can add an adjustment (insert) point to your insert sketch command.

Code:
(oli:sd-am-define-annotation-template
  :type    :SKETCH
  :adjust 8
  :name    "Notes - Plastic"
  :path    "/Notes"
  :image   (format nil "~A/VersionNeutral/Annotation/NotesPlastic.bmp" (oli::sd-sys-getenv "SDSITECUSTOMIZEDIR"))
  :2d-file (format nil "~A/VersionNeutral/Annotation/NotesPlastic.mi" (oli::sd-sys-getenv "SDSITECUSTOMIZEDIR"))
  :action  "am_load_sketch_multiple")
The adjust number is the same as your number pad

7 8 9
4 5 6
1 2 3

7 is the upper left
3 is the lower right.

I am adding an example lisp. This adds change cards to a drawing. The type of change card is dependent upon the type of change. The change card always goes below the lower left hand corner of the drawing. So this program finds the drawing corners and properly places the change card.
Attached Files
File Type: lsp change-card.lsp (5.0 KB, 560 views)
__________________
Tom Kirkman

Creo Elements/Direct 20.1
Dell Precision 3581
https://www.o-i.com

Last edited by tom kirkman; 03-09-2018 at 05:23 AM. Reason: add lisp file
Reply With Quote