Interface ISTGeomReceiver
Contains methods for importing geometry to CAM
Assembly: STGeomApiTypes.dll
Syntax
[Guid("29F37F13-3E46-490A-BD58-24A0E4D7063E")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
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 number of the end vertex (VertexID in AddComboSolidVertex)
|
| string |
LeftFaceID |
- The internal number of the left face
|
| string |
RightFaceID |
- The internal number of the right face
|
Returns
| Type |
Description |
| bool |
Success status
|
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
|
Returns
| Type |
Description |
| bool |
Success status
|
AddComboSolidVertex(TST3DPoint, string)
Declaration
bool AddComboSolidVertex(TST3DPoint P, string VertexID)
Parameters
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
|
Returns
| Type |
Description |
| bool |
Success status
|
AddFaceEdge2d(string, bool, string, string)
Declaration
bool AddFaceEdge2d(string CurveID, bool Orientation, string svID, string tvID)
Parameters
Returns
AddFaceEdge3d(string, bool, string, string)
Declaration
bool AddFaceEdge3d(string CurveID, bool Orientation, string svID, string tvID)
Parameters
Returns
AddIntersectionCurvePoint(TST3DPoint)
Declaration
bool AddIntersectionCurvePoint(TST3DPoint Position)
Parameters
Returns
AddMeshTriangle(int, int, int)
Declaration
bool AddMeshTriangle(int v1, int v2, int v3)
Parameters
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
Returns
ArcTo2d(TST2DPoint, TST2DPoint, double)
Declaration
bool ArcTo2d(TST2DPoint pc, TST2DPoint P, double rad)
Parameters
Returns
BeginObject_PMIThread(string)
Get IPMIGeomThread interface
Declaration
IPMIGeomThread BeginObject_PMIThread(string CADID)
Parameters
| Type |
Name |
Description |
| string |
CADID |
Unique CAD identifier
|
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)
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseComboModel()
Finish forming a model with topology (ComboMode)
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseComboSolid()
Finish forming a solid with topology (ComboSolid)
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
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)
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseFaceLoop()
Finish forming the face loop
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseGroupEntity()
Finish forming the geometric group
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseIntersectionCurve()
Finish forming the intersection curve
Declaration
bool CloseIntersectionCurve()
Returns
| Type |
Description |
| bool |
Success status
|
CloseMesh()
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseModel()
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseNurbsCurve()
Finish forming the NURBS curve
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseNurbsSurface()
Finish forming the NURBS surface
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
CloseNurbsSurfaceB(double, double, double, double)
Declaration
bool CloseNurbsSurfaceB(double UMin, double UMax, double VMin, double VMax)
Parameters
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
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
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
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
|
Returns
| Type |
Description |
| bool |
Success status
|
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
|
Returns
| Type |
Description |
| bool |
Success status
|
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
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
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 |
|
| string |
tvID |
|
Returns
| Type |
Description |
| bool |
Success status
|
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
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
|
Returns
| Type |
Description |
| bool |
Success status
|
CreateTrimmedCurve(string, string, double, double)
Declaration
bool CreateTrimmedCurve(string ID, string SourceCurveID, double t1, double t2)
Parameters
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
EndObject(IAbstractGeomObject)
Write the geometry object to the SGF file
Declaration
bool EndObject(IAbstractGeomObject obj)
Parameters
Returns
| Type |
Description |
| bool |
Success status
|
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
|
Returns
| Type |
Description |
| bool |
Success status
|
LoadFile(string)
Declaration
bool LoadFile(string GeomFile)
Parameters
| Type |
Name |
Description |
| string |
GeomFile |
|
Returns
| Type |
Description |
| bool |
Success status
|
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)
Declaration
bool SetCurrentLineType(TSTLineType Value)
Parameters
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
Returns
SetCurveParametrization(string, double, double)
Declaration
bool SetCurveParametrization(string CurveID, double TMin, double TMax)
Parameters
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
Returns
SetNurbsCurveWeight(int, double)
Declaration
bool SetNurbsCurveWeight(int Index, double w)
Parameters
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
Returns
SetNurbsSurfaceVKnot(int, double)
Declaration
bool SetNurbsSurfaceVKnot(int i, double Value)
Parameters
Returns
SetNurbsSurfaceWeight(int, int, double)
Declaration
bool SetNurbsSurfaceWeight(int i, int j, double Value)
Parameters
Returns
SetPmiAssociativity(int, string)
Declaration
bool SetPmiAssociativity(int i, string ObjId)
Parameters
Returns
SetPmiPreferenceD(string, double)
Declaration
bool SetPmiPreferenceD(string Path, double Value)
Parameters
Returns
SetPmiPreferenceI(string, int)
Declaration
bool SetPmiPreferenceI(string Path, int Value)
Parameters
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
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 |
- The unique name of the block (ComboModel)
|
Returns
| Type |
Description |
| bool |
Success status
|
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
|
Returns
| Type |
Description |
| bool |
Success status
|
StartComboSolid(string)
Start forming a solid with topology (ComboSolid)
Declaration
bool StartComboSolid(string ID)
Parameters
| Type |
Name |
Description |
| string |
ID |
|
Returns
| Type |
Description |
| bool |
Success status
|
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
Returns
StartFaceLoop()
Start forming a face loop
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
StartGroupEntity(string)
Start forming a geometric group
Declaration
bool StartGroupEntity(string EntityName)
Parameters
| Type |
Name |
Description |
| string |
EntityName |
|
Returns
| Type |
Description |
| bool |
Success status
|
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
Returns
StartMesh(string)
Declaration
bool StartMesh(string ID)
Parameters
| Type |
Name |
Description |
| string |
ID |
- The internal number of the entity
|
Returns
| Type |
Description |
| bool |
Success status
|
StartModel()
Declaration
Returns
| Type |
Description |
| bool |
Success status
|
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
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
Returns