Version: 8.3.0
Home
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages

Data Structures

class  geomField
 Field on Geometry. More...
 

Functions

def CreateField
 Creates a field. More...
 
def RemoveField
 Removes a field from the GEOM component. More...
 
def CountFields
 Returns number of fields on a shape. More...
 
def GetFields
 Returns all fields on a shape. More...
 
def GetField
 Returns a field on a shape by its name. More...
 

Detailed Description

Function Documentation

def CreateField (   self,
  shape,
  name,
  type,
  dimension,
  componentNames 
)

Creates a field.

Parameters
shapethe shape the field lies on
namethe field name
typetype of field data: 0 - bool, 1 - int, 2 - double, 3 - string
dimensiondimension of the shape the field lies on 0 - VERTEX, 1 - EDGE, 2 - FACE, 3 - SOLID, -1 - whole shape
componentNamesnames of components
Returns
a created field

References geomBuilder.FieldOp, and geomBuilder.RaiseIfFailed().

def RemoveField (   self,
  field 
)

Removes a field from the GEOM component.

Parameters
fieldthe field to remove

References geomBuilder.ManageTransactions().

def CountFields (   self,
  shape 
)

Returns number of fields on a shape.

References geomBuilder.FieldOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def GetFields (   self,
  shape 
)

Returns all fields on a shape.

References geomBuilder.FieldOp, geomBuilder.ManageTransactions(), and geomBuilder.RaiseIfFailed().

def GetField (   self,
  shape,
  name 
)

Returns a field on a shape by its name.

References geomBuilder.FieldOp, and geomBuilder.RaiseIfFailed().