Skip to main content
View as Markdown

IOccWrapper interface

No description yet.

public interface IOccWrapper

Namespace: PCB · Assembly: Altium.SDK.Interfaces

Methods​

MethodReturnsDescription
AddAssemblyToMainLabelint
AddIgesModelint
AddInstanceint
AddMetaCompoundint
AddModelToAssemblyint
AddStepModelint
AddStepModelToAssemblyint
AddTrackint
CloseDocumentint
CreateAssemblyQueryint
CreateColourint
CreateCylinderShapeint
CreateExtrudedShapeint
CreateGeomToolint
CreateMetaCompoundint
CreateModelTriangulationint
CreateOccDocumentint
CreateOutlineint
CreatePlanarPolygonint
CreateShapeCollectionint
CreateShapeToolint
CreateSphereShapeint
CreateSplineISpline
CreateTransformationint
CreateTransformedExtrudedShapeint
ExportToStepvoid
GenerateStepModelForCylindervoid
GenerateStepModelForExtrudedvoid
GenerateStepModelForSpherevoid
IsAssemblyint
NewAssemblyint
NewDocumentint
Transferint

AddAssemblyToMainLabel​

No description yet.

int AddAssemblyToMainLabel(int argssemblyIndex);
ParameterTypePassing
argssemblyIndexintvalue

Returns: int

AddIgesModel​

No description yet.

int AddIgesModel(string argModelKey, string argIgesFilename, object argpTransformation, out int argpIndex);
ParameterTypePassing
argModelKeystringvalue
argIgesFilenamestringvalue
argpTransformationobjectvalue
argpIndexintout

Returns: int

AddInstance​

No description yet.

int AddInstance(int argParentShapeIndex, int argInstanceShapeIndex, object argpIPCB3D_Transformation, out bool argpSuccess);
ParameterTypePassing
argParentShapeIndexintvalue
argInstanceShapeIndexintvalue
argpIPCB3D_Transformationobjectvalue
argpSuccessboolout

Returns: int

AddMetaCompound​

No description yet.

int AddMetaCompound(object argpIPCB3D_MetaCompound, object argpIPCB3D_Transformation, string argname, out int argpIndex);
ParameterTypePassing
argpIPCB3D_MetaCompoundobjectvalue
argpIPCB3D_Transformationobjectvalue
argnamestringvalue
argpIndexintout

Returns: int

AddModelToAssembly​

No description yet.

int AddModelToAssembly(int argssemblyShapeIndex, string argModelKey, string argModelFilename, object argpTransformation, object argpOverideColor, out int argpIndex);
ParameterTypePassing
argssemblyShapeIndexintvalue
argModelKeystringvalue
argModelFilenamestringvalue
argpTransformationobjectvalue
argpOverideColorobjectvalue
argpIndexintout

Returns: int

AddStepModel​

No description yet.

int AddStepModel(string argModelKey, string argStepFilename, object argpTransformation, out int argpIndex);
ParameterTypePassing
argModelKeystringvalue
argStepFilenamestringvalue
argpTransformationobjectvalue
argpIndexintout

Returns: int

AddStepModelToAssembly​

No description yet.

int AddStepModelToAssembly(int argssemblyShapeIndex, string argModelKey, string argStepFilename, object argpTransformation, out int argpIndex);
ParameterTypePassing
argssemblyShapeIndexintvalue
argModelKeystringvalue
argStepFilenamestringvalue
argpTransformationobjectvalue
argpIndexintout

Returns: int

AddTrack​

No description yet.

int AddTrack(double argx1, double argy1, double argx2, double argy2, double argw, double argh, double argzPosition, object argpColor, double argisLast);
ParameterTypePassing
argx1doublevalue
argy1doublevalue
argx2doublevalue
argy2doublevalue
argwdoublevalue
arghdoublevalue
argzPositiondoublevalue
argpColorobjectvalue
argisLastdoublevalue

Returns: int

CloseDocument​

No description yet.

int CloseDocument();

Returns: int

CreateAssemblyQuery​

No description yet.

int CreateAssemblyQuery(out object argpAssemblyQuery);
ParameterTypePassing
argpAssemblyQueryobjectout

Returns: int

CreateColour​

No description yet.

int CreateColour(out object argpColour);
ParameterTypePassing
argpColourobjectout

Returns: int

CreateCylinderShape​

No description yet.

int CreateCylinderShape(out object argpCylinderShape);
ParameterTypePassing
argpCylinderShapeobjectout

Returns: int

CreateExtrudedShape​

No description yet.

int CreateExtrudedShape(out object argpExtrudedShape);
ParameterTypePassing
argpExtrudedShapeobjectout

Returns: int

CreateGeomTool​

No description yet.

int CreateGeomTool(out IPCB3D_GeomTool argpGeomTool);
ParameterTypePassing
argpGeomToolIPCB3D_GeomToolout

Returns: int

CreateMetaCompound​

No description yet.

int CreateMetaCompound(out object argpMetaCompound);
ParameterTypePassing
argpMetaCompoundobjectout

Returns: int

CreateModelTriangulation​

No description yet.

int CreateModelTriangulation(out object argpModelTriangulation);
ParameterTypePassing
argpModelTriangulationobjectout

Returns: int

CreateOccDocument​

No description yet.

int CreateOccDocument(out IOCCDocument argpResultDocument);
ParameterTypePassing
argpResultDocumentIOCCDocumentout

Returns: int

CreateOutline​

No description yet.

int CreateOutline(out object argpOutline);
ParameterTypePassing
argpOutlineobjectout

Returns: int

CreatePlanarPolygon​

No description yet.

int CreatePlanarPolygon(out object argpPlanarPolygon);
ParameterTypePassing
argpPlanarPolygonobjectout

Returns: int

CreateShapeCollection​

No description yet.

int CreateShapeCollection(out object argpShapeCollection);
ParameterTypePassing
argpShapeCollectionobjectout

Returns: int

CreateShapeTool​

No description yet.

int CreateShapeTool(out IPCB3D_ShapeTool argpShapeTool);
ParameterTypePassing
argpShapeToolIPCB3D_ShapeToolout

Returns: int

CreateSphereShape​

No description yet.

int CreateSphereShape(out object argpSphereShape);
ParameterTypePassing
argpSphereShapeobjectout

Returns: int

CreateSpline​

No description yet.

ISpline CreateSpline(int argdimension, bool argrational, int argdegree, IPointList argControlPoints, IDoubleList argweights, IDoubleList argKnots, ICardinalList argknot_multiplicity);
ParameterTypePassing
argdimensionintvalue
argrationalboolvalue
argdegreeintvalue
argControlPointsIPointListvalue
argweightsIDoubleListvalue
argKnotsIDoubleListvalue
argknot_multiplicityICardinalListvalue

Returns: ISpline

Extension method of IOccWrapperHelper (using PCB;).

CreateTransformation​

No description yet.

int CreateTransformation(out object argpTransformation);
ParameterTypePassing
argpTransformationobjectout

Returns: int

CreateTransformedExtrudedShape​

No description yet.

int CreateTransformedExtrudedShape(out object argpExtrudedShape);
ParameterTypePassing
argpExtrudedShapeobjectout

Returns: int

ExportToStep​

No description yet.

void ExportToStep(string argfilename);
ParameterTypePassing
argfilenamestringvalue

Returns: nothing (void)

GenerateStepModelForCylinder​

No description yet.

void GenerateStepModelForCylinder(object argpCylinder, object argpTransformation, object argpColor, string argStepFilename);
ParameterTypePassing
argpCylinderobjectvalue
argpTransformationobjectvalue
argpColorobjectvalue
argStepFilenamestringvalue

Returns: nothing (void)

GenerateStepModelForExtruded​

No description yet.

void GenerateStepModelForExtruded(object argpExtruded, object argpTransformation, object argpColor, string argStepFilename);
ParameterTypePassing
argpExtrudedobjectvalue
argpTransformationobjectvalue
argpColorobjectvalue
argStepFilenamestringvalue

Returns: nothing (void)

GenerateStepModelForSphere​

No description yet.

void GenerateStepModelForSphere(object argpSphere, object argpTransformation, object argpColor, string argStepFilename);
ParameterTypePassing
argpSphereobjectvalue
argpTransformationobjectvalue
argpColorobjectvalue
argStepFilenamestringvalue

Returns: nothing (void)

IsAssembly​

No description yet.

int IsAssembly(int argShapeIndex, out bool argpSuccess);
ParameterTypePassing
argShapeIndexintvalue
argpSuccessboolout

Returns: int

NewAssembly​

No description yet.

int NewAssembly(string argname, out int argpIndex);
ParameterTypePassing
argnamestringvalue
argpIndexintout

Returns: int

NewDocument​

No description yet.

int NewDocument(bool argcreateTopLabel);
ParameterTypePassing
argcreateTopLabelboolvalue

Returns: int

Transfer​

No description yet.

int Transfer(IOCCDocument argoccDocument);
int Transfer(object argoccDocument);
ParameterTypePassing
argoccDocumentIOCCDocumentvalue

Returns: int

The first overload is an extension method of IOccWrapperHelper (using PCB;) with typed parameters; the second is declared by the interface.

Returned by​

IPCB_ServerInterface.GetOccWrapper

Accepted by​

IPCB_Model.AddTo, IPCB_Model.AddToAssembly, IPCB_Model.AddToAssembly2