The collection of geometrical entities that you want to work with.
Details
The ShapeRange is a collection of Shape objects that
contains the Shape objects you want to work with. You construct a ShapeRange collections
at any time you need to use range construction properties provided by the Shapes collection or by another ShapeRange.
How to construct ShapeRange collection
When you use an AddEdge method for creating a new edge in the
model, you already get the ShapeRange collection containinig all the edges you have
created, even if there is only one edge. That is because when the newly edge created intersects
other edges or vertices, it will be split into parts by each intersection point.
Another way to get a ShapeRange is by using one of the properties listed in the table
below.
Applicable to the ShapeRange collection consisting only of edges (usually
constructed by the AddEdge method).
Returns blocks that are adjacent to the edge from the left (right) side.
You can assign an integer value to the each shape by the UserData property.
The Flagged property returns the collection of shapes with the given flag values by
the mask.
Using the ShapeRange collection
With a ShapeRange collection you can do almost the same thing as with selection on the model
editor window: delete all the shapes (Delete method), build
and remove the finite element mesh (BuildMesh and RemoveMesh methods), set properties like mesh Spacing and Label. You can
also move the shapes to another location (Move method), or
create a copy of it in the given position (Duplicate
method). The Select method highlights the shapes in the model
editor window.
Being a regular collection, the ShapeRange provides common standard methods for
navigation and iteration through its members.