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: 

How to use custom Wind Profile when simulating wind loads via API?

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
renatogheno
259 Views, 6 Replies

How to use custom Wind Profile when simulating wind loads via API?

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.

renatogheno_0-1718904796126.png

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.

renatogheno_1-1718904819530.png

 

Labels (1)
  • API
6 REPLIES 6
Message 2 of 7
Message 3 of 7

Hi, Stephane, thank you for your reply.
I may be missing something, but the only part covered in this topic is the General tab as well (wind directions, velocity, elements selected, and so on).
My issue is not knowing how to input custom velocity factors according to height (wind profile).
Again, I appreciate the help
Message 4 of 7

hi @renatogheno 

you should consult this topic

https://forums.autodesk.com/t5/robot-structural-analysis-forum/wind-simulation-wind-velocity-profile...

 

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

Message 5 of 7
renatogheno
in reply to: renatogheno

Perfect, thank you 🙏. I how can I use this created CSV in a wind simulation via API?

Message 6 of 7

The API was originally developed for internal use.

(Load a wind Profile)

Message 7 of 7
renatogheno
in reply to: renatogheno

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.

Post to forums  

Technology Administrators


Autodesk Design & Make Report