🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

How to link a set of subroutine behind a subroutine in a force ?

User: "Jim P."
New Altair Community Member
Updated by Jim P.

Hello,

I have a force for the tyres of my model that calls a subroutine of mine. The problem is that this subroutine calls different subroutines locally. Actually, I would like that my python script is used outside with python and inside MotionView with, in that case, Motion View python functions such as pyrelpar and so on.

As an attachment we can see my program layout. The force calls a function (tyres_GFOSUB) in env_altair.py (a script that have all functions necessary from Motion View such as pyrelpar).   tyres_GFOSUB function calls the function in tyre_loads.py to calculate everything according to the inputs. But tyre_loads.py needs to either used functions from Motion View in env_altair.py (import env_altair that is inside another folder than tyre_loads) or used python functions in env_python.py if I would like to use my subroutine with only python inputs and not motionview ones.

How to do so easily ? Do you have an example ?

Find more posts tagged with

No comments on this post.