Hi,
I want to define a bar relative dilatation load with Robot API. Here is my script :
Dim ChargeDilat As RobotLoadRecord
CasMiseTension.Records.New(IRobotLoadRecordType.I_LRT_BAR_DILATATION)
ChargeDilat = CasMiseTension.Records.Get(1)
ChargeDilat.SetValue(IRobotBarDilatationRecordValues.I_BDRV_REL, -0.03)
ChargeDilat.Objects.FromText(1)
In Robot, the load is created and appears in the array, but the dilatation value is set to 0 instead of -0.03. I don't get any error message.
What is the problem ?
Solved! Go to Solution.
Solved by Rafal.Gaweda. Go to Solution.
Dim ChargeDilat As RobotLoadRecord Set ChargeDilat = CasMiseTension.Records.Create(I_LRT_BAR_DILATATION) ChargeDilat.SetValue I_BDRV_REL, 1 ChargeDilat.SetValue I_BDRV_DIL, -0.03 ChargeDilat.Objects.FromText 1
Thanks, it works.
But what is the meaning of ChargeDilat.SetValue(IRobotBarDilatationRecordValues.I_BDRV_REL, 1) ?
Does it mean that the dilatation is relative and not absolute ? For an absolute dilatation, is the code
ChargeDilat.SetValue(IRobotBarDilatationRecordValues.I_BDRV_REL, 0) ?
But what is the meaning of ChargeDilat.SetValue(IRobotBarDilatationRecordValues.I_BDRV_REL, 1) ?
Does it mean that the dilatation is relative and not absolute ?
Yes
For an absolute dilatation, is the code
ChargeDilat.SetValue(IRobotBarDilatationRecordValues.I_BDRV_REL, 0) ?
Yes
Can't find what you're looking for? Ask the community or share your knowledge.