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

Setting controllers #62

Closed
wants to merge 3 commits into from

Conversation

Tian-Jionglu
Copy link
Contributor

An example about setting_controller(s):

from pycatia import catia
from pycatia.in_interfaces.general_session_setting_att import GeneralSessionSettingAtt

caa = catia()
setting_ctrls = caa.setting_controllers()
controller = setting_ctrls.item("CATCafGeneralSessionSettingCtrl")
spec_controller = GeneralSessionSettingAtt(controller.com_object)
print(spec_controller.auto_save)
print(spec_controller.time_roll)
print(spec_controller.ui_style)

This example is not pretty.
Clause controller = setting_ctrls.item("CATCafGeneralSessionSettingCtrl") spec_controller = GeneralSessionSettingAtt(controller.com_object) print(spec_controller.auto_save) looks like a cycle.

I thought about to import every specific setting controller (GeneralSessionSettingAtt for example) into module setting_controllers or setting_controller. But there are too many specific controllers (total 78), this example may be a better one.

Besides, my prime need is to change setting in page "CATIA options -> General -> Compatibility -> Graphics Formats"
see https://github.com/Tian-Jionglu/pycatia/projects/1#card-47415969
But this page seems not exposed to automation.
Anyone know more info about this page?

@evereux
Copy link
Owner

evereux commented Nov 8, 2020

I have merged this into the development branch. Cheers. 👍

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

Successfully merging this pull request may close these issues.

2 participants