Using PTC CREO distributed batch to run mapkey on multiple prt files
- January 13, 2025
- 3 replies
- 4642 views
Hello,
I have been trying to debug this for a while and cannot figure it out. Was hoping someone here could help me.
Creo parametric version: 10.0.4
Creo Distributed batch version: 10.0.4
What I am trying to do:
I have many part files with different names that are 2D curves. I want to export those part files to dxf without opening the files one by one and saving them.
What I have done so far:
I could not get the proper export of the part files to dxf without opening the part as a drawing first. I created a mapkey that opens the current part as a drawing template with the correct view and scale, then saves that drawing as a dxf. The mapkey works when run manually and does save me time.
However, I wanted to speed up the process further by using Creo distributed batch to run that mapkey on all the parts. I have found a way to do this in theory using the mapkey.TTD option in Creo distributed batch. I opened the TTD as text and modified it accordingly so it would run my mapkey (-dxf), then renamed the TTD to mapkey-dxf. I have configured Creo distributed batch to use my config file which contains my mapkey, and selected the mapkey-dxf.TTD as the task group.
My problem:
I can add all my parts to the "objects" section in the distributed batch window, and when I start the task they all go from "unsubmitted" to "working", but they never complete or fail. It simply stays "working" forever.
I have very limited experience with Creo distributed batch, so I might be doing something wrong / have a setting wrong. Maybe my mapkey needs to be modified since it works when the part is already open, but the batch process is different. I hope someone can point me in the right direction.
Here are some images for additional information. I have also attached text files with the code for my mapkey and dxc file. I added the code for the TTD file because I could not figure out how to attach it here (even when changed to txt it wouldn't let me post?)



TTD file code:

