Skip to content
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

Open
Kanfit opened this issue Jan 18, 2021 · 6 comments
Open

[DISCUSSION] New product creation when "Manual Import" is checked. #80

Kanfit opened this issue Jan 18, 2021 · 6 comments
Assignees

Comments

@Kanfit
Copy link

Kanfit commented Jan 18, 2021

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

@evereux
Copy link
Owner

evereux commented Jan 24, 2021

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.

@evereux evereux changed the title [BUG]New product creation [DISCUSSION] New product creation when "Manual Import" is checked. Jan 24, 2021
@Tian-Jionglu
Copy link
Contributor

If what I understand is right, this issue would be about setting controller.
#62 could be a reference.

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.

@evereux
Copy link
Owner

evereux commented Jan 26, 2021

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.

@Kanfit
Copy link
Author

Kanfit commented Jan 27, 2021

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.

@ptm-tm
Copy link
Contributor

ptm-tm commented Oct 11, 2023

can u write simple code ? i check in some releases of catia V5R29 and maybe R30-31

@deloarts
Copy link
Contributor

R33 - not exposed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants