Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
OpenSource Creo Parametric Automation just got even better!
We are pleased to announce the latest releases of CREOSON and CREOPYSON are available! 😎🎉
Special thanks to ALL users, contributors and customers who provided feedback and supported the development!
CREOSON Distribution release notes:
CREOPYSON Distribution (Python Library)
For Python Lovers ... CREOPYSON provides access to CREOSON as a Python Library and has been updated to the latest CREOSON capabilities!
Main CREOSON.com Website Updates:
How is CREOSON being used?!
Every customer has their own use-case and/or scenario. Here are a few common themes we have observed for both local and remote automation of Creo Parametric:
Have Fun!
Dave
Hello David,
CREOSON seems very interesting and I am looking forward to exploring it more for our major creo to windchill automation project. However, When I went through the list of Functions available in CREOSON. I did not see functions that can add to or checkout CAD objects to Windchill workspace, check-in, save, and upload. Is there anything that I am missing or these functions are not at all supported.
You are correct - we do not support those functions currently (I think it is a limitation in JLINK - I may be incorrect).
Opening a file via Creo (when connected to Windchill) does pull the latest version out of Windchill... so that works fine (along with Create / Clear / Delete Workspaces).
One possible solution would to look at another library like AHK (AutoHotKey) or similar to fill the gaps for functionality ... we have heard that have written their own scripts to automate Creo and Windchill functionality using this... it seems to work very well.
If the functionality does exist in JLINK, and you feel like adding it to the source... I am sure it would be welcomed functionality.
Hope that helps.
Dave
These functions are part of JLink
CheckOut:
Checkout is often accompanied by a download action, where the objects are
brought from the server-side workspace to the local workspace cache. In J-Link,
both operations are covered by the same set of methods.
Methods Introduced:
• pfcServer.Server.CheckoutObjects
• pfcServer.Server.CheckoutMultipleObjects
CheckIn
After you have finished working on objects in your workspace, you can share the
design changes with other users. The checkin operation copies the information and
files associated with all changed objects from the workspace to the PTC Windchill
database.
Methods Introduced:
• pfcServer.Server.CheckinObjects
Upload
An upload transfers PTC Creo Parametric files and any other dependencies from
the local workspace cache to the server-side workspace.
Methods Introduced:
• pfcServer.Server.UploadObjects
Also thank you for the recommendation I will explore AutoHotKey but would love to have these actions part of CREOSON as CREOSON is way easier to use and implement. To explain to you (in a nutshell) what we are trying to achieve is the automation of adding an instance in the Family table. (Parameters/values will come from an input file). CREOSON supports modifying a Family table but it does not support checkout and check-in to Windchill workspace which I really hope you guys bring in your next release.
You are correct.... These DO EXIST in the PTC API...
After a bit more discussion internally... We have not had the time or resources to stand up a Windchill env and test these out.
Current functionality was customer-driven/tested - to their needs, and did not require a full deep dive in to all JLINK / Windchill functions.
If you want to develop the functionality and add it into CREOSON - we can help with navigating the API to get it done (and the existing functionality is there as a bit of a reference obviously).
OR ... We can work with you more directly (consulting/setup fee) to get this moving IF you are interested (we have done this for a few customers) specific to CREOSON + CREOPYSON with great success. Just schedule a meeting on the CREOSON.com page when you are available. We would need you to test/validate the code we would develop against your Windchill Env.
Thanks for the positive feedback!
Dave
Hello Dave,
I will have an internal discussion with stakeholders and get back to you.
Thanks,
Hi David
I have started using creopyson to automate some tasks, including to create a sheet with lots of drawings in it.
Using note_set I am able to insert a note for each drawing, but I am unable to locate the note beneath each drawing.
How can I locate the note?
The documentation indicates the location can be set, but there are no arguments to define this for a note.
Hope you can help out.
Regards
Xander
This is possible in CREOSON -- "note : set" which is used to do this.
CREOPYSON seems to indicate it is possible with the creopyson.note.
set_
But it looks like it is missing a reference for the point location in the API.
I would recommend pushing a request to the CREOPYSON maintainer for a look at this - https://github.com/Zepmanbc/creopyson
You might look at using the "Vanilla" Creoson Usage in CREOPYSON to try the CREOSON "note : set" to see if it works. https://creopyson.readthedocs.io/en/latest/usage.html
The "note : set" function can be found here : http://www.creoson.com/functions.html
Dave
Hi Dave
Thanks for the reply and info.. Wil have a look at "Vanilla" and also request the maintainer to maybe have a look.
Xander