Table columns API

Table columns API

cherifmetarfi
Explorer Explorer
2,540 Views
7 Replies
Message 1 of 8

Table columns API

cherifmetarfi
Explorer
Explorer

i have this part of code 

IRobotApplication robot = new RobotApplicationClass();

string text = Path.GetTempPath() + "\\temp.csv";
RobotTable robotTable = robot.Project.ViewMngr.CreateTable(IRobotTableType.I_TT_STOREYS, IRobotTableDataType.I_TDT_DEFAULT);

robotTable.Select(IRobotSelectionType.I_ST_CASE, "6");
 i want to add height column but i can't achieve that using  robotTable.AddColumn(i);

0 Likes
Accepted solutions (1)
2,541 Views
7 Replies
Replies (7)
Message 2 of 8

Stephane.kapetanovic
Mentor
Mentor

hi @cherifmetarfi 

Sub GetStoreyHeight()
  Dim RobApp As RobotApplication
  Set RobApp = New RobotApplication
  
  Dim Storeys As RobotStoreyMngr
  Set Storeys = RobApp.Project.Structure.Storeys
  
  If StoreysCnt <> 0 Then
    Dim Storey As RobotStorey
    For i = 1 To Storeys.Count
      Set Storey = Storeys.Get(i)
      StoreyName = Storey.Name
      Height = Storey.Height
      Debug.Print StoreyName, Height
    Next i
  End If
End Sub

Best Regards

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
0 Likes
Message 3 of 8

cherifmetarfi
Explorer
Explorer

thank you for response, i have to achieve that but i want to do it in table (RobotTable) there are other cases that's why i want to know how addColumn works 

0 Likes
Message 4 of 8

Stephane.kapetanovic
Mentor
Mentor

try 1809

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
0 Likes
Message 5 of 8

cherifmetarfi
Explorer
Explorer

thank you so much it works but how i can column index, i have simillar work with other table types (haev i to try randomly or there is a list of columns names )

0 Likes
Message 6 of 8

Stephane.kapetanovic
Mentor
Mentor
Accepted solution

Sometimes, column indexes are provided on the forum; other times, you may need to search for them yourself or create a bot. It's best to ask here if you can't find them.

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
Message 7 of 8

cherifmetarfi
Explorer
Explorer

thank you for you help 

Message 8 of 8

Stephane.kapetanovic
Mentor
Mentor

a simpler solution to find column indexes for your programs.

Header Explorer - Stop searching for where to find column indexes in Robot Structural Analysis 

Stéphane Kapetanovic

Did you find this post helpful? If it gave you one or more solutions,
don't forget to accept the solution and leave a < like !
EESignature
0 Likes