Skip to main content
Feb 4, 2013 3:16 PM UTC
Archived

Temporarily disable snapping in annotation

Related products:Creo Elements/Direct

It is difficult to place dimensions, texts and symbols in annotation.  They automatically jump to some predetermined spot.  This is just a big pain.  Snapping should be able to be temporarily disabled by pressing the shift key or something similar.  This would allow the user to line place symbols, texts and dimensions in a neat pattern.

8 replies

Feb 12, 2016 9:46 AM UTC

Maybe it would be helpful for you to use the following command for disabling the Snapping

(oli::sd-execute-annotator-command :cmd  "dim_catch_range 0")

With value 3 instead of 0 you get back the standard snapping behaviour.

Jan 21, 2019 9:10 PM UTC

@fbrunner, I have the same question but as to your answer I do not understand it.  How do you use this command?  Where do you enter it?

Jan 22, 2019 5:58 AM UTC

@Ischeeler, you have to enter it into the command line of CED. With

 

(oli::sd-execute-annotator-command :cmd "dim_catch_range 0")

 

you disable the snapping completely, and with

 

(oli::sd-execute-annotator-command :cmd "dim_catch_range 3")

 

you set it back to a convenient value. Another possibility would be the create a button with a user-command. The code for this button should look like this

(progn (setf custom::*original-catch-range* (oli::sd-get-setting-value "Annotation/Dimension/CatchCheck/CatchRange")) (oli::sd-set-setting-value "Annotation/Dimension/CatchCheck/CatchRange" :value 0.0 :level :user :update-pds nil) (oli::sd-display-alert (format nil "Fang ausgeschaltet") :icon :info :auto-close-time 3 :desktop-relative nil)) (if custom::*original-catch-range* (progn (oli::sd-set-setting-value "Annotation/Dimension/CatchCheck/CatchRange" :value bfe-tools::*original-catch-range* :level :user :update-pds nil) (oli::sd-display-alert (format nil "Fang eingeschaltet - Wert = ~A"(oli::sd-get-setting-value "Annotation/Dimension/CatchCheck/CatchRange")) :icon :info :auto-close-time 3 :desktop-relative nil)) (progn (oli::sd-display-alert (format nil "Fang eingeschaltet => Wert 4~%(kein Ursprungswert in Sitzung gefunden) ") :icon :info :auto-close-time 3 :desktop-relative nil) (oli::sd-set-setting-value "Annotation/Dimension/CatchCheck/CatchRange" :value 4 :level :user :update-pds nil)) ) ) 

With this command you get a on/off toggle button.Wenether you press it, the state of the snapping will change between on/off, respectively the original value.

Jan 22, 2019 4:20 PM UTC

@fbrunner, Does CED stand for Creo Elements Direct?  If so do you know if this functionality exists in Creo Parametric and how to use it in that environment?

When I copy paste your code into a command line of Creo it doesn't work:

image.png

Jan 23, 2019 5:55 AM UTC
I'm sorry, but you are completely right, my solution only works inside Creo Elements Direct Modeling.
Jan 23, 2019 11:42 PM UTC

Bummer!  Back to voting this idea up! Smiley Happy

Mar 17, 2019 8:18 PM UTC
Status changed to: Archived
Mar 17, 2019 8:47 PM UTC
Status changed to: Archived