VBA - Creating Lofts with Lots of Rails
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all,
I've got an algorithm working that generates sketch profiles so that will ultimately be used in a loft. Each loft section is a closed spline made up of the same number of points, but the number of points can be varied at the start of the algorithm to increase of decrease the resolution. I was hoping to simply supply the loft profiles and have Inventor loft correctly between them, but it looks like that's not going to happen.
So now I'm left with rails. I would like to supply a rail between every corresponding point throughout my profiles. The documentation is frustratingly sparse on this topic, but what I've gathered from some other forum posts is that every rail needs to be created in its own sketch. In my algorithm I can generate all of the rails easily, but for profiles that may contain hundreds of points it will quickly get out of hand to create so many sketches for individual rails just to apply them to the loft.
Is this the only way? From the UI loft dialog multiple rails can be set from the same 3D sketch, so I would presume there is some way of doing it with VBA. I've considered only applying rails to some fraction of the points, but due to the rate at which the profiles may change between sections it would be far preferable to be able to constrain every point with its own rail.
Below is an example of the kind of profiles I'm looking to loft together. Thanks!