SO...When is PTC adding inspection numbers. Here Lie my failures.
I present to you my failures. I need a better hack. CREO 7.0.3.
What?: What I was trying to do is nothing new. Creating an inspection number symbol/mapkey to place and increment next to dimensions.
Why?: Because best case I have 11 clicks/selections to place current symbol/relate/set with average probably closer to 17 for one symbol. 150 inspection items x 17 clicks/selections = 2700 clicks/selections. My previous job drafting department refused to do inspection numbers. I can see why now that I do my own drafting and my current job does inspection numbers.
Goal?: Select dimension, run mapkey, done. 2 clicks. Solution made within CREO. No 3rd party tools other.
I separated it out into steps. I would either combine the code at the end or nest the mapkeys.
- DONE: Symbol with variable text inside (it is an oval the same as the oval around a dimension if the display is set to inspection). May need to do more here. origin? offset? baked into symbol for easier initial placement?
- DONE: Mapkey activated relation driven counter i=i+1 if the mapkey is press.
IF U_COUNT U_INUM = U_INUM +1 U_COUNT = NO ENDIFCould have the mapkey add the above relation and remove it as well at the end so its not left in the model.
mapkey $F7 @MAPKEY_LABELCount;\ mapkey(continued) ~ Command `ProCmdDwgRelations` ;\ mapkey(continued) ~ Activate `relation_dlg` `CBRelations` 1;\ mapkey(continued) ~ Activate `relation_dlg` `CBLocalParams` 1;\ mapkey(continued) ~ Select `relation_dlg` `ParamsPHLay.ParTable` 2 `rowU_COUNT` `value`;\ mapkey(continued) ~ Select `relation_dlg` `ParamsPHLay.ParTable_INPUT` 1 `YES`;\ mapkey(continued) ~ Activate `relation_dlg` `TBVerify`;\ mapkey(continued) ~ Activate `UI Message Dialog` `ok`;\ mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;Will have a separate mapkey to set/adjust the counter start point for when that is needed
- DONE: Mapkey to copy the current value of the parameter for inspection number to the clipboard
mapkey $F8 @MAPKEY_LABELCOPYNUM;\ mapkey(continued) ~ Command `ProCmdDwgRelations` ;\ mapkey(continued) ~ Activate `relation_dlg` `CBRelations` 1;\ mapkey(continued) ~ Activate `relation_dlg` `CBLocalParams` 1;\ mapkey(continued) ~ Select `relation_dlg` `ParamsPHLay.ParTable` 2 `rowU_INUM` `value`;\ mapkey(continued) ~ Activate `relation_dlg` `TBCopy`;\ mapkey(continued) ~ Activate `relation_dlg` `PB_OK`;
- HOW?: Placement. Will select a dimension I want an inspection symbol next to and Run the mapkey. The symbol placement workflow wants me to select the offset reference after I open the custom symbol dialog. I tried selecting the dim and opening the dialog but the selected item does not carry into the placement. If only &sym(name) worked in dimension text that would solve alignment and offset(I even tried adding the symbol to the model. Even with the symbol saved to the model in MBD the &sym option can not be used in dimension text. Have been trying several options for work arounds.
- HOW?: Pasting everywhere. The TBCopy TBPaste TBSelectall commands only work in certain places. If I have to send it to text file and retrieve I guess but come on, gotta be a better hack. I have autohotkey but I cant mix macros in together and expect others at the company to be able to use without some huge training.
The inspection symbol placement would really be best if baked into the dimension / gtol text. Shame CREO does not have the ability to place custom symbols there.
The placement is really a bear. I currently output 2D drawings and a model to Windchill 11 but have been implementing steps closer and closer to complete MBD. I noted that custom symbols can not be placed related/offset/inside dimensions or gtols in 3D annotation in the model. Only free or with leader to the part. Which is a show stopper.
I almost just went with the 1990s looking text prefix like this in the dimension text "<001>@D" I still had no way to paste the inspection number from the clipboard. Its there just ripe for a CTRL-V though.
@[ and@] would put a box around "and"(which means basic dimension on my drawings) if only CREO had @( and @) to put the inspection oval around text this would be a lot easier.
The implementation really needs to be baked in parametric for best results on Inspection Reports. Select dimension/gtol, enable inspection ID number. A nice oval around an ID number appears by the dimension/gtol/surface fin/note. All connected up with the dimension and tolerance values to output a report.
I even thought about using the dimension symbol @S but that can be renamed sometimes for parts controlled by relations(springs commonly). Plus being able to display the value of @S and @D at the same time may be a trick in itself.
I'll give up for now and will keep doing my Death By Clicks routine.
3rd Party software options for "ballooning" and inspection numbers:
https://fishbowlsolutions.com/
http://piosoftware.com/
https://www.inspectionxpert.com/
https://www.discussoftware.com/

