DG Kernel Documentation


Skip Navigation Links. Skip Navigation LinksHome Page > API Reference > Model > Entities > IEntity_DG

IEntity_DG Interface

GetName
SetName
GetGeometryType
SetGeometryType
GetGeometry
AttachGeometry
GetLocation
GetAppearance
SetColor
IsVisible
SetVisible
IsTransient
SetTransient
GetChildCount
GetChildAt
GetEntity
GetLastChild
AddChild
Add
AddNewChild
AddNewChild2
AddChildBRepShape
AddNewChildBRepShape
AddNewChildBRepSolid
GetChildArray
GetEntities
GetEntityPath
RemoveEntity
RemoveEntities
RemoveAll
Find
BuildChildToParentMap
GetBoundingBox
SaveAs
Copy
Clone

void SetGeometryType(string type, IGeometry_DG geometry)

Valid options for type parameter:

BRep
Mesh
3DS
SOR
SegmentStrip
KCBRep
Pipe
PointArray
Line
Overlay
Label
BRepText
ImageOriented
Measurement
If the requested type is different from the current type, the method replaces geometry of the entity with new one. Where possible its internal shape is copied (transformed) to the new type

string GetName()


void SetName(string name)


string GetGeometryType()


void SetGeometryType(string type, IGeometry_DG geometry)


IGeometry_DG GetGeometry()


void AttachGeometry(IGeometry_DG geometry)


IFrame_DG GetLocation()


IAppearance_DG GetAppearance()


void SetColor(float red, float green, float blue)


bool IsVisible()


void SetVisible(bool visible)


bool IsTransient()

Returns the flag, which determines whether the entity is excluded from saving to file system operations


void SetTransient(bool transient)

Determines whether the entity should be excluded from saving to file system operations


int GetChildCount()


IEntity_DG GetChildAt(int index)


IEntity_DG GetEntity(string path)


IEntity_DG GetLastChild()


void AddChild(IEntity_DG entity)


void Add(IEntityArray_DG entities, int insertAtOrNegative)


IEntity_DG AddNewChild()


IEntity_DG AddNewChild2(string type)


IEntity_DG AddChildBRepShape(IBRepShape_DG shape)


IEntity_DG AddNewChildBRepShape(ShapeType_DG type)


IEntity_DG AddNewChildBRepSolid()


IEntityArray_DG GetChildArray(bool includeDescendents)


IEntityArray_DG GetEntities(string path, bool includeDescendents)


string GetEntityPath(IEntity_DG entity)


bool RemoveEntity(IEntity_DG entity)


void RemoveEntities(IEntityArray_DG entities)


void RemoveAll(bool includingDescendantsFromParents)


int Find(IEntity_DG entity)


IMapUnkn_DG BuildChildToParentMap()


Box_DG GetBoundingBox(bool includeDescendants)


void SaveAs(string filePath, bool includeChildren)


void Copy(IEntity_DG entity)


IEntity_DG Clone()