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 DirectMethodInfluence TendonProperties TendonProfile CombinedLineAttr ScriptedAttribute FailureComposite DesignFactor BeamStressRecovery SpringMassProperties IMDPlusVehicleConfig

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:
 applyUnits(pUnits, convertToGiven)
 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(data)
 assignToAllOff(data)
 countRows(varName)
 createValue(name, [energy], [force], [length], [mass], [time], [temperature], [perUnitLength])
 deassignFrom("All", [assignInfo])
 deassignFrom(array, [assignInfo])
 deassignFrom(obj, [assignInfo])
 deassignFrom(set, [assignInfo])
 deassignFrom(type, name, [assignInfo])
 existsValue(varName)
 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])
 removeExternalDefinition()
 setDefinitionMenuID(menuID, [clientData], [isRelativeID])
 setDescription([description])
 setDoubleClickDialog([filename])
 setEditDialog(filename)
 setEdittingMenuID(menuID, [clientData], [isRelativeID])
 setName(name)
 setPen(pen)
 setTreeLocation(name, [initialExpanded])
 setValue(varName, value, [row], [units])
 setValueDescription(name, desc, [persist])
 update()

Back to Overview