Attribute

Base Class: None

Derived Classes: MeshAttr LocalCoord TransformationAttr VariationAttr Dataset PSD Geometric Activate Deactivate Damping Equivalence CrackTip ElementTypeAttr SurfaceRadiation SearchArea Age Slide ThermalSurfaceGap ThermalSurface Support Loading Constraint RetainedFreedom ThermalProperties Material Composite InfluenceV141 Influence TendonProperties TendonProfile CombinedLineAttr ScriptedAttribute FailureComposite DesignFactor BeamStressRecovery

Description

Base class for all attributes.

Example

To assign material "Steel" to volume 1


 call selection.add("Volume", "1")
 call assignment.setAllDefaults()
 set attr = database.getAttribute("Material", "Steel")
 set assigned = attr.assignTo(selection, assignment)
To get mesh attribute data assigned to a surface

 set surface = database.getObject("surface", 1)
 asgnArray = surface.getAssignments("mesh")
 set attr = asgnArray(0).getAttribute()
 names=attr.getValueNames()
 for i = 0 to ubound(names)
 textwindow.writeline(names(i) & "=" & attr.getValue(names(i)))
 next

Available Functions:
 assignTo("All", [assignInfo])
 assignTo(array, [assignInfo])
 assignTo(array, array, [assignInfo])
 assignTo(obj, [assignInfo])
 assignTo(obj, obj, [assignInfo])
 assignTo(set, [assignInfo])
 assignTo(set, set, [assignInfo])
 assignTo(type, name, [assignInfo])
 assignTo(type, name, type, name, [assignInfo])
 assignToAll(pData)
 assignToAll(pData)
 assignToAll(pData)
 assignToAll(pData)
 assignToAll(pData)
 assignToAll(pData)
 assignToAll(pData)
 assignToAll(pData)
 assignToAll(pData)
 assignToAllOff()
 countRows(varName)
 createValue(name, [energy], [force], [length], [mass], [time], [temperature])
 deassignFrom("All", [assignInfo])
 deassignFrom(array, [assignInfo])
 deassignFrom(obj, [assignInfo])
 deassignFrom(set, [assignInfo])
 deassignFrom(type, name, [assignInfo])
 getAssignments()
 getAttributeType()
 getDescription()
 getID()
 getName()
 getNameAndDescription()
 getPen()
 getSubType()
 getValue(varName, [row], [units])
 getValueDescription(varName)
 getValueNames()
 getValueType(varName)
 getValueUnits(varName, [units])
 insertContextMenuItem(beforeItem, itemText, command, [helpString], [sessionFile])
 isDefiningAssignedAttributes()
 isDefiningAttributes()
 removeContextMenuItem(itemText, [sessionFile])
 setDescription([description])
 setDoubleClickDialog([filename])
 setDoubleClickDialogModuleName(moduleName)
 setEditDialog(filename)
 setEditDialogModuleName(moduleName)
 setName(name)
 setPen(pen)
 setTreeLocation(name)
 setValue(varName, value, [row], [units])
 setValueDescription(name, desc, [persist])
 update()

Back to Overview