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

Community Tip - Learn all about PTC Community Badges. Engage with PTC and see how many you can earn! X

Anyone willing to help me make a simple program/listener?

SYNDAKIT
15-Moonstone

Anyone willing to help me make a simple program/listener?

I really could use some help creating a simple listener or program or something similar, that when in drawing mode, it would run a mapkey when the user prints or maybe when they save. 

 

I just dont know where to begin. 

 

Thank you

6 REPLIES 6
MadhaviG
12-Amethyst
(To:SYNDAKIT)

It looks like altering Creo fucntionality (Save/Print) and so I think that is prohibited.

But you can 

1. have your own command which will execute the Mapkey and then Save/Print the model.

2. update the menu in have your command instead of Save/Print.

 

May be API ProNotificationSet() would help you.

sounds like something I would be interested in. 

I am fluent with relations in creo but I would need to be walked through creating and running that program. maybe in VBA?

 

also check out this older thread that I started. It's the same issue but still never resolved. https://community.ptc.com/t5/Creo-Modeling-Questions/Repeat-region-summation/td-p/362172

 

What I am thinking is if I can just have some little program running in the background that runs a mapkey ( I have already created one) just before or just after the user prints/saves. 

Another option without having to use a toolkit type program, would be to write a script that monitors the trail file and sends keystrokes to Creo Parametric (to run the mapkey). We’ve used AutoIT to do just such a thing, but we don’t continuously run the script while Creo Parametric is running. We automate some printing and export functions, and examine the trail file for success/failure messages. We’re only looking at the trail file while the print/export function is active.
SYNDAKIT
15-Moonstone
(To:dnordin)

How do you set up autoit to only look at the trail file while the print is active?

We run a menu driven mapkey to print. That mapkey runs an OS command to start the AutoIT program and then return control to Creo Parametric. The AutoIT program is sending keystrokes to Creo Parametric to run additional mapkeys and it monitors the trail file. As MadhaviG mentioned, you can probably avoid the "listener" if you setup your mapkeys to do everything you want, and then have the users use the mapkeys (via a menu pick) to print/save instead of the typical print/save methods. Regards, Dan N.
Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags