DG Kernel (ActiveX) Documentation


Skip Navigation Links.
Start page
Quick Start
Search Page
Installation
What is new
Upgrading Native Apps
Licensing
Collapse ModelsModels
Collapse DG Kernel ControlsDG Kernel Controls
Collapse API ReferenceAPI Reference
Interface List
Vector Space
Collapse General GeometryGeneral Geometry
Collapse ModelModel
Collapse ViewView
Collapse General ComputingGeneral Computing
Collapse ViewsViews
Collapse Samples and TutorialsSamples and Tutorials
Collapse GraphicsGraphics
Collapse Math ObjectsMath Objects
Collapse DeprecatedDeprecated
Redistribution
Model Viewer
Open Source
Support
Skip Navigation Links Go to DGKC docs Search Documentation


IEngrave_DG Interface

AttachWorkpiece
GetWorkpiece
AddTextLine
GetText
SetText
GetHeight
SetHeight
GetThickness
SetThickness
GetSpacing
SetSpacing
GetLineSpacingRatio
SetLineSpacingRatio
GetFontName
SetFontName
GetDepth
SetDepth
GetOrientationRay
SetOrientationRay
Engrave
Reset

See also Engrave Sample.


void AttachWorkpiece(IEntity_DG entity)
IEntity_DG GetWorkpiece()

The surface to be engraved upon. Querying IEngrave_DG from an entity attaches the entity as the workpiece to the result of the query.


void AddTextLine(string line)


string GetText()
void SetText(string text)

The text to be engraved. It can have line break characters.


double GetHeight()
void SetHeight(double text)

Geometric height of the text in modelling units.


double GetThickness()
void SetThickness(double text)

Geometric length of extrusion in modelling units performed on characters before the operation.


double GetSpacing()
void SetSpacing(double text)

Geometric space between characters in modelling units.


double GetLineSpacingRatio()
void SetLineSpacingRatio(double text)

Geometric space between lines will be computed as LineSpacingRatio*Height.


string GetFontName()
void SetFontName(string name)

"Arial" is the default in this version.


double GetDepth() void SetDepth(double text)

Defines how deep characters will cut into the surface in modelling units.


Line_DG GetOrientationRay() void SetOrientationRay(Line_DG ray)

A ray, assumed to be close to the surface. It projection to the surface will define starting point and direction of the text.


bool Engrave()

Performs engraving.


void Reset()

Removes any changes in the algorithm object and retuns the object to its default state. Any engraving performed will remain unchanged.