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.
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
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.
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)
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
Hello Rafal
Please what do you meant by (only for "dynamic" mass) in the previous post ?
Thank you.
BTW: mentioned earlier line of code which did not work is already corrected in 2014 SP4
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
@Rafal.Gawedahello 🙂
I've tried your code to get project's current load to mass factors but I got none.
Despite I have done them manually, I cannot get them..I have add them as a global masses from manual combinations. Does it have anything to do with it?
Because it gives zero in count cases.
Could you please explain how can I set and get load to mass factors please?
I have also tried with simple cases but not working..
Any ideas please?
@Stephane.kapetanoviccould you provide any hints please?
Many thanks! 🙂
Can't find what you're looking for? Ask the community or share your knowledge.