Discussion Groups

Robot Structural Analysis

Reply
Active Contributor
guillaumeniel
Posts: 44
Registered: ‎12-07-2012
Accepted Solution

Robot API - set bar relative dilatation load

203 Views, 3 Replies
12-15-2012 03:35 PM

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 ?

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,604
Registered: ‎04-26-2010

Re: Robot API - set bar relative dilatation load

12-17-2012 03:27 AM in reply to: guillaumeniel
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

 



Rafal Gaweda
Please use plain text.
Active Contributor
guillaumeniel
Posts: 44
Registered: ‎12-07-2012

Re: Robot API - set bar relative dilatation load

12-17-2012 01:37 PM in reply to: Rafal.Gaweda

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) ?

Please use plain text.
Product Support
Rafal.Gaweda
Posts: 5,604
Registered: ‎04-26-2010

Re: Robot API - set bar relative dilatation load

12-18-2012 12:07 AM in reply to: guillaumeniel

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

 



Rafal Gaweda
Please use plain text.