Different manual combination table

Different manual combination table

Konrad.O
Autodesk Support Autodesk Support
6,370 Views
64 Replies
Message 65 of 65

Different manual combination table

Konrad.O
Autodesk Support
Autodesk Support

WIP

A copy of the archived "Different manual combination table" topic:

https://forums.autodesk.com/t5/robot-structural-analysis-forum/editing-load-cases-in-excel-api/m-p/8... 



Konrad Ociepka
Senior Product Owner - Structural Analysis
0 Likes
6,371 Views
64 Replies
Replies (64)
Message 20 of 65

Rafal.Gaweda
Autodesk Support
Autodesk Support
Second tab of this macro 🙂


Rafal Gaweda
0 Likes
Message 21 of 65

Anonymous
Not applicable

Hi

 

I've recently started using Excel with Robot and I'm really thankful for these small excel-programs you've created Rafal. I am however trying, using your (Rafal's) scripts as models, to modify a program more suited for my needs. One of the things that I can't get to work, when it comes to importing and updating load records, is applying the same load to several bars at ones (I'm creating a program using Uniform loads). The importation to Excel works, but I can't later on update the same cell into Robot. Does anyone have any ideas how to do this?

 

Thankful for answers

 

Best regards

Jack

0 Likes
Message 22 of 65

rsousa_
Advocate
Advocate

Have you tried doing this? following variable names from API tutorial...

...

Dim rec As IRobotLoadRecord

 

...

rec.Objects.AddText (Cells(xxx, yyy).Value)

 

At cells(xxx, yyy) you should have all the bars that you want the load to be applied like 1to10 or 2 3 4 7 10...

 

Of course this will add to already aplied bars... if you want only the bars selected in excel, you will have to exclude that objects first. 

Regards

 

0 Likes
Message 23 of 65

Rafal.Gaweda
Autodesk Support
Autodesk Support
Generally first you have to find out which record to update.
Either but checking objects (.Objects) assigned to such record (compare selections...) or you can store somewhere which excel row corresponds to which record in robot


Rafal Gaweda
0 Likes
Message 24 of 65

Anonymous
Not applicable
Hi Rafal,

I have a excel file with your API for extract the internal forces from Robot File, works perfectly! but i want extract a "case name" and "nature" as well. Can you tell me the code for extract thit?

thank you

regards
0 Likes
Message 25 of 65

rsousa_
Advocate
Advocate

have you tried, for example:

 

CaseCol.Get(j).Name
CaseCol.Get(j).Nature

 

of course nature will be 0 - permanent, 1 - exploatation, 2 - wind and so on.

 

Regards

0 Likes
Message 26 of 65

Rafal.Gaweda
Autodesk Support
Autodesk Support
0 Likes
Message 27 of 65

Anonymous
Not applicable

Done! Smiley Very Happy

Thank you both!

regards

0 Likes
Message 28 of 65

mgaafar
Advocate
Advocate

Hi,

   I was trying to copy the loads from the loads tab table to excel and edit it and paste it back in to ROBOT.

it seems there is a bug because it does not read back the data properly and mixes cells.

am i doing something wrong or it is a bug?

 

video link:

http://autode.sk/1VqaCVy

http://www.screencast.com/t/wUuzzAf9Dxbv

0 Likes
Message 29 of 65

Rafal.Gaweda
Autodesk Support
Autodesk Support



Rafal Gaweda
Message 30 of 65

mgaafar
Advocate
Advocate

Thanks Rafal!!

0 Likes
Message 31 of 65

Grohl
Advocate
Advocate

This Excel-macro is awesome.

 

Add this if you want to be able to input different SLS-types:

 

    ElseIf ctn = "sls:chr" Or ctn = "SLS:CHR" Then
        CT = I_CBT_SLS_EC_RAR
    ElseIf ctn = "sls:qpr" Or ctn = "SLS:QPR" Then
        CT = I_CBT_SLS_EC_QPR
    ElseIf ctn = "sls:fre" Or ctn = "SLS:FRE" Then
        CT = I_CBT_SLS_EC_FRE
0 Likes
Message 32 of 65

Grohl
Advocate
Advocate

Or maybe something like this is better then you don't have to worry about lower/upper case.

 

 

    If LCase(ctn) = "uls" Then
        CT = I_CBT_ULS
    ElseIf LCase(ctn) = "sls" Then
        CT = I_CBT_SLS
    ElseIf LCase(ctn) = "sls:chr" Then
        CT = I_CBT_SLS_EC_RAR
    ElseIf LCase(ctn) = "sls:qpr" Then
        CT = I_CBT_SLS_EC_QPR
    ElseIf LCase(ctn) = "sls:fre" Then
        CT = I_CBT_SLS_EC_FRE
    ElseIf LCase(ctn) = "acc" Then
        CT = I_CBT_ALS
    End If
0 Likes
Message 33 of 65

Anonymous
Not applicable

Hi

 

First off thank you for this, the tool is great! And for the standard cases this works perfectly but I can't seem to implement the additional SLS cases.

 

The macro creates all of the cases and I can review the results for the SLS:CHR/FRE/QPR cases and can see them in the Combination Table however the type is blank. The combination interface is also blank so can't change the type manually and the design modules do not recognize them as SLS combinations. Has anyone implemented this successfully?

 

Thanks

 

Section of code below in case there are any obvious errors that I have overlooked

 

    If ctn = "uls" Or ctn = "ULS" Then
        CT = I_CBT_ULS
    ElseIf ctn = "sls" Or ctn = "SLS" Then
        CT = I_CBT_SLS
    ElseIf ctn = "acc" Or ctn = "ACC" Then
        CT = I_CBT_ALS
    ElseIf ctn = "sls:chr" Or ctn = "SLS:CHR" Then
        CT = I_CBT_SLS_EC_RAR
    ElseIf ctn = "sls:fre" Or ctn = "SLS:FRE" Then
        CT = I_CBT_SLS_EC_FRE
    ElseIf ctn = "sls:qpr" Or ctn = "SLS:QPR" Then
        CT = I_CBT_SLS_EC_QPR
    End If
    Dim cmb As IRobotCaseCombination
    
    If loads.Exist(n) Then
        Set cmb = loads.Get(n)
        cmb.name = name
        cmb.CombinationType = CT
    Else
        Set cmb = loads.CreateCombination(n, name, CT, I_CN_EXPLOATATION, I_CAT_COMB)
    End If

 

0 Likes
Message 34 of 65

Rafal.Gaweda
Autodesk Support
Autodesk Support

Hi @Anonymous

 

Unfortunately due to software issue in ROBOT API implementation is it not possible to get\set:

SLS-CHR
SLS-QPR
SLS-FRE
FIRE

types by API

 

The issue is registered for correction.

 



Rafal Gaweda
0 Likes
Message 35 of 65

Anonymous
Not applicable

Ah, thought that might be the case. Thank you for confirming Rafal.

 

I look forward to when it is corrected.

0 Likes
Message 36 of 65

Anonymous
Not applicable

Hi

 

Is this excel file limited to 25 basic cases?

I try to use it for a model with 27 basic cases, and on the combinations sheet the last two basic load cases are replaced with the first two "from combinations".

 

Thank you for a (otherwise) great file!

0 Likes
Message 37 of 65

Rafal.Gaweda
Autodesk Support
Autodesk Support

Hi @Anonymous

 

Let's say it is limited to 25 but You can modify it.

1. On Combinations tab, starting from AA column , cells in 3 and 4 row are wrongly filled \ not filled.

Fill it in similar way as in previous columns (let's say till the end of grey cells)

Example for AA column:

a26.jpg

 

2. Open VBA editor (ALT+F11)

and replace 26 by 52 here:

 

52.jpg



Rafal Gaweda
Message 38 of 65

Anonymous
Not applicable

What about the values? The factors from combinations seem to get written to the same cells as before. I'm not very familiar with VBA so I'm not sure what the change in the code was supposed to do.

0 Likes
Message 39 of 65

Rafal.Gaweda
Autodesk Support
Autodesk Support

hi 

@Anonymous

 

Bump



Rafal Gaweda