Skip to main content
1-Visitor
April 9, 2015
Question

same title part and drawing automated

  • April 9, 2015
  • 4 replies
  • 3241 views

hello people

i have a question

i draw a part screw_p2319024

it is posible to make same name in drawing name without type on keyboard same name?

 

i want when creating drawing file that have the same name as part of Automated

 

is posible the drawing have name screw_p2319024

4 replies

24-Ruby III
April 9, 2015

Bogdan,

you can use AutoIt. For inspiration see Re: Creo 2.0 - Open a drawing from active part?

Martin Hanak

12-Amethyst
April 24, 2015
1-Visitor
May 18, 2015

Unfortunately, there is no current functionality for this. The following document looks like it might work for you but I'm not sure how practical it is.

https://support.ptc.com/appserver/cs/view/solution.jsp?n=CS37133

12-Amethyst
May 19, 2015

Bogdan,

This works for me and hopefully the same for you.

First off, I received this from nicomajstr, a mcadcentral user.

I requested the original files which ran on WF4 and modified them to work within Creo so the kudo's goes to his (her) effort.


To make this simple, create a folder path:

c:\home\programs

and put the two files attached - unzipped, of course, in the programs folder

once you understand what is happening, you can change the file paths in the script to where you want.

in your config.pro, put this script:

mapkey std @MAPKEY_NAMECreate new drawing with a format;\

mapkey(continued) @MAPKEY_LABEL>Create New Drawing;\

mapkey(continued) ~ Command `ProCmdModelSaveAs` ;~ Open `file_saveas` `type_option`;\

mapkey(continued) ~ Open `file_saveas` `type_option`;\

mapkey(continued) ~ Select `file_saveas` `type_option` 1 `db_563`;\

mapkey(continued) ~ Activate `file_saveas` `Current Dir`;\

mapkey(continued) ~ Activate `file_saveas` `SAB_c:\\home`;\

mapkey(continued) ~ Select `file_saveas` `ph_list.Filelist` 1 `programs`;\

mapkey(continued) ~ Activate `file_saveas` `ph_list.Filelist` 1 `programs`;\

mapkey(continued) ~ Activate `file_saveas` `OK`;~ Activate `shd_img_param` `OK`;\

mapkey(continued) @SYSTEMstart C:\\home\\programs\\ustvari_risbo.bat;\

mapkey(continued) ~ Command `ProCmdRibbonOptionsDlg`;\

mapkey(continued) ~ Select `ribbon_options_dialog` `PageSwitcherPageList` 1 `ConfigLayout`;\

mapkey(continued) ~ Activate `ribbon_options_dialog` `ConfigLayout.Open`;\

mapkey(continued) ~ Trail `UI Desktop` `UI Desktop` `DLG_PREVIEW_POST` `file_open`;\

mapkey(continued) ~ Input `file_open` `opt_EMBED_BROWSER_TB_SAB_LAYOUT` \

mapkey(continued) `C:\\home\\programs\\`;\

mapkey(continued) ~ Activate `file_open` `opt_EMBED_BROWSER_TB_SAB_LAYOUT`;\

mapkey(continued) ~ Command `ProFileSelPushOpen@context_dlg_open_cmd`;\

mapkey(continued) ~ Activate `ribbon_options_dialog` `OkPshBtn`;\

mapkey(continued) ~ Activate `UITools Msg Dialog Future` `no`;\

mapkey(continued) %usdrw;.;.;.;.;.;.;.;.;.;.;.;


fire up creo

open an assembly or part that does not have a drawing and run "std"

all the ".:.:" after %usdrw is an auto filler for the drawing form that has parameters. adjust or remove as needed.

enjoy

1-Visitor
February 27, 2020

Hi RonSt. Pierre Marble.

I have a problem with your script. It creates a tiff image with the same name as part file and for the drawing it's asking me to type the name for drw. What i'am doing wrong? I don't understand what i must adjust %usdrw.