Skip to main content
12-Amethyst
July 15, 2016
Question

get_text_from_drawing.lsp

  • July 15, 2016
  • 2 replies
  • 1670 views

If you drag this Lisp file on the Annotation Viewport, it will become available in the Toolbox as "get text from drawing".

It simply scans all text on a 2D drawing in Annotation, and shows them in a display window.


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.

2 replies

17-Peridot
July 15, 2016

Hoi Jaap,

mooi je hier te lezen

Somthing similar in

Änderungsindex in Anno (PTC Engineering Solutions/) - Lösung vorhanden! - Foren auf CAD.de

even it is in german, Lisp is Lisp

Groeten Best regards

jkramer12-AmethystAuthor
12-Amethyst
July 15, 2016

Hi,

ah, cool, thanks for the hint! It may even be that I came across this lisp when writing my tool (long ago, forgot how I managed), I always struggle a bit when doing Annotation lisps. Especially the command

(setf textlist (sd-call-cmds (get_selection :focus_type *sd-anno-text-seltype* :select :docu_text :by_drawing_docu_rest :check_function #'(lambda (text-item)

is not something that's easily found in the documentation...

Regards, Jaap