Interface ISTGeomReceiver
Contains methods for importing geometry to CAM
Assembly: STGeomApiTypes.dll
Syntax
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
[Guid("29F37F13-3E46-490A-BD58-24A0E4D7063E")]
public interface ISTGeomReceiver
Methods
AddComboSolidEdge(string, string, string, string, string, string)
Add a edge to the ComboSolid (solid with topology)
Declaration
bool AddComboSolidEdge(string EdgeID, string CurveID, string StartVertexID, string EndVertexID, string LeftFaceID, string RightFaceID)
Parameters
Type |
Name |
Description |
string |
EdgeID |
|
string |
CurveID |
The internal number of the created curve
|
string |
StartVertexID |
The internal number of the start vertex (VertexID in AddComboSolidVertex)
|
string |
EndVertexID |
The internal??w
|
string |
LeftFaceID |
|
string |
RightFaceID |
|
Returns
AddComboSolidFace(string, string)
Add a face to the ComboSolid (solid with topology)
Declaration
bool AddComboSolidFace(string FaceID, string FaceName)
Parameters
Type |
Name |
Description |
string |
FaceID |
The internal number of the created face (ID in StartFace)
|
string |
FaceName |
The name of the entity in the geometric model tree @return Success status
|
Returns
AddComboSolidVertex(TST3DPoint, string)
Declaration
bool AddComboSolidVertex(TST3DPoint P, string VertexID)
Parameters
Type |
Name |
Description |
TST3DPoint |
P |
|
string |
VertexID |
|
Returns
AddEntity(string, string)
Add an entity to the geometric model tree
Declaration
bool AddEntity(string ID, string EntityName)
Parameters
Type |
Name |
Description |
string |
ID |
The internal number by which the entity will be found
|
string |
EntityName |
The name of the entity in the geometric model tree @return Success status
|
Returns
AddFaceEdge2d(string, bool, string, string)
Declaration
bool AddFaceEdge2d(string CurveID, bool Orientation, string svID, string tvID)
Parameters
Type |
Name |
Description |
string |
CurveID |
|
bool |
Orientation |
|
string |
svID |
|
string |
tvID |
|
Returns
AddFaceEdge3d(string, bool, string, string)
Declaration
bool AddFaceEdge3d(string CurveID, bool Orientation, string svID, string tvID)
Parameters
Type |
Name |
Description |
string |
CurveID |
|
bool |
Orientation |
|
string |
svID |
|
string |
tvID |
|
Returns
AddIntersectionCurvePoint(TST3DPoint)
Declaration
bool AddIntersectionCurvePoint(TST3DPoint Position)
Parameters
Returns
AddMeshTriangle(int, int, int)
Declaration
bool AddMeshTriangle(int v1, int v2, int v3)
Parameters
Type |
Name |
Description |
int |
v1 |
|
int |
v2 |
|
int |
v3 |
|
Returns
AddMeshVertex(int, TST3DPoint)
Declaration
bool AddMeshVertex(int Index, TST3DPoint P)
Parameters
Returns
AddPmiText(string)
Declaration
bool AddPmiText(string Text)
Parameters
Type |
Name |
Description |
string |
Text |
|
Returns
AddViewEntity(string, string)
Declaration
bool AddViewEntity(string ViewID, string EntityPath)
Parameters
Type |
Name |
Description |
string |
ViewID |
|
string |
EntityPath |
|
Returns
ArcTo2d(TST2DPoint, TST2DPoint, double)
Declaration
bool ArcTo2d(TST2DPoint pc, TST2DPoint P, double rad)
Parameters
Returns
BeginPmiEntity(string, TST3DPoint, TST3DPoint, TST3DPoint, TSTPmiType)
Declaration
bool BeginPmiEntity(string ID, TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX, TSTPmiType PmiType)
Parameters
Returns
BeginPmiText(TST3DPoint, double, double, double, int, TSTPmiTextType)
Declaration
bool BeginPmiText(TST3DPoint vT, double Angle, double Height, double Length, int NumberLines, TSTPmiTextType TextType)
Parameters
Returns
BezierTo2d(TST2DPoint, TST2DPoint, TST2DPoint)
Declaration
bool BezierTo2d(TST2DPoint p1, TST2DPoint p2, TST2DPoint p3)
Parameters
Returns
CloseBlock()
Finish forming a block (assembly element) @return Success status
Declaration
Returns
CloseComboModel()
Finish forming a model with topology (ComboMode) @return Success status
Declaration
Returns
CloseComboSolid()
Finish forming a solid with topology (ComboSolid) @return Success status
Declaration
Returns
CloseCurve2d(bool)
Declaration
bool CloseCurve2d(bool Close)
Parameters
Type |
Name |
Description |
bool |
Close |
|
Returns
CloseCurve3d(bool)
Declaration
bool CloseCurve3d(bool IsClosed)
Parameters
Type |
Name |
Description |
bool |
IsClosed |
|
Returns
CloseFace()
Finish forming the bounded surface (face) @return Success status
Declaration
Returns
CloseFaceLoop()
Finish forming the face loop @return Success status
Declaration
Returns
CloseGroupEntity()
Finish forming the geometric group @return Success status
Declaration
Returns
CloseIntersectionCurve()
Finish forming the intersection curve @return Success status
Declaration
bool CloseIntersectionCurve()
Returns
CloseMesh()
Finish forming the mesh @return Success status
Declaration
Returns
CloseModel()
Finish forming the model @return Success status
Declaration
Returns
CloseNurbsCurve()
Finish forming the NURBS curve @return Success status
Declaration
Returns
CloseNurbsSurface()
Finish forming the NURBS surface @return Success status
Declaration
Returns
CloseNurbsSurfaceB(double, double, double, double)
Declaration
bool CloseNurbsSurfaceB(double UMin, double UMax, double VMin, double VMax)
Parameters
Type |
Name |
Description |
double |
UMin |
|
double |
UMax |
|
double |
VMin |
|
double |
VMax |
|
Returns
CreateArc(string, double, double, TST3DPoint, TST3DPoint, TST3DPoint)
Declaration
bool CreateArc(string ID, double Radius, double Angle, TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX)
Parameters
Returns
CreateBlendBound(string, string, int)
Declaration
bool CreateBlendBound(string ID, string Blend, int Boundary)
Parameters
Type |
Name |
Description |
string |
ID |
|
string |
Blend |
|
int |
Boundary |
|
Returns
CreateBlendedSurface(string, string, string, string, double, double, TSTBlendedType, TST3DPoint, TSTLimitType, TST3DPoint, TSTLimitType)
Declaration
bool CreateBlendedSurface(string ID, string FirstSurfID, string SecondSurfID, string Spine, double Range1, double Range2, TSTBlendedType BlendedType, TST3DPoint p1, TSTLimitType L1, TST3DPoint p2, TSTLimitType L2)
Parameters
Returns
CreateCircle(string, double, TST3DPoint, TST3DPoint, TST3DPoint)
Declaration
bool CreateCircle(string ID, double Radius, TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX)
Parameters
Returns
CreateConeP(string, TST3DPoint, TST3DPoint, TST3DPoint, double, double, double, double, double, double)
Declaration
bool CreateConeP(string ID, TST3DPoint Location, TST3DPoint Axis, TST3DPoint RefAxis, double Radius, double SemiAngle, double Hmin, double Hmax, double Amin, double Amax)
Parameters
Type |
Name |
Description |
string |
ID |
|
TST3DPoint |
Location |
|
TST3DPoint |
Axis |
|
TST3DPoint |
RefAxis |
|
double |
Radius |
|
double |
SemiAngle |
|
double |
Hmin |
|
double |
Hmax |
|
double |
Amin |
|
double |
Amax |
|
Returns
CreateConicalSpiral(string, TST3DPoint, TST3DPoint, TST3DPoint, double, double, double, double, bool)
Declaration
bool CreateConicalSpiral(string ID, TST3DPoint Location, TST3DPoint Axis, TST3DPoint RefAxis, double StartRadius, double TermRadius, double Step, double Distance, bool CCW)
Parameters
Type |
Name |
Description |
string |
ID |
|
TST3DPoint |
Location |
|
TST3DPoint |
Axis |
|
TST3DPoint |
RefAxis |
|
double |
StartRadius |
|
double |
TermRadius |
|
double |
Step |
|
double |
Distance |
|
bool |
CCW |
|
Returns
CreateCoordinateSystem(string, TST3DPoint, TST3DPoint, TST3DPoint)
Declaration
bool CreateCoordinateSystem(string CSID, TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX)
Parameters
Returns
CreateCurveOnSurface(string, string, string)
Create a 3D curve on the surface
Declaration
bool CreateCurveOnSurface(string ID, string CurveID, string SurfaceID)
Parameters
Type |
Name |
Description |
string |
ID |
The internal number of the entity
|
string |
CurveID |
The internal number of the created curve
|
string |
SurfaceID |
The internal number of the created surface @return Success status
|
Returns
CreateCylinderP(string, TST3DPoint, TST3DPoint, TST3DPoint, double, double, double, double, double)
Declaration
bool CreateCylinderP(string ID, TST3DPoint Location, TST3DPoint Axis, TST3DPoint RefAxis, double Radius, double Hmin, double Hmax, double Amin, double Amax)
Parameters
Returns
CreateEllipse(string, double, double, TST3DPoint, TST3DPoint, TST3DPoint)
Declaration
bool CreateEllipse(string ID, double MajRad, double MinRad, TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX)
Parameters
Returns
CreateEllipseArc(string, double, double, double, double, TST3DPoint, TST3DPoint, TST3DPoint)
Declaration
bool CreateEllipseArc(string ID, double MajRad, double MinRad, double SAng, double TAng, TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX)
Parameters
Returns
CreateInversedCurve(string, string)
Declaration
bool CreateInversedCurve(string ID, string SourceCurveID)
Parameters
Type |
Name |
Description |
string |
ID |
The internal number of the entity
|
string |
SourceCurveID |
The internal number of the created curve @return Success status
|
Returns
CreateLineSeg(string, TST3DPoint, TST3DPoint)
Declaration
bool CreateLineSeg(string ID, TST3DPoint sp, TST3DPoint tp)
Parameters
Returns
CreateOffsetSurf(string, string, double)
Declaration
bool CreateOffsetSurf(string ID, string Surf, double Offset)
Parameters
Type |
Name |
Description |
string |
ID |
|
string |
Surf |
|
double |
Offset |
|
Returns
CreatePlaneP(string, TST3DPoint, TST3DPoint, TST3DPoint, double, double, double, double)
Declaration
bool CreatePlaneP(string ID, TST3DPoint Location, TST3DPoint Axis, TST3DPoint RefAxis, double xMin, double yMin, double xMax, double yMax)
Parameters
Returns
CreatePoint(string, TST3DPoint)
Declaration
bool CreatePoint(string ID, TST3DPoint P)
Parameters
Returns
CreateRevSurface120(string, TST3DPoint, TST3DPoint, string, double, double)
Declaration
bool CreateRevSurface120(string ID, TST3DPoint Location, TST3DPoint Axis, string GeneratrixID, double sa, double ta)
Parameters
Type |
Name |
Description |
string |
ID |
|
TST3DPoint |
Location |
|
TST3DPoint |
Axis |
|
string |
GeneratrixID |
|
double |
sa |
|
double |
ta |
|
Returns
CreateSolidEdge(string, string, string, string)
Create an edge for the solid
Declaration
bool CreateSolidEdge(string ID, string SourceCurveID, string svID, string tvID)
Parameters
Type |
Name |
Description |
string |
ID |
The internal number of the entity
|
string |
SourceCurveID |
The internal number of the created curve
|
string |
svID |
Start vertex
|
string |
tvID |
End vertex @return Success status
|
Returns
CreateSolidVertex(string, TST3DPoint)
Declaration
bool CreateSolidVertex(string ID, TST3DPoint P)
Parameters
Returns
CreateSphereP(string, TST3DPoint, TST3DPoint, TST3DPoint, double)
Declaration
bool CreateSphereP(string ID, TST3DPoint Location, TST3DPoint Axis, TST3DPoint RefAxis, double Radius)
Parameters
Returns
CreateTabSurface122(string, string, TST3DPoint)
Declaration
bool CreateTabSurface122(string ID, string GeneratrixID, TST3DPoint ExtrusionVector)
Parameters
Type |
Name |
Description |
string |
ID |
|
string |
GeneratrixID |
|
TST3DPoint |
ExtrusionVector |
|
Returns
CreateTorusP(string, TST3DPoint, TST3DPoint, TST3DPoint, double, double)
Declaration
bool CreateTorusP(string ID, TST3DPoint Location, TST3DPoint Axis, TST3DPoint RefAxis, double MajRad, double MinRad)
Parameters
Returns
CreateTransposedUVSurface(string, string)
Create a transposed surface (swap U and V)
Declaration
bool CreateTransposedUVSurface(string ID, string SourceSurface)
Parameters
Type |
Name |
Description |
string |
ID |
The internal number of the entity
|
string |
SourceSurface |
The internal number of the surface @return Success status
|
Returns
CreateTrimmedCurve(string, string, double, double)
Declaration
bool CreateTrimmedCurve(string ID, string SourceCurveID, double t1, double t2)
Parameters
Type |
Name |
Description |
string |
ID |
|
string |
SourceCurveID |
|
double |
t1 |
|
double |
t2 |
|
Returns
CreateTrimmedCurve2(string, string, TST3DPoint, TST3DPoint)
Declaration
bool CreateTrimmedCurve2(string ID, string SourceCurveID, TST3DPoint p1, TST3DPoint p2)
Parameters
Returns
CreateView(TST3DPoint, TST3DPoint, TST3DPoint, double, string)
Declaration
bool CreateView(TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX, double Scale, string ID)
Parameters
Returns
CutTo2d(TST2DPoint)
Declaration
bool CutTo2d(TST2DPoint P)
Parameters
Returns
CutTo3d(TST3DPoint)
Declaration
bool CutTo3d(TST3DPoint P)
Parameters
Returns
EndPmiEntity()
Declaration
Returns
EndPmiText()
Declaration
Returns
InsertBlock(string, string)
Copy and paste the block into the geometric model tree
Declaration
bool InsertBlock(string BlockID, string NewBlockName)
Parameters
Type |
Name |
Description |
string |
BlockID |
The name of the block to copy and paste (BlockName in StartBlock)
|
string |
NewBlockName |
The name of the group in the geometric model tree @return Success status
|
Returns
LoadFile(string)
Declaration
bool LoadFile(string GeomFile)
Parameters
Type |
Name |
Description |
string |
GeomFile |
The path to the file @return Success status
|
Returns
LoadFileWithScale(string, bool)
Declaration
bool LoadFileWithScale(string GeomFile, bool ADeleteFile)
Parameters
Type |
Name |
Description |
string |
GeomFile |
|
bool |
ADeleteFile |
|
Returns
PmiAddArrow(TST3DPoint, double, TSTPmiArrowType)
Declaration
bool PmiAddArrow(TST3DPoint vT, double Angle, TSTPmiArrowType ArrowType)
Parameters
Returns
PmiAddCurve(string, TSTPmiCurveType)
Declaration
bool PmiAddCurve(string CurveID, TSTPmiCurveType CurveType)
Parameters
Returns
PmiAddMesh(string)
Declaration
bool PmiAddMesh(string ID)
Parameters
Type |
Name |
Description |
string |
ID |
|
Returns
SetArcToler(double)
Declaration
bool SetArcToler(double Value)
Parameters
Type |
Name |
Description |
double |
Value |
|
Returns
SetCurrentColor(int)
Declaration
bool SetCurrentColor(int Value)
Parameters
Type |
Name |
Description |
int |
Value |
|
Returns
SetCurrentLineType(TSTLineType)
Set the current line type
Declaration
bool SetCurrentLineType(TSTLineType Value)
Parameters
Type |
Name |
Description |
TSTLineType |
Value |
One of the TSTLineType @return Success status
|
Returns
SetCurrentLineWidth(int)
Declaration
bool SetCurrentLineWidth(int Value)
Parameters
Type |
Name |
Description |
int |
Value |
|
Returns
Declaration
bool SetCurrentTransform(TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX)
Parameters
Returns
Declaration
bool SetCurrentTransform2(TST3DPoint vT, TST3DPoint vX, TST3DPoint vY, TST3DPoint vZ)
Parameters
Returns
SetCurveDomain(string, double, double, double, double)
Declaration
bool SetCurveDomain(string ID, double SrcTmin, double SrcTmax, double PrxTmin, double PrxTmax)
Parameters
Type |
Name |
Description |
string |
ID |
|
double |
SrcTmin |
|
double |
SrcTmax |
|
double |
PrxTmin |
|
double |
PrxTmax |
|
Returns
SetCurveParametrization(string, double, double)
Declaration
bool SetCurveParametrization(string CurveID, double TMin, double TMax)
Parameters
Type |
Name |
Description |
string |
CurveID |
|
double |
TMin |
|
double |
TMax |
|
Returns
SetGroupEntityIsSolid(bool)
Declaration
bool SetGroupEntityIsSolid(bool Value)
Parameters
Type |
Name |
Description |
bool |
Value |
|
Returns
SetIgnoreOutOfRange(bool)
Declaration
bool SetIgnoreOutOfRange(bool Value)
Parameters
Type |
Name |
Description |
bool |
Value |
|
Returns
SetImportOption(TSTImportOption, bool)
Declaration
bool SetImportOption(TSTImportOption OptionType, bool OptionValue)
Parameters
Returns
SetModelUnits(TST_LinearMeasure, double)
Declaration
bool SetModelUnits(TST_LinearMeasure Units, double MultScale)
Parameters
Returns
SetNurbsCurveControlPoint(int, TST3DPoint)
Declaration
bool SetNurbsCurveControlPoint(int Index, TST3DPoint P)
Parameters
Returns
SetNurbsCurveKnot(int, double)
Declaration
bool SetNurbsCurveKnot(int Index, double knot)
Parameters
Type |
Name |
Description |
int |
Index |
|
double |
knot |
|
Returns
SetNurbsCurveWeight(int, double)
Declaration
bool SetNurbsCurveWeight(int Index, double w)
Parameters
Type |
Name |
Description |
int |
Index |
|
double |
w |
|
Returns
SetNurbsSurfaceControlPoint(int, int, TST3DPoint)
Declaration
bool SetNurbsSurfaceControlPoint(int i, int j, TST3DPoint P)
Parameters
Returns
SetNurbsSurfaceUKnot(int, double)
Declaration
bool SetNurbsSurfaceUKnot(int i, double Value)
Parameters
Type |
Name |
Description |
int |
i |
|
double |
Value |
|
Returns
SetNurbsSurfaceVKnot(int, double)
Declaration
bool SetNurbsSurfaceVKnot(int i, double Value)
Parameters
Type |
Name |
Description |
int |
i |
|
double |
Value |
|
Returns
SetNurbsSurfaceWeight(int, int, double)
Declaration
bool SetNurbsSurfaceWeight(int i, int j, double Value)
Parameters
Type |
Name |
Description |
int |
i |
|
int |
j |
|
double |
Value |
|
Returns
SetPmiAssociativity(int, string)
Declaration
bool SetPmiAssociativity(int i, string ObjId)
Parameters
Type |
Name |
Description |
int |
i |
|
string |
ObjId |
|
Returns
SetPmiPreferenceD(string, double)
Declaration
bool SetPmiPreferenceD(string Path, double Value)
Parameters
Type |
Name |
Description |
string |
Path |
|
double |
Value |
|
Returns
SetPmiPreferenceI(string, int)
Declaration
bool SetPmiPreferenceI(string Path, int Value)
Parameters
Type |
Name |
Description |
string |
Path |
|
int |
Value |
|
Returns
SetSurfaceUVDomain(string, double, double, double, double, double, double, double, double, bool)
Declaration
bool SetSurfaceUVDomain(string ID, double SrcUmin, double SrcUmax, double SrcVmin, double SrcVmax, double PrxUmin, double PrxUmax, double PrxVmin, double PrxVmax, bool TransposeUV)
Parameters
Type |
Name |
Description |
string |
ID |
|
double |
SrcUmin |
|
double |
SrcUmax |
|
double |
SrcVmin |
|
double |
SrcVmax |
|
double |
PrxUmin |
|
double |
PrxUmax |
|
double |
PrxVmin |
|
double |
PrxVmax |
|
bool |
TransposeUV |
|
Returns
StartBlock(string)
Start forming a block (assembly element). It contains one model with topology (ComboModel), which must be reused during the import process. The block is placed in a buffer, from which it is inserted into the geometric model tree using InsertBlock
Declaration
bool StartBlock(string BlockName)
Parameters
Type |
Name |
Description |
string |
BlockName |
|
Returns
StartComboModel(string)
Start forming a model with topology (ComboModel). The Model will be sewn.
Declaration
bool StartComboModel(string GeomFile)
Parameters
Type |
Name |
Description |
string |
GeomFile |
The unique name of the model @return Success status
|
Returns
StartComboSolid(string)
Start forming a solid with topology (ComboSolid)
Declaration
bool StartComboSolid(string ID)
Parameters
Type |
Name |
Description |
string |
ID |
Name of the solid @return Success status
|
Returns
StartCurve2d(string, TST2DPoint, TST3DPoint, TST3DPoint, TST3DPoint)
Declaration
bool StartCurve2d(string ID, TST2DPoint P, TST3DPoint vT, TST3DPoint vZ, TST3DPoint vX)
Parameters
Returns
StartCurve3d(string, TST3DPoint)
Declaration
bool StartCurve3d(string ID, TST3DPoint P)
Parameters
Returns
StartFace(string, string, bool)
Declaration
bool StartFace(string ID, string SurfaceID, bool NormalOrientation)
Parameters
Type |
Name |
Description |
string |
ID |
|
string |
SurfaceID |
|
bool |
NormalOrientation |
|
Returns
StartFaceLoop()
Start forming a face loop @return Success status
Declaration
Returns
StartGroupEntity(string)
Start forming a geometric group
Declaration
bool StartGroupEntity(string EntityName)
Parameters
Type |
Name |
Description |
string |
EntityName |
The name of the group @return Success status
|
Returns
StartIntersectionCurve(string, string, string, TSTLimitType, TSTLimitType, double, double)
Declaration
bool StartIntersectionCurve(string ID, string FirstSurfID, string SecondSurfID, TSTLimitType L1, TSTLimitType L2, double BaseParam, double BaseScale)
Parameters
Type |
Name |
Description |
string |
ID |
|
string |
FirstSurfID |
|
string |
SecondSurfID |
|
TSTLimitType |
L1 |
|
TSTLimitType |
L2 |
|
double |
BaseParam |
|
double |
BaseScale |
|
Returns
StartMesh(string)
Declaration
bool StartMesh(string ID)
Parameters
Type |
Name |
Description |
string |
ID |
The internal number of the entity @return Success status
|
Returns
StartModel()
Start forming a model @return Success status
Declaration
Returns
StartNurbsCurve(string, int, bool, bool, bool, int, int)
Declaration
bool StartNurbsCurve(string ID, int Degree, bool IsPeriodic, bool IsRational, bool IsClosed, int KnotCount, int CPCount)
Parameters
Type |
Name |
Description |
string |
ID |
|
int |
Degree |
|
bool |
IsPeriodic |
|
bool |
IsRational |
|
bool |
IsClosed |
|
int |
KnotCount |
|
int |
CPCount |
|
Returns
StartNurbsSurface(string, int, int, int, int, bool, bool, bool, bool, bool)
Declaration
bool StartNurbsSurface(string ID, int K1, int K2, int UDegree, int VDegree, bool UClosed, bool VClosed, bool UPeriodic, bool VPeriodic, bool Rational)
Parameters
Type |
Name |
Description |
string |
ID |
|
int |
K1 |
|
int |
K2 |
|
int |
UDegree |
|
int |
VDegree |
|
bool |
UClosed |
|
bool |
VClosed |
|
bool |
UPeriodic |
|
bool |
VPeriodic |
|
bool |
Rational |
|
Returns