Zepmanbc / creopyson

Python library for Creoson (http://www.creoson.com)
MIT License
60 stars 5 forks source link

Connection Refused Error with Start_creo() #64

Closed yuyaU0507 closed 1 year ago

yuyaU0507 commented 1 year ago

Hi there, I would like to launch Creo with creopyson thus I tried "Start_creo()" command. Before I run the command, I copied .bat file to C:\creopyson_test and then execute script below:

import creopyson c=creopyson.Client() c.start_creo("C:\creopyson_test\parametric.bat")

After that, I got some error messeges like below:

ConnectionRefusedError: : [WinError 10061] No connection could be made because the target machine actively refused it

What is a solution to avoid these errors? Should I change some settings before I launch Creo with creopyson?

Zepmanbc commented 1 year ago

Hello, your bat name is wrong => https://creopyson.readthedocs.io/en/latest/creopyson.html#creopyson.connection.Client.start_creo

yuyaU0507 commented 1 year ago

Hello, I changed the bat name to nitro_proe_remote.bat and it works. Thank you!