add(obj, [filterType], [filterNames])
add(array, [filterType], [filterNames])
add(attrType, [names], [filterType], [filterNames])
add(attrType, names, masterSlave, [filterType], [filterNames])
add(eleType, [filterType], [filterNames])
add(stressModel, [filterType], [filterNames])
Adds the specified objects to this set. Note that add obeys the value of the downward associativity such that it will also add the LOFs of any items added if the downward associativity flag is set true. When called with an ObjectSet or an array, this function acts on all the objects contained within it. When called with attributes, it acts on those objects that have an assignment to the attributes given. In each case, an additional filter can be performed by specifying the type (and optionally name(s)) of objects to be acted on.
objType | string | Name of an object type, such as "point", or "line" "Point", "Line", "Element", etc |
names | string | Name(s)/ID(s) of objects or attributes. Examples are ""bob"", "Structural Support 2", "3", "1T5" |
obj | object | An object to act on. Typically another ObjectSet object, or any other object derived from DatabaseMember |
array | array | An array of objects derived from DatabaseMember |
filterType | string | Restricts operation of this function to only objects of the type given |
filterNames | string | Restricts operation of this function to only those objects whose names/IDs are given |
attrType | string | "Loading", "Support", "Material", etc |
masterSlave | boolean | "Master"/true or "Slave"/false |
eleType | string | Name of a LUSAS element, e.g. "QTS4" |
stressModel | string | Name of a LUSAS stress model e.g. "Thick Shell" |
Return value | Pointer to this object | Allows multiple function calls to be chained together |
Example
To select elements 1, 4, 7, 10, 12 and 15
To make visible any points with IDs between 1 and 10 that are in set 'bob'
call selection.add "Element", "1T10I3,12,15"
To make visible all features with an assignment to a support named "fixed"
call visible.add bob, "point", "1T10"
To make visible any points with IDs between 1 and 10 with an assignment to a support named "fixed"
call visible.add "support", "fixed"
To select all surfaces that have QTS4 elements assigned
call visible.add "support", "fixed", "point", "1T10"
To make all QTS4 elements visible
call selection.add "QTS4", "surface", "all"
To make all QTS4 elements, and also their parent surfaces, visible
call visible.add "QTS4", "element", "all"
call visible.add "QTS4", "all"
Back to ObjectSet
Back to Overview