Does anyone happen to know if it's possible to input a wind profile via the API for the wind load simulation in Robot? I'm only able to configure the parameters that appear on the first tab (General), and are listed in the image below.
I would like to be able to input something like this via API. I know that there's a CSV file in Robot's directory, but even in this case I don't know how to use it when running through the API.
Solved! Go to Solution.
Solved by renatogheno. Go to Solution.
hi @renatogheno
you should consult this topic
creating a wind profile file consists of a csv file that you can generate as follows
Sub CreateCSV()
Dim filePath As String
Dim fileNumber As Integer
Dim i As Integer, endValue As Double
Dim x As Double, val As Double
Version = 2025 '...................Enter your Robot version number
FileName = "output.csv" '..........Rename your file
appDataPath = Environ("AppData")
RobotDirectory = "\Autodesk\Autodesk Robot Structural Analysis Professional " & Version & "\CfgUsr\Wind Profiles\"
filePath = appDataPath & RobotDirectory & FileName
fileNumber = FreeFile
Open filePath For Output As #fileNumber
endValue = 200 ' < Replace with desired end value (height)
For x = 0 To endValue Step 10
val = YourFunction(x) ' Replace with your function
Print #fileNumber, val & ","; x
Next x
Close #fileNumber
MsgBox "Fichier CSV créé avec succès à " & filePath
End Sub
Function YourFunction(x As Double) As Double
YourFunction = 2.5 * (x + 18) / (x + 60)
End Function
Best regards
Perfect, thank you 🙏. I how can I use this created CSV in a wind simulation via API?
Thanks for the replies, it helped to come up with an alternative solution. It turns out we can't use a variable wind profile via API.
Can't find what you're looking for? Ask the community or share your knowledge.