ObjectSet.Delete


Delete(objType, [names])

Delete(obj, [filterType], [filterNames])

Delete(array, [filterType], [filterNames])

Delete(attrType, [names], [filterType], [filterNames])

Delete(attrType, names, masterSlave, [filterType], [filterNames])

Delete(eleType, [filterType], [filterNames])

Delete(stressModel, [filterType], [filterNames])

Deletes the specified object(s) permanently from this set and from the database. The specified objects will no longer be present in the model, or this set. Modeller will automatically remove such objects from all its intrinsic sets such as groups and the selection. However as described in ObjectSet, the deleted objects may still be present in other temporary sets that you have created - it is your responsibility to check this, preferably before executing the Delete instruction. Note that Delete obeys the value of the downward associativity such that it will also delete the unshared LOFs of any items deleted 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

Note

It is not possible to delete lower order features currently being used to define higher order features, even if the higher order features are not present in this set

Example

 call visible.Delete("Point", 4)
 call selection.Delete("Surface", "All")
 
For further syntax examples, see add

Back to ObjectSet

Back to Overview