PDA

View Full Version : Buckling Curve Y/Z



jbervel
2010-03-19, 11:03 AM
Hello,

I do not know how to modify the parameters of the 'Buckling Curve Y/Z' using the API. By default, these parameters are set to 'auto', and I would like to set these values to 'a0', 'a', 'b', 'c' or 'd'.

With this code:

Dim lbl As RobotOM.RobotLabel =
r.Project.Structure.Labels.Create(RobotOM.IRobotLabelType.I_LT_MEMBER_TYPE, "p")

Dim data As RobotOM.RDimMembDef = lbl.Data

data.SetLengthYZUV (RobotOM.IRDimMembDefLengthDataType.I_DMDLDT_LENGTH_Y, 321)

data.SetLengthYZUV(RobotOM.IRDimMembDefLengthDataType.I_DMDLDT_LENGTH_Z, 123)

r.Project.Structure.Labels.Store(lbl)

I can modify other buckling parameters, but I can not access to the 'Buckling Curve' parameters.

Thanks

jbervel
2010-03-19, 05:01 PM
Solved, I was working with:

RobotOM.IRDimMembParamsE32,

and the correct one is:

RobotOM.IRDimMembParamsE32

Now I can do:

CType(obj, RobotOM.IRDimMembParamsE32).BucklingCurveY = RobotOM.IRDimBucklingCurveE32.I_DBC_E32_CURVE_B