Skip to content

python-wrapped function to return engine position #1014

Answered by joergbrech
MarkusZimmerDLR asked this question in Q&A
Discussion options

You must be logged in to vote

Sorry for the very late reply. I don't think we have any convenience functions for this in TiGL. You can use the UID Manager to follow the chain of transformations relative to the parents (under the assumptions that the translations are all defined in CPACS to be relative to the parent)

Here is some code to get you started in the right direction:

tixi_handle = tixi3wrapper.Tixi3()
tixi_handle.open("simpletest-simplenacelle.cpacs.xml")

config_handle = tigl3wrapper.Tigl3()
config_handle.open(tixi_handle, "")
config_mgr = tigl3.configuration.CCPACSConfigurationManager_get_instance()
config = config_mgr.get_configuration(config_handle._handle.value)
uid_mgr = config.get_uidmanager()

engine_…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MarkusZimmerDLR
Comment options

Answer selected by MarkusZimmerDLR
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants