Creates and returns an array of Assignment objects, each of which represents one attribute assignment made to this object. The array can be restricted by using the optional argument to specify a given attribute type, e.g. loading. If not given, all assignments are returned Note that the Assignment objects returned are copies of the ones in actual use - modifying them will have no effect. If you wish to modify assignment details it is necessary to re-assign the attribute to the object
attributeType | optional VARIANT | "Loading", "Support", "Material", etc |
Return value | array of Assignment objects | The returned array |
Example
To query the size of element used to mesh a surface
set surface = database.getObject("surface", 1)
asgnArray = surface.getAssignments("mesh")
set attr = asgnArray(0).getAttribute()
call msgbox(attr.getValue("size"))
Back to Geometry
Back to Overview