cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Temporarily disable snapping in annotation

Temporarily disable snapping in annotation

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 Comments
fbrunner
3-Visitor

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.

LawrenceS
17-Peridot

@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?

fbrunner
3-Visitor

@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.

LawrenceS
17-Peridot

@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

fbrunner
3-Visitor
I'm sorry, but you are completely right, my solution only works inside Creo Elements Direct Modeling.
LawrenceS
17-Peridot

Bummer!  Back to voting this idea up! Smiley Happy

PTCModerator
Emeritus
Status changed to: Archived
 
PTCModerator
Emeritus
Status changed to: Archived