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)
 addOrientationPoint(Point)
 addToMemorySelection(typeName)
 addToSelection(typeName)
 getAssignmentLoadset()
 getAttribute()
 getAttributeType()
 getBackgroundGrid()
 getBetaAngle()
 getCompositeOrientation()
 getDatabaseObject()
 getDeassignMatch()
 getDeassignMode()
 getInterfaceSlave()
 getLoadFactor()
 getLoadMoving()
 getLoadTransform()
 getLocalCoord()
 getMasterSlaveType()
 getMeshMasterToSlave()
 getName()
 getOrientation()
 getOrientationPoint()
 getPatchTransform()
 getSearchArea()
 getSearchAssignType()
 isPending()
 meshMasterToSlave()
 meshSlaveToMaster()
 removeAllHOFs()
 removeFromMemorySelection(typeName)
 removeFromSelection(typeName)
 setAllDefaults()
 setBackgroundGrid(Grid)
 setBackgroundGridOff()
 setBetaAngle(Beta)
 setCompositeOrientation(orientation)
 setDeassignMatch(match)
 setDeassignMode(mode)
 setIgnoreAll()
 setIgnoreLoadFactor()
 setInfNodeCoords(x, y, z)
 setInterfaceSlave(Feat)
 setInterfaceSlaveOff()
 setLoadFactor(loadFactor)
 setLoadMoving(loadMoving)
 setLoadset(ID)
 setLoadsetOff()
 setLoadTransform(TransAttr)
 setLoadTransformOff()
 setLocalCoord(LocalCoordAttr)
 setLocalCoordOff()
 setMasterSlaveType(type)
 setMemorySelectionAll()
 setMemorySelectionGeometry()
 setMemorySelectionMesh()
 setMemorySelectionNoGeometry()
 setMemorySelectionNoMesh()
 setMemorySelectionNone()
 setOrientation(orientation)
 setOrientationPoint(Point)
 setOrientationPointOff()
 setPatchTransform(TransAttr)
 setPatchTransformOff()
 setSearchArea(SearchAreaAttr)
 setSearchAreaOff()
 setSearchAssignType(type)
 setSelectionAll()
 setSelectionGeometry()
 setSelectionMesh()
 setSelectionNoGeometry()
 setSelectionNoMesh()
 setSelectionNone()

Back to Overview