-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automate drawings of family table instances #44
Comments
You might consider using a drawing template as your startpoint.
This is a good practice in general - especially when trying to get a bunch
of initial drawings created for a stack of models (e.g. loop through the
models and execute create a drawing using a template reference).
drawing : create using the template name as an argument.
Dave
…On Sat, Feb 5, 2022 at 2:23 PM RandomFab ***@***.***> wrote:
- Creo version: 7
- Creopyson version:
- Creoson version:
- Python version: 3.9
- Operating System: windows
Description
I'm definetly not an expert in python and coding in general, so please be
indulgent if i'm doing BIG mistakes !
Description ->
I have designed a generic part and have created its family table on creo.
I have done a drawing based on the generic part. I want to generate a
drawing for every single instance of my generic part.
On creo you can manually "replace" the drawing model by the instance that
you want. I basically try to do the same with creopyson.
What I Did
I tried :
c.drawing_set_cur_model("part0001_inst2.prt")
[...]
RuntimeError: File 'part0001_inst2.prt' was not open
c.drawing_set_cur_model("PRT0001_INST2.prt")
[...]
RuntimeError: A Pro/TOOLKIT error has occurred: Not Found. Check your
model/drawing for accuracy.
I'm not sure about what i'm doing rn. So please, if you have any idea or
advices, do not hesitate !
—
Reply to this email directly, view it on GitHub
<#44>, or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMSRJKJNRMKFQ5D5N66UADUZV2MNANCNFSM5NUKVODQ>
.
Triage notifications on the go with GitHub Mobile for iOS
<https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675>
or Android
<https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub>.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
--
David Bigelow, President
Simplified Logic, Inc <https://www.simplifiedlogic.com> | SimilarParts.ai
C: 317-431-5454
|
Hello @RandomFab |
Description
I'm definetly not an expert in python and coding in general, so please be indulgent if i'm doing BIG mistakes !
Description ->
I have designed a generic part and have created its family table on creo. I have done a drawing based on the generic part. I want to generate a drawing for every single instance of my generic part.
On creo you can manually "replace" the drawing model by the instance that you want. I basically try to do the same with creopyson.
What I Did
I tried :
I'm not sure about what i'm doing rn. So please, if you have any idea or advices, do not hesitate !
The text was updated successfully, but these errors were encountered: