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... | |
def CreateField | ( | self, | |
shape, | |||
name, | |||
type, | |||
dimension, | |||
componentNames | |||
) |
Creates a field.
shape | the shape the field lies on |
name | the field name |
type | type of field data: 0 - bool, 1 - int, 2 - double, 3 - string |
dimension | dimension of the shape the field lies on 0 - VERTEX, 1 - EDGE, 2 - FACE, 3 - SOLID, -1 - whole shape |
componentNames | names of components |
References geomBuilder.FieldOp, and geomBuilder.RaiseIfFailed().
def RemoveField | ( | self, | |
field | |||
) |
Removes a field from the GEOM component.
field | the 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().