I am working on an assembly and I am trying to determine a kind of input-output law in order to limit the conditions of use of my mechanism.
I'd like to know if it's possible to put a condition (IIF in particular) in an assembly constraint.
In principle, I would like my if a distance is negative (yes yes I know, it's not very fair to write it like that) between 2 points, then the coincidence constraint is made with such a plane, if not with such a plane. Otherwise, let one constraint be active, if not the other. The purpose is to recover a length induced by this constraint. Ideally, it would be automatically extracted to a spreadsheet... (yes yes I know I'm dreaming).
I thought I could do the 2 constraints and turn them on or off using a macro.
I thought that maybe, before I started, the community had ideas on how to do it? Or has it already been done?
I think that all this can be done via the spreadsheet directly and it is the spreadsheet that will activate or not the "positive" and "negative" position constraints.
Basically, I don't think it can be managed automatically under SW but no longer under Excel.
Here's how I tried to do it (it's still very manual, I didn't have time to make an API/macro that manages it on its own).
I installed a control of my angular stress and then I installed measurement sensors (be careful, only positive values). I then varied my rating using my stress control and then I recorded the values indicated by my sensors. All in an Excel spreadsheet and I was able to extract my long-awaited graph!
I contacted support and there are no Built-In solutions. They offered me to use the room family but it doesn't seem any easier. The motion study does not allow you to do this visibly either. Another solution would have been to do this in the form of a CAD/CAM, but it is long and complicated.