Robot Structural Analysis Forum
Welcome to Autodesk’s Robot Structural Analysis Forums. Share your knowledge, ask questions, and explore popular Robot Structural Analysis topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Load to mass converion By API

7 REPLIES 7
Reply
Message 1 of 8
faisal.aaouatif
824 Views, 7 Replies

Load to mass converion By API

Good Morning / Evening

 

Please indicate how to extract for a given load case , values of all parameters of the load to mass conversion by using VBA ( Conversion direction , Conversion coefficient  especially ) if they are defined.

i have not managed to do it by reading the SDK2013.

 

A wish please :

 

it would be very helpful if we have a diagramm showing relationships between all API object defined in The Robot object Model  -- May be it exist already (...)

 

Thank you.

7 REPLIES 7
Message 2 of 8

Hint: load to mass conversion is defined in case numer = -1

 

Load to mass conversion check example (only for "dynamic" mass):

 

Dim robapp As RobotApplication
Set robapp = New RobotApplication
    
    Dim cas As RobotSimpleCase
    Dim rec As RobotLoadRecord
    
Set cas = robapp.Project.Structure.Cases.Get(-1)

For i = 1 To cas.Records.Count
    Set rec = cas.Records.Get(i)
    If (rec.Type = I_LRT_MASS_ACTIVATION) Then
        Factor = rec.GetValue(I_MARV_FACTOR)
        ConvertedCase = rec.GetValue(I_MARV_CASE_NUM) ' unfortunately this does not work
        ConvertionDir = rec.GetValue(I_MARV_ACTIVATION_DIR) '0->X, 1->Y, 2->Z
        ConversionSign = rec.GetValue(I_MARV_SIGN)
    End If
Next i

 



Rafal Gaweda
Message 3 of 8

Thank you for reply.

Is that mean for another load case , exlpoatation for example , i can not get load to mass conversion factor ?

Thank you.

Message 4 of 8

You can get factor(s) by you will not know for which case(s).

Only this line does not work 

ConvertedCase = rec.GetValue(I_MARV_CASE_NUM)


Rafal Gaweda
Message 5 of 8

embarrassing ...

I guess the only way (...) to get the correspandance between case and load to mass conversion factor is that the order in which cases are recorded (begining by converted case Gi , converted cases Qi , then other non converted cases ... ) is exaclty the same as for record of the mass conversion case.

Anyway , hope that this will be fixed soon.

Thank you

Message 6 of 8

Hello Rafal

Please what do you meant by (only for "dynamic" mass) in the previous post ?

Thank you.

Message 7 of 8

dynmas.jpg

 

BTW: mentioned earlier line of code which did not work is already corrected in 2014 SP4



Rafal Gaweda
Message 8 of 8

Thank you Rafal ,

It means unfortunately that cases converted and added to the global mass or modal mass are not recognized automatically  ( even they are really converted ).

May be on the futur enhancements.

Thank you

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report