Creating and Referencing Sweep features where pre-existing sweep features exist
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi All,
I'm having trouble running a script multiple times in the same design.
I am writing a script to add a sweep on a selected profile loop on an existing sketch.
The intent is to run the script multiple times on the same sketch, selecting different profiles each time to build up a body for machining
The first time the script runs it creates the sweep features around the profile loop correctly.
The second time the script is run on a different profile loop it fails.
I reference the Sweep Features Collection in the script to apply trims etc.
What is best practice?
1) Do I need to save the number of items already in the collection and apply an offset when referencing them for trims etc or is there a better method of returning the sweep features created when the script runs that considers other sweeps already in the design before the script is run.
2) apply attributes or save references to the features in the script.
Regards
Paul.