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
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"
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
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
I already did it, thank you!
I have another question, can i select nodes by coordinate?
regards
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
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
Can't find what you're looking for? Ask the community or share your knowledge.