-
Notifications
You must be signed in to change notification settings - Fork 53
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
[DISCUSSION] New product creation when "Manual Import" is checked. #80
Comments
Hmm, maybe embedding the VBA function into pycatia would be good for this use case. I tried looking to see if the setting can be checked / changed through the COM interface but I'm can't find it. |
If what I understand is right, this issue would be about setting controller. Unfortunately, in my environment(V5R19), Tab "Options ->Infrastructure->Product Structure->Product structure" is not exposed by CATIA. It can be tested in later environment. Generally, I would use "Dumps parameters values"(bottom left button in options window) to record a specific option tab. If it could record an useful VBScript, then setting control would be possible. |
I tried this myself the other day on R21 and it isn't exposed there either. I have contacts who use much later releases. I'll get them to check. |
R28 - Isn't exposed. Anyway, even if they will expose this setting in a future release that won't help me much( limitation to use specific Catia V5 version). So, VBA injection is a way to go for now. |
can u write simple code ? i check in some releases of catia V5R29 and maybe R30-31 |
R33 - not exposed |
Describe the bug
New product creation when "Manual import" check box checked in the infrastructure options.
It's not a bug in pycatia.
To Reproduce
Go to Options ->Infrastructure->Product Structure->Product structure tab and check Part Number manual input.
Add new product using Add method and try to set product name thru code.
Above will not work. Uncheck "Manual input" and you are good to go.
https://stackoverflow.com/questions/31998761/create-new-product-in-catia-with-python
To call VBA function in python works like a charm.
Any thought?
edit: fixed broken link
The text was updated successfully, but these errors were encountered: