kinematic constraint and boundary condition for a model

Hi.

Suppose that there are thress segment (Seg1, Seg2, Seg3).
Seg2 lies on the Seg1, and the position of Seg2 is determined by a certain driver associated with Seg3. (Upward is z direction)

In this case, I think I can make scripts like this:

AnySeg Seg1 = {...
};
AnySeg Seg2 = {...
};
AnyKinEq ContactCondition = {   // Seg2 should on the Seg1
  AnyKinLinear lin = {
    AnyRefFrame = .Seg1;
    AnyRefFrame = .Seg2;
    Ref = 0;
  };
  MeasureOrganizer = {2};
  ...
};
AnyKinEq Drv = {
  AnyKinLinear lin = {
    AnyRefFrame = .Seg3;
    AnyRefFrame = .Seg2;
  };
  ...
};

However, I want to add a constraint or a boundary condition, which makes the Seg2 located within the dimension of Seg1. In other word, Seg2 cannot be outside of Seg1.
How can I make a such condition on the model?

Hi,

It seems that you may want to use a kind of inequality constraint inside AnyBody Modeling System.

Unfortunately AnyBody does not support that kind of inequality constraints.

Best regards,
Moonki