ObjectSet.add


add(objType, [names])

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.

objTypestringName of an object type, such as "point", or "line" "Point", "Line", "Element", etc
namesstringName(s)/ID(s) of objects or attributes. Examples are ""bob"", "Structural Support 2", "3", "1T5"
objobjectAn object to act on. Typically another ObjectSet object, or any other object derived from DatabaseMember
arrayarrayAn array of objects derived from DatabaseMember
filterTypestringRestricts operation of this function to only objects of the type given
filterNamesstringRestricts operation of this function to only those objects whose names/IDs are given
attrTypestring "Loading", "Support", "Material", etc
masterSlaveboolean"Master"/true or "Slave"/false
eleTypestringName of a LUSAS element, e.g. "QTS4"
stressModelstringName of a LUSAS stress model e.g. "Thick Shell"
Return valuePointer to this objectAllows multiple function calls to be chained together

Example

To select elements 1, 4, 7, 10, 12 and 15

 call selection.add "Element", "1T10I3,12,15"
 
To make visible any points with IDs between 1 and 10 that are in set 'bob'
 call visible.add bob, "point", "1T10"
 
To make visible all features with an assignment to a support named "fixed"
 call visible.add "support", "fixed"
 
To make visible any points with IDs between 1 and 10 with an assignment to a support named "fixed"
 call visible.add "support", "fixed", "point", "1T10"
 
To select all surfaces that have QTS4 elements assigned
 call selection.add "QTS4", "surface", "all"
 
To make all QTS4 elements visible
 call visible.add "QTS4", "element", "all"
 
To make all QTS4 elements, and also their parent surfaces, visible
 call visible.add "QTS4", "all"
 

Back to ObjectSet

Back to Overview