(API) MACRO FOR FOUNDATIONS

(API) MACRO FOR FOUNDATIONS

Anonymous
Not applicable
922 Views
2 Replies
Message 1 of 3

(API) MACRO FOR FOUNDATIONS

Anonymous
Not applicable

 

1.pngHello friend, a favor, I want to make a macro
in visual basic for applications to design a
foundation with the structural robot but I can not find the right
codes, please send me the codes for this sequence

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Through this code "Dim RobApp As RobotApplication
Set RobApp = New RobotApplication
If Not RobApp.Visible = True Then
 Set RobApp = Nothing
 MsgBox "abrir robot"
 Exit Sub
End If
RobApp.Project.New I_PT_FOUNDATION" I can get to this image:

2.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And I would like to come to this:

3.png

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

And finally the codes can be sent to change some parameters like admissible capacity, dimensions of 
the founding, etc. thank you very much
for your support

 

 

0 Likes
Accepted solutions (1)
923 Views
2 Replies
Replies (2)
Message 2 of 3

Rafal.Gaweda
Autodesk Support
Autodesk Support
Accepted solution

Example code:

 

Dim RC As RobotProjectComponent
Set RC = Robapp.Project.ComponentMngr.Create(I_PCT_FOOT, "f", "1")
Dim IRCF  As IRConcrFooting
Set IRCF = RC.Data
IRCF.Geometry.SetDim I_CFDT_FOOT_DIM_A, 5


Rafal Gaweda
Message 3 of 3

Anonymous
Not applicable

Thank you very much my friend, it worked perfectly. You could make a code to modify the dimensions of the foundation, as well as some properties of the soil with permissible capacity and specific weight. Many thanks and sorry for the inconvenience, my friend.

0 Likes