Skip to main content
Aug 7, 2020 9:02 AM UTC
Solved

Inspection Dimension

Hello everyone

Could someone give me instruction how to add frame  for inspection dimension in Creo Direct Modeling/Annotation 20.0.

The only possibility I found is to add balloon frame to dimension, but result is not nice and is not work for a single number see picture 1, but wish to have it like a std one see picture 2. 

stevegutAnswer
Aug 10, 2020 3:40 PM UTC

Looks like the command is stripping out any leading/trailing spaces for both the prefix/postfix.  

The alternative would be to write a small dialog that would work at the drafting level.  Attached is a simple example using the IKIT interface.  Copy/paste this into Annotator (or load it from a file) and execute the new command single_digit_balloon.  Select the dimension, and a single space will be entered for both the prefix/postfix.  There is no real checking going on here, that would require additional effort.  steveg

 

(in-package :docu)
(use-package :oli)

(sd-defdialog 'single_digit_balloon
:variables '(
(DIM :selection s_docu_dimension)
)
:ok-action '(let (part address curr-part)
(setq part (docu-selitem-pid dim))
(setq address (docu-get-me-ptr dim))
(sd-execute-annotator-command :cmd
(format nil "EDIT_PART '~A' ADD_DIM_PREFIX ' ' POINTER '~A'"
part address))
(sd-execute-annotator-command :cmd
(format nil "EDIT_PART '~A' ADD_DIM_POSTFIX ' ' POINTER '~A'"
part address))
)
)

8 replies

Aug 7, 2020 3:50 PM UTC

You could add a prefix and/or postfix to the single digit dimension.  If you add a space character, the result  would then be oblong and would not impact the value if you later modify the geoemtry in any way.

utm_2006Author
Aug 10, 2020 8:32 AM UTC

It helps, but only if i add 2 spaces is not accept 1 space, and result is really ugly.

stevegutAnswer
Aug 10, 2020 3:40 PM UTC

Looks like the command is stripping out any leading/trailing spaces for both the prefix/postfix.  

The alternative would be to write a small dialog that would work at the drafting level.  Attached is a simple example using the IKIT interface.  Copy/paste this into Annotator (or load it from a file) and execute the new command single_digit_balloon.  Select the dimension, and a single space will be entered for both the prefix/postfix.  There is no real checking going on here, that would require additional effort.  steveg

 

(in-package :docu)
(use-package :oli)

(sd-defdialog 'single_digit_balloon
:variables '(
(DIM :selection s_docu_dimension)
)
:ok-action '(let (part address curr-part)
(setq part (docu-selitem-pid dim))
(setq address (docu-get-me-ptr dim))
(sd-execute-annotator-command :cmd
(format nil "EDIT_PART '~A' ADD_DIM_PREFIX ' ' POINTER '~A'"
part address))
(sd-execute-annotator-command :cmd
(format nil "EDIT_PART '~A' ADD_DIM_POSTFIX ' ' POINTER '~A'"
part address))
)
)