I have only one real issue with the macro. It arrays every sketch in my part
Is there a way of only allowing sketch entities to be "arrayed" if that sketch entity has an associated array attached to it?
I the sample there are holes spaced equally on a "pitch circle diameter" the holes are arrayed.
The output I am getting also arrays the first sketch, that is the circle that makes up the outer plate.
This sketch (sketch1) is also arrayed, even though the sketch does not have an associated array.
Is there a way to filter out sketches that do not have an associated array?
Many thanks in advance!!!!
If you need information on specific feature pattern you should use its name or pick it via UI (you do not need to use any sketches at all).
For example your part TestPlate.ipt includes the hole feature circular pattern. This pattern is accessible by its name as it was shown in Sub Test_CircPattern() posted on Nov-08-2012.
Name = “Circular Pattern1”
Your function Function ArrayGeometry(Doc As PartDocument, sketch As PlanarSketch) should have the feature pattern name in the second argument instead of the reference to the planar sketch.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.