Skip to main content
1-Visitor
August 7, 2020
Solved

Inspection Dimension

  • August 7, 2020
  • 1 reply
  • 9664 views

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. 

Best answer by stevegut

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))
)
)

1 reply

1-Visitor
August 7, 2020

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_20061-VisitorAuthor
1-Visitor
August 10, 2020

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

stevegut1-VisitorAnswer
1-Visitor
August 10, 2020

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))
)
)