assignTo(obj, [assignInfo])
assignTo(array, [assignInfo])
assignTo(set, [assignInfo])
assignTo(type, name, [assignInfo])
assignTo(obj, obj, [assignInfo])
assignTo(array, array, [assignInfo])
assignTo(set, set, [assignInfo])
assignTo(type, name, type, name, [assignInfo])
Assigns this attribute to the object(s) given Optionally also pass in assignment data giving extra details about the assignment, such as loadcase, local coordinates, load factor etc. There are two ways to call this function. For most attributes only a single object, ObjectSet, or array is required, and the attribute will be assigned to that. However, for interface mesh, it is necessary to indicate both masters and slaves at the same time. Thus, two objects, ObjectSet, or arrays must be given. In the case of ObjectSet and arrays, the same number of objects must be given in each, and the master slave pairing will be assumed from the order. E.g. item 1 in the first array will be the master of item 1 in the second array, and so on. The assignment info, if given, must always be last.
obj | DatabaseMember | The target as an object |
array | array of DatabaseMember | An array of objects to form target |
set | ObjectSet | A set of objects to form target |
type | string or long | Type of object to form target, e.g. "volume" |
name | string or long | Name(s) of object to form target, e.g. "1T5" |
assignInfo | Assignment | Information regarding the assignment |
Return value | IFObjectSet | the set of objects affected by the command (i.e. successful assignments) |
See also deassignFrom
Back to Attribute
Back to Overview