Assignment

Base Class: None

Derived Classes: None

Description

An assignment is a relationship between a database member (usually a Point, Line, Surface or Volume), and an Attribute. The Assignment object also acts as a container for all the options and settings that can control and modify the assignment. During the assignment process, an Assignment object is used to define settings such as orientation and factor. Once assigned, the details can be queried using getAssignments or getAssignments

Example

To set a load factor

 call assignment.setAllDefaults()
 call assignment.setLoadFactor(2.0)
 call attr.assignTo(selection,  assignment)
To query a load factor
 asgnArray = obj.getAssignments("load")
 call msgbox(asgnArray(0).getLoadFactor())
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"))

Available Functions:
 addDrapeSurface(pSurface)
 addHOF(HOF)
 addInfluenceClarifyObj(obj)
 addLoadsetSpecified(ID)
 addOrientationPoint(Point)
 addToMemorySelection(typeName)
 addToSelection(typeName)
 getAnalysis()
 getAssignmentLoadset()
 getAttribute()
 getAttributeType()
 getBackgroundGrid()
 getBetaAngle()
 getCompositeOrientation()
 getDatabaseObject()
 getDeassignMatch()
 getDeassignMode()
 getDiscreteLoadProjection(element, nodes)
 getInterfaceSlave()
 getLoadFactor()
 getLoadMoving()
 getLoadTransform()
 getLocalCoord()
 getMasterSlaveType()
 getMeshMasterToSlave()
 getName()
 getNameWithDescription()
 getOrientation()
 getOrientationPoint()
 getPatchTransform()
 getRefPath()
 getSearchArea()
 getSearchAssignType()
 isConsiderAllAssigns()
 isConsiderOverrides()
 isPending()
 meshMasterToSlave()
 meshSlaveToMaster()
 removeAllHOFs()
 removeFromMemorySelection(typeName)
 removeFromSelection(typeName)
 setAllDefaults()
 setAnalysis(analysisName)
 setBackgroundGrid(Grid)
 setBackgroundGridOff()
 setBetaAngle(Beta)
 setCompositeOrientation(orientation)
 setConsiderAllAssigns(isConsider)
 setConsiderOverrides(isConsider)
 setDeassignMatch(match)
 setDeassignMode(mode)
 setDoValidateClarifyObj(doValidate)
 setIgnoreAll()
 setIgnoreLoadFactor()
 setIgnoreProjDirMoments(doIgnore)
 setInfNodeCoords(x, y, z)
 setInfRezType(location)
 setInterfaceSlave(Feat)
 setInterfaceSlaveOff()
 setLoadFactor(loadFactor)
 setLoadMoving(loadMoving)
 setLoadset(ID)
 setLoadsetAll(analysisName)
 setLoadsetFromStart(ID)
 setLoadsetOff()
 setLoadsetRange(IDstart, IDend)
 setLoadsetSpecified(ID)
 setLoadsetToEnd(ID)
 setLoadTransform(TransAttr)
 setLoadTransformOff()
 setLocalCoord(LocalCoordAttr)
 setLocalCoordOff()
 setMasterSlaveType(type)
 setMemorySelectionAll()
 setMemorySelectionGeometry()
 setMemorySelectionMesh()
 setMemorySelectionNoGeometry()
 setMemorySelectionNoMesh()
 setMemorySelectionNone()
 setOrientation(orientation)
 setOrientationPoint(Point)
 setOrientationPointOff()
 setOrientJointToLocalAxes(dirStr)
 setPatchTransform(TransAttr)
 setPatchTransformOff()
 setRefPath(pRefPath)
 setSearchArea(SearchAreaAttr)
 setSearchAreaOff()
 setSearchAssignType(type)
 setSelectionAll()
 setSelectionGeometry()
 setSelectionMesh()
 setSelectionNoGeometry()
 setSelectionNoMesh()
 setSelectionNone()
 setTwistAngle(twist)

Back to Overview