Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
Looking for a way to add multiple models to a drawing at once.
I'm detailing an assembly with 75+ parts (primarily sheet metal) and I'll have to detail the whole assembly and each part in one drawing package, so I will have the assembly + all 75 of the models in one drawing. Is there a faster way than individually adding ALL 75+ models to the drawing? Is there a way to make a macro? A built in feature?
Solved! Go to Solution.
@kspabs wrote:
Looking for a way to add multiple models to a drawing at once.
I'm detailing an assembly with 75+ parts (primarily sheet metal) and I'll have to detail the whole assembly and each part in one drawing package, so I will have the assembly + all 75 of the models in one drawing. Is there a faster way than individually adding ALL 75+ models to the drawing? Is there a way to make a macro? A built in feature?
Hi,
if it is a one-time action, then do it manually.
If I were you I would generate trail file an play it. See attached add_drw_model.txt trail file - it adds three drawing models in Creo 7.0.2.0.
Trail file contains header
!trail file version No. 1961
!Creo TM 7.0 (c) 2021 by PTC Inc. All Rights Reserved.
and repeated body containing model name (eg. prt0002.prt)
~ Command `ProCmdDrwModels`
#ADD MODEL
!%CPChoose a new model to add to the drawing.
< 2 0.118519 178 0 0 100 1920 0 0 1200 13
~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` \
`file_open`
~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
`file_open:Ph_list.Filelist:<NULL>`
~ Select `file_open` `Ph_list.Filelist` 1 `prt0002.prt`
~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd`
#DONE/RETURN
If you are able to write simple program then you can generate trail file for model list.
@kspabs wrote:
Looking for a way to add multiple models to a drawing at once.
I'm detailing an assembly with 75+ parts (primarily sheet metal) and I'll have to detail the whole assembly and each part in one drawing package, so I will have the assembly + all 75 of the models in one drawing. Is there a faster way than individually adding ALL 75+ models to the drawing? Is there a way to make a macro? A built in feature?
Hi,
if it is a one-time action, then do it manually.
If I were you I would generate trail file an play it. See attached add_drw_model.txt trail file - it adds three drawing models in Creo 7.0.2.0.
Trail file contains header
!trail file version No. 1961
!Creo TM 7.0 (c) 2021 by PTC Inc. All Rights Reserved.
and repeated body containing model name (eg. prt0002.prt)
~ Command `ProCmdDrwModels`
#ADD MODEL
!%CPChoose a new model to add to the drawing.
< 2 0.118519 178 0 0 100 1920 0 0 1200 13
~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` \
`file_open`
~ Trail `UI Desktop` `UI Desktop` `PREVIEW_POPUP_TIMER` \
`file_open:Ph_list.Filelist:<NULL>`
~ Select `file_open` `Ph_list.Filelist` 1 `prt0002.prt`
~ Command `ProFileSelPushOpen_Standard@context_dlg_open_cmd`
#DONE/RETURN
If you are able to write simple program then you can generate trail file for model list.
If this is a regular need, then take a look at automation. SmartAssembly can do that and I would guess that Creoson can too.
Unfortunately I am pretty limited on what software/plugins I can use due to limitations imposed on me by my company.
With that said, I was able to use a mapkey and autohotkey to achieve an automated naming process.