Some help please because I'm running out of ideas.
So, I have two markers / construction frames : first one has a fix location, but the second one is dependent by the first marker.
There is a relationship between markers: the 2nd one moves along the axis of the 1st one, only after the distance (DM) between them drops under a certain length.
So far I've tried with IF function and with VARVAL... but no success.
Examples :
marker_2 = (LOC_RELATIVE_TO({0.0, 0.0, (IF(....))}, marker_1) or
@Jatin zaverbhai Mandani here is an interesting solution that might be used for your problem.
Open the model Variable_length in Adams/View.
Simulate one second, 100 steps.
Animate the model. You'll see that the Frustrum is 300 mm long and penetrates the ground block quite a bit.
Use the "Tools -> Macro -> Read" and import the macro mdi_animation_callback.
Repeat the animation. Now the bumpstop/Frustrum does not penetrate ground, but instead changes length. If you do this in PPT, you can change the animation speed to slow it down to see the effect.
So this is not a model trick, but instead handled by the macro that , if exists, will be called at each animation frame.
Not exactly what you asked for, but still a neat trick that not too many people knows about. Very handy for making long movies from animations where you want to change view point or make parts transparent during animation for exmaple.
@Jatin zaverbhai Mandani here is an interesting solution that might be used for your problem.
Open the model Variable_length in Adams/View.
Simulate one second, 100 steps.
Animate the model. You'll see that the Frustrum is 300 mm long and penetrates the ground block quite a bit.
Use the "Tools -> Macro -> Read" and import the macro mdi_animation_callback.
Repeat the animation. Now the bumpstop/Frustrum does not penetrate ground, but instead changes length. If you do this in PPT, you can change the animation speed to slow it down to see the effect.
So this is not a model trick, but instead handled by the macro that , if exists, will be called at each animation frame.
Not exactly what you asked for, but still a neat trick that not too many people knows about. Very handy for making long movies from animations where you want to change view point or make parts transparent during animation for exmaple.