Hi guys, thanks for your replies. Sorry I wasn't specific enough - sometimes things are very clear in your own mind but don't make much sense when you say them!
I have a square plate, 100x100x5 and am trying to divide one surface into an arbitrary number "n" of equally spaced strips, e.g. at x=100/n, 2*100/n, etc. It's important that the model updates automatically after changing the value of n, in other words no manual editing.
This is a very basic beginning, but the eventual goal is to establish a method to do automatic optimization using UG and our in-house FEA package. (Yes, I'm in over my head.)
I tried drawing lines in a sketch to define the subdivision lines, but couldn't find a way to make the number of lines change when n changes. I could sketch one line and pattern the sketch, but sketches aren't valid for patterning.
Datum planes have a similar problem - not valid for patterning. It isn't a big deal to create five parallel planes one at a time, but a making a hundred planes gets a bit tedious.
I've tried creating part of the plate, subdividing the face, then patterning the solid, but the subdivision is not copied to the instances of the pattern. I tried grouping the subdivide operation with the original solid and patterning the group, but that didn't work either. If that did work, the next step would be to Unite n solids into one, also hard to make update automatically.
I've found a way to make this work in some cases:
- offset by 100/n from one end face to create a sheet
- pick a number "m" to be the highest possible value of n
- array the sheets "m" times, 100/n apart
- intersect the sheets with a datum plane on the top face of the plate
- subdivide face using the lines
This updates correctly if you start with n equal to m and only ever change it to a smaller number. When n is less than m, the array of sheets extends past the opposite end of the plate. The intersection doesn't fail because the number of sheets doesn't change and they're being intersected with an infinite plane. Subdivide face doesn't seem to care if some of its division curves fall off the face.
I think this could probably be made to work the way I really want it to if there was a way to select entities by feature. e.g. if I could specify an intersection between the top face of the plate and every sheet created by LINEAR_PATTERN(21) rather than picking graphically.