- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am writing a code that grabs points from an excel to create two closed 3d sketches defined by splines and then loft between them. I also want to be able to create rails between all the corresponding points.
My first question is how to change the fit method of a spline with api VBA? Creating a 3D spline using the SketchSplines3D command defaults to minimum energy, but I'd rather use standard or autocad curve fitting.
My second question is about the rails. I want the program to be able to use a different number of points each time if required. I can create all my sketches for the top and bottom surfaces and can create the sketches for the rails all using loops but I cannot add the rails to the loft definition using LoftDefinition.LoftRails.Add Profile within the loop and if I put it outside the loop that creates the rail sketch lines only the last line is added to the loft feature as a rail. How can I create a different number of rails each time the program is run and have them all added to the loft feature?
Thanks for any help.
Solved! Go to Solution.