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: 

API Bracket definition

8 REPLIES 8
Reply
Message 1 of 9
samuel.pereira
557 Views, 8 Replies

API Bracket definition

Hello,

 

I'm trying to create a bracket and assign to a bar using Robot steel API.

It’s possible provide a complete example to "Visual Basic -Microsoft Excel" for a “Bar” type?

 

Thanks

8 REPLIES 8
Message 2 of 9

Example

 

Dim RobApp As RobotApplication
Set RobApp = New RobotApplication


    Dim RBracket As RobotLabel
    Dim BracketData As RobotBarEndBracketData
    
    Set RBracket = RobApp.Project.Structure.Labels.Create(I_LT_BAREND_BRACKET, "Bracket")
    Set BracketData = RBracket.Data
    BracketData.Type = I_BEBT_PLATES
    BracketData.SetValue I_BEBDV_HEIGHT, 0.4, 0
    BracketData.SetValue I_BEBDV_LENGTH, 0.6, 0
    BracketData.SetValue I_BEBDV_THICKNESS_1, 0.01, 0
    BracketData.SetValue I_BEBDV_THICKNESS_2, 0.02, 0
    BracketData.SetValue I_BEBDV_WIDTH, 0.3, 0
    
    RobApp.Project.Structure.Labels.Store RBracket
    
    bar_number = 1
    
    Dim RBar As RobotBar
    Set RBar = RobApp.Project.Structure.Bars.Get(bar_number)
    
    Dim BarE As RobotBarEnd
    
    Set BarE = RBar.Start
    BarE.SetLabel I_LT_BAREND_BRACKET, "Bracket"
    
    Set BarE = RBar.End
    BarE.SetLabel I_LT_BAREND_BRACKET, "Bracket"

 



Rafal Gaweda
Message 3 of 9

Thank you!

Message 4 of 9
1090174
in reply to: Rafal.Gaweda

Hi Rafal,

 

how can i create a bracket with same section of Beam? i just need define Height and Lenght.

I already change your preview code for BracketData.Type = I_BEBT_SECTION but know i dont know what i have to do.

 

regards

Message 5 of 9
Rafal.Gaweda
in reply to: 1090174

Set H and L ; enough

 

    BracketData.Type = I_BEBT_SECTION
    BracketData.SetValue I_BEBDV_HEIGHT, 0.4, 0
    BracketData.SetValue I_BEBDV_LENGTH, 0.6, 0

 

 

 



Rafal Gaweda
Message 6 of 9
1090174
in reply to: Rafal.Gaweda

I already did it, thank you!

 

I have another question, can i select nodes by coordinate?

 

regards

 

Message 7 of 9
Rafal.Gaweda
in reply to: 1090174

Yes, of course.
Write your method \ function doing that.

Check this also:

http://forums.autodesk.com/t5/robot-structural-analysis/api-c-sharp/m-p/3233830/highlight/true#M1467



Rafal Gaweda
Message 8 of 9
1090174
in reply to: Rafal.Gaweda

Thi code is for select a node (in this case node 1)

 

Dim sel_node As RobotSelection
Set sel_node = Robapp.Project.Structure.Selections.Get(I_OT_NODE)
sel_node.FromText (1)

 

but my question is if there any option for select a node by coordinates, for example select a node with coordinates (1,1,1)

 

regards

Message 9 of 9
Rafal.Gaweda
in reply to: 1090174

There is no.
You have to write it by your own.


Rafal Gaweda

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

Post to forums  

Autodesk Design & Make Report