Parametric stress analysis with VBA?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I would like to assess the equivalent strain at two specific points on a single component while varying the magnitude of applied force and the direction in which it is applied. From what I can tell, parametric analyses in Inventor can only drive dimensions, not loading parameters, so I'm looking to VBA as a solution. Keep in mind, I'm a mechanical engineer, and most of my programming experience is in MATLAB, not VB.
Here's what I'd like to do:
1) Change an angle dimension in an existing sketch (this is the line on which the force will be applied)
2) Change the angle of an existing work plane (this is the plane on which the line from step 1 is drawn)
3) Change the magnitude of the applied force (already attached to the line from step 1)
4) Run the simulation
5) Switch the displayed results to "equivalent strain"
6) Find and store the values from two existing probes
7) Wash, rinse, repeat.
I have absolutely no idea how to go about this, I'm not even sure if you can run stress analyses from VBA. Any help is appreciated!