Request: modifiy DelConLInesOnly.rb DelConPointsOnly.rb :?:
-
TIG:
I was wondering if there could be varient to these two scripts, each with 4 options:
Perhaps in a menu similar to SU's Intersect.
1a- if nothing selected, all would be deleted, excluding any within groups or compontents after a prompt of "Are you sure".
1b- if nothing selected, all in the would be deleted, including any groups or compontents and their subgroups or subcomponents (absolutely every occurence in the model) after a prompt of "Are you sure".
2a- if somehthing is selected and then all within the immediate group or component level (not within subgroups or subcomponents)
2b- if somehthing is selected and then all within selection AND within its subgroups or subcomponents would be deleted.Regards, John
-
Dear John,
I would find this very useful too. I habitually use cpoints for assembling mechanical parts, and so it would be nice to be selective about cleaning up. Ideally, a new alignment point/feature that had its own deletion command would be nice.
Kind regards,
Bob -
I'll see what I can do. If anyone beats me to it I won't feel bad !
[EDIT]Here it is...http://www.sketchucation.com/forums/scf/viewtopic.php?p=100581#p100581.
-
Thanks.
I imagine the code for determining the what to do, depending upon what or what isn't selected, could be useful for other scripts as well.
-
Dear TIG,
Many thanks for making the modifications. I use cpoints a lot for aligning and assembling components, and I occasionally forget myself and delete both construction lines and points. The new options are just the ticket.
I have attached a simple collar clamp to show you how I use cpoints to align parts
Kind regards,
Bob
-
Thank you, TIG!
Regards, John
-
TIG,
Can you try running this test file, please.
Using the selection method, the script does "dig" down to sublevel; however, it has to be run more than once in order to get everything. Can there by sometype of loop that searches, deletes, and tests to see if their are more occurances and repeats itself until the test is null?
-
@jclements said:
TIG,
Can you try running this test file, please.
Using the selection method, the script does "dig" down to sublevel; however, it has to be run more than once in order to get everything. Can there by sometype of loop that searches, deletes, and tests to see if their are more occurances and repeats itself until the test is null?
This should fix the problem...
http://www.sketchucation.com/forums/scf/viewtopic.php?p=100817#p100817.
-
Thanks.
Advertisement