cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Want the oppurtunity to discuss enhancements to PTC products? Join a working group! X

TrailMaker Script

Jose_Costa
12-Amethyst

TrailMaker Script

Hi everybody,

This is my contribution to Creo Community. A script for creating customized trailfiles in Creo.

Usefull for batch conversions, printing, etc..

Tell me what you think.

Cheers

https://www.dropbox.com/s/nprv7wx6u2iog2n/TrailMaker.zip?dl=0

Video Link : 5254

15 REPLIES 15

amazing

Jose_Costa
12-Amethyst
(To:bduncan)

Hi Duncan,

It´s good to have some feedback, short, but some

I was starting to think that I was the only guy in the world that needs to convert multiple files at a time, now we are at least two.

Any problems setting it up?

Here some ideas that you can make the script work for you:

Export multiple parts to Step/Iges

Import multiple Iges/Steps to Prt´s

Export multiple Drawings to DXF/DWG/PDF

Export/verify all instances of a family table

Bring multiple parts/drawings into session

Plot a lot of drawings

Run a mapkey

Change/add/delete Parameters

Modify Units/Mass Properties

Create Jpeg´s of multiple parts

Mix all this together...

Lots of possibilities.

Jose

Very usefull functions! For a large assembly,It's difficult to add /delete parameters &relations,But I find a way,that use EMX to deal with the large assembly.EMX can deal with a general assembly(by using "modify" to activat EMX )

Jose,

It does not work on my PC/Creo. Everything is OK until I select trail file. It immidiately loop back to the begining, asking to filter desired files. File_list.txt file is present in trail folder. I do not know what went wrong.

everything is set per your read_me file.

Hi,

What version do you use?

The file header.txt contains the header of the trailfile. I´m using Creo 2 M030. If you´re using another version, then:

Open a trailfile of yours and copy the first two line, paste them in header.txt:

C__Users_tony_AppData_Local_Temp_Temp1_TrailMaker.zip_TrailMaker_header.txt+-+Sc_2014-09-11_20-23-58.png

Also check in folder c:\trailmaker if file run_trail.txa has been created.

And which trailfile are you selecting?

Jose

I am using Creo 2.0 M110. txa file is created.I tried dwg, dwx and pdf and on all were the same.

If txa files has been created, try calling mapkey "ptrail".

Same thing. It lops back to the beggining.

Hi Danilo,

I don´t know what´s going on there...

But it seems that the most important is done: the creation of the .txa file.

All you have to do in Creo is play the trailfile C:\TrailMaker\run_trail.txa

I suggest editing your config.pro and rename the mapkeys.

mapkey "trail" rename to "t1"

mapkey "ptrail" rename to "t2"

Save config.pro, restart Creo, set work directory, call mapkey t1 (this will create txa file), call mapkey t2 (this will run the txa file).

Jose

Costa, help me understand this. Trail mapkey should "call" ptrail mapkey. I do not have to type it after trail mapkey is pefromed? I am busy right now and I do not have time to investigate this but i will get back to you as soon as I check it.

The way I wrote the script, you don´t have to call the mapkey "ptrail" manually, it´s automatic. But, from the info you gave to me, that isn´t happening in your computer. It seems that for for reason, the script calls the first mapkey again ("trail"), it loses the character "p" somewhere in the way.

If you want to break the loop, rename the mapkeys as I suggested, and then it will work in two manual steps:

1st - Call mapkey "t1" to create txa file

2nd - Call mapkey "t2" to play txa file

Jose

I updated this script in this post:

Trailmaker 0.3

Matheswaran
5-Regular Member
(To:Jose_Costa)

Hi Jose,

 

I am unable to download the trailmaker. could you please send the file and video link again.

 

Thanks in advance

 

sparulekar
14-Alexandrite
(To:Jose_Costa)

im not able to open th link you have provided

Announcements
NEW Creo+ Topics: PTC Control Center and Creo+ Portal


Top Tags