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

Community Tip - Stay updated on what is happening on the PTC Community by subscribing to PTC Community Announcements. X

Translate the entire conversation x

Communication to creo using external command prompt

TP_9862373
7-Bedrock

Communication to creo using external command prompt

Hello there,

Is there any similar methods to run a native python or .cpp file in creo as like we do in Unigraphics NX ?

I am trying to connect to a creo 9.0 environment , from external command prompt as like creoson, but after that can i pass the creo toolkit commands to creo via that terminal ?

 

ACCEPTED SOLUTION

Accepted Solutions
remy
21-Topaz I
(To:TP_9862373)

thank you for expanding.
directly running python code without compiling it to dll or exe is not part of Creo Parametric functionalities.
Creo Toolkit is an API and needs compilation at some point or another.

View solution in original post

11 REPLIES 11
remy
21-Topaz I
(To:TP_9862373)

Hi 

Tell us more about the method used with NX.

Creo Toolkit offers an asynchronous mode where an application, that you need to develop, can connect to an existing Creo session.

When you says "from external command prompt", I'm assume you need to have a prompt that you'd key in live to feed Creo with. Is my understanding correct?

 

TP_9862373
7-Bedrock
(To:remy)

Thanks for the reply @remy , In NX we can directly run the python code developed with NX OPEN functionality without compiling it to dll or exe. Is there any similar option in creo ?

For the second question, yes your understanding is correct . a command terminal , where i enter toolkit commands which get reflected in live creo environment .

remy
21-Topaz I
(To:TP_9862373)

thank you for expanding.
directly running python code without compiling it to dll or exe is not part of Creo Parametric functionalities.
Creo Toolkit is an API and needs compilation at some point or another.

Look into creopyson or creoson

 

https://pypi.org/project/creopyson/

Hello @Michael ,

i knew this tool already, but it connects to their server and it also have limited functionality.

i want to know if there is a similar kind of tool available in native creo itself, where i can use all the toolkit functionalities .

RPN
17-Peridot
17-Peridot
(To:TP_9862373)

Like this  ...

 

TP_9862373
7-Bedrock
(To:RPN)

Yes could be like this , but is there any tool built in creo, which runs native python or cpp file

 

RPN
17-Peridot
17-Peridot
(To:TP_9862373)

Not that I know, what do you want to do with it?

 

BTW A cpp must be always compiled, and a toolkit license is not that cheap 🙂

Hello @TP_9862373,

 

It looks like you have some responses from some community members. If any of these replies helped you solve your question please mark the appropriate reply as the Accepted Solution. 
Of course, if you have more to share on your issue, please let the Community know so other community members can continue to help you.

Thanks,
Vivek N.
Community Moderation Team.

Hello,

 

Yes, SIGMAXIM's SmartAssembly does exactly what you are looking to accomplish. SmartAssembly is a scripting language developed for Creo similar to  python. The commands cover all Creo functionality as well as the ability to connect with other databases or enterprise systems.  There is no need for a Toolkit license when using SmartAssembly, nor is there need to compile or convert to dll's. To find out more please visit  www.sigmaxim.com.

Hi @jbeckley-2  , thanks for the response, currently i am looking for native solution in creo only, not using other third party tools, since i already use one. 

 

Announcements
NEW Creo+ Topics: Real-time Collaboration

Top Tags