CAM API
  • CAM API
v20.0.1
Search Results for

    Show / Hide Table of Contents

    Interface ICamApiTechOperation

    Namespace: CAMAPI.TechOperation
    Assembly: CAMAPI.TechOperation.dll
    Syntax
    [Guid("C0384D7A-9E7C-4867-87AA-42642AF3186C")]
    [InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
    public interface ICamApiTechOperation

    Properties

    ApproachCalculated

    The approach move of the operation is calculated

    Declaration
    bool ApproachCalculated { get; }
    Property Value
    Type Description
    bool

    ApproachRule

    Approach move before operation start

    Declaration
    string ApproachRule { get; set; }
    Property Value
    Type Description
    string

    Calculated

    The operation toolpath is calculated

    Declaration
    bool Calculated { get; }
    Property Value
    Type Description
    bool

    ChannelIndex

    Zero-based index of the simulator channel this operation is assigned to. Always 0 on single-channel machines.

    Declaration
    int ChannelIndex { get; }
    Property Value
    Type Description
    int

    Enabled

    The operation is blocked for calculation or not

    Declaration
    bool Enabled { get; }
    Property Value
    Type Description
    bool

    FullName

    Slash divided full name of technology operation including parent groups

    Declaration
    string FullName { get; }
    Property Value
    Type Description
    string

    Id

    Get unique identifier of technology operation

    Declaration
    string Id { get; }
    Property Value
    Type Description
    string

    IsCollisionError

    "Collision of machine nodes" — kinematic nodes of the machine (spindle head, table, columns, etc.) intersect during motion.

    Declaration
    bool IsCollisionError { get; }
    Property Value
    Type Description
    bool

    IsCompensationError

    "Radius compensation value is too much" — the tool is stopped with an alarm because requested radius (G41/G42) compensation exceeds the limit.

    Declaration
    bool IsCompensationError { get; }
    Property Value
    Type Description
    bool

    IsError

    Error in calculating toolpath or simulation

    Declaration
    bool IsError { get; }
    Property Value
    Type Description
    bool

    IsGougeError

    "Gouge of the part" — the cutter cuts into the part outside the intended toolpath region (overcut).

    Declaration
    bool IsGougeError { get; }
    Property Value
    Type Description
    bool

    IsGroup

    Returns true if the operation is any kind of groups and can have child operations

    Declaration
    bool IsGroup { get; }
    Property Value
    Type Description
    bool

    IsHolderError

    "Contact workpiece with holder" — the tool holder (collet/chuck body), not the cutting edge, touches the workpiece.

    Declaration
    bool IsHolderError { get; }
    Property Value
    Type Description
    bool

    IsMachiningResultCalculated

    The machining result is calculated for this operation

    Declaration
    bool IsMachiningResultCalculated { get; }
    Property Value
    Type Description
    bool

    IsPlungeError

    "The ramp angle too high" — the tool plunges into the material at an angle steeper than what the cutting strategy allows.

    Declaration
    bool IsPlungeError { get; }
    Property Value
    Type Description
    bool

    IsRapidError

    "Contact with workpiece on rapid feed" — the tool engages the workpiece while moving at rapid feed rate instead of working feed (unsafe motion).

    Declaration
    bool IsRapidError { get; }
    Property Value
    Type Description
    bool

    IsToolOverloadError

    "Tool overload" — engagement load (cutting force/torque) on the tool exceeds the configured limit; risks tool breakage.

    Declaration
    bool IsToolOverloadError { get; }
    Property Value
    Type Description
    bool

    IsTravelError

    "Axis travel over the limits" — a machine axis is commanded to move beyond its physical software limit (out of the work envelope).

    Declaration
    bool IsTravelError { get; }
    Property Value
    Type Description
    bool

    IsTurnDirectionError

    "Inappropriate tool and spindle rotation direction" — the orientation of the cutter does not match the configured spindle rotation direction.

    Declaration
    bool IsTurnDirectionError { get; }
    Property Value
    Type Description
    bool

    LCS

    Local coordinate system for current operation

    Declaration
    TST3DMatrix LCS { get; }
    Property Value
    Type Description
    TST3DMatrix

    Machine

    Get machine instance

    Declaration
    ICamApiMachine Machine { get; }
    Property Value
    Type Description
    ICamApiMachine

    MachineConfiguration

    Machine configuration for the operation

    Declaration
    ICamApiMachineConfiguration MachineConfiguration { get; }
    Property Value
    Type Description
    ICamApiMachineConfiguration

    McdTree

    Primary MCD tree of the operation — the toolpath computed by the technologist projected onto the machine kinematics. Returns nil if the operation is not calculated or is a group (HasToolpath = false).

    Declaration
    ICamApiMcdTree McdTree { get; }
    Property Value
    Type Description
    ICamApiMcdTree

    ModelFormerFixtures

    Object to manage model formers of fixture

    Declaration
    ICamApiModelFormer ModelFormerFixtures { get; }
    Property Value
    Type Description
    ICamApiModelFormer

    ModelFormerJobAssignment

    Object to manage model formers of job assignment

    Declaration
    ICamApiModelFormer ModelFormerJobAssignment { get; }
    Property Value
    Type Description
    ICamApiModelFormer

    ModelFormerPart

    Object to manage model formers of part

    Declaration
    ICamApiModelFormer ModelFormerPart { get; }
    Property Value
    Type Description
    ICamApiModelFormer

    ModelFormerRestrictions

    Object to manage model formers of restrictions

    Declaration
    ICamApiModelFormer ModelFormerRestrictions { get; }
    Property Value
    Type Description
    ICamApiModelFormer

    ModelFormerWorkpiece

    Object to manage model formers of workpiece

    Declaration
    ICamApiModelFormer ModelFormerWorkpiece { get; }
    Property Value
    Type Description
    ICamApiModelFormer

    Name

    Get name of technology operation

    Declaration
    string Name { get; set; }
    Property Value
    Type Description
    string

    NeedDeleteChips

    Whether chips need to be deleted before this operation

    Declaration
    bool NeedDeleteChips { get; }
    Property Value
    Type Description
    bool

    Notes

    User notes of the technology operation (free-form multi-line text)

    Declaration
    string Notes { get; set; }
    Property Value
    Type Description
    string

    OperationTag

    Invisible textual Tag of operation. Empty by default. You (external code developer) can use it for your own purpose.

    Declaration
    string OperationTag { get; set; }
    Property Value
    Type Description
    string

    OperationType

    Type identifier of the technology operation

    Declaration
    string OperationType { get; }
    Property Value
    Type Description
    string

    PartIndex

    Index of the Part inside Technologist to which this operation relates

    Declaration
    int PartIndex { get; }
    Property Value
    Type Description
    int

    RecoveryMcdTree

    Recovery MCD tree of the operation — toolpath restored from post-processed NC text via reverse interpretation, used when simulating by G-code. Returns nil when the recovery toolpath is not available.

    Declaration
    ICamApiMcdTree RecoveryMcdTree { get; }
    Property Value
    Type Description
    ICamApiMcdTree

    ResetToolpathLocked

    OBSOLETE - the toolpath reset lock is application-wide, not per operation. Use ICamApiTechnologist.ResetToolpathLocked instead. Kept for binary compatibility: the getter reports the application-wide value, the setter does nothing.

    Declaration
    bool ResetToolpathLocked { get; set; }
    Property Value
    Type Description
    bool

    ReturnCalculated

    The return move of the operation is calculated

    Declaration
    bool ReturnCalculated { get; }
    Property Value
    Type Description
    bool

    ReturnRule

    Return move after operation end

    Declaration
    string ReturnRule { get; set; }
    Property Value
    Type Description
    string

    RevertToCalculatedInputsAvailable

    True when the operation has a captured calculated-input snapshot, its current inputs differ from it, AND the toolpath is lagging behind those inputs, i.e. RevertToCalculatedInputs would bring the operation back in step with its toolpath. With the application-wide toolpath lock off an edit resets the toolpath at once, so there is nothing to revert to and this stays False. Drives the Revert button.

    Declaration
    bool RevertToCalculatedInputsAvailable { get; }
    Property Value
    Type Description
    bool

    SetupStageIndex

    Index of the Setup stage inside Technologist to which this operation relates

    Declaration
    int SetupStageIndex { get; }
    Property Value
    Type Description
    int

    Simulated

    The operation is simulated

    Declaration
    bool Simulated { get; }
    Property Value
    Type Description
    bool

    Technologist

    Owning Technologist of the operation. You can try to cast it to (ICamApiTechnologist)

    Declaration
    ICamApiTechOperationOwner Technologist { get; }
    Property Value
    Type Description
    ICamApiTechOperationOwner

    ToolEntity

    Machining tool of the operation. You can cast different interfaces to it depend on exact tool type

    Declaration
    ICamApiMachiningTool ToolEntity { get; }
    Property Value
    Type Description
    ICamApiMachiningTool

    Units

    Measurements of the operation

    Declaration
    TSTSystemUnits Units { get; }
    Property Value
    Type Description
    TSTSystemUnits

    WorkpieceCoordinateSystem

    Workpiece coordinate system of the operation

    Declaration
    ICamApiWorkpieceCoordinateSystem WorkpieceCoordinateSystem { get; }
    Property Value
    Type Description
    ICamApiWorkpieceCoordinateSystem

    XMLProp

    Value in XML-file, describing operation. Call LoadFromXmlProp to apply changes to the operation

    Declaration
    IST_XMLPropPointer XMLProp { get; }
    Property Value
    Type Description
    IST_XMLPropPointer

    Methods

    ExportToolpath(ICamApiExportToolpathReceiver, out TResultStatus)

    Declaration
    void ExportToolpath(ICamApiExportToolpathReceiver ToolpathReceiver, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    ICamApiExportToolpathReceiver ToolpathReceiver
    TResultStatus ResultStatus

    GetApproachRuleIsCustom(out ICamApiApproachReturnRule, out TResultStatus)

    Declaration
    bool GetApproachRuleIsCustom(out ICamApiApproachReturnRule Rule, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    ICamApiApproachReturnRule Rule
    TResultStatus ResultStatus
    Returns
    Type Description
    bool

    GetBlocksStatistics(out TCamApiTechOperationBlocksStatistics, out TResultStatus)

    Declaration
    void GetBlocksStatistics(out TCamApiTechOperationBlocksStatistics Statistics, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TCamApiTechOperationBlocksStatistics Statistics
    TResultStatus ResultStatus

    GetCoolantTubeInfo(int, out TResultStatus)

    Declaration
    TCamApiCoolantTubeInfo GetCoolantTubeInfo(int TubeIndex, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    int TubeIndex
    TResultStatus ResultStatus
    Returns
    Type Description
    TCamApiCoolantTubeInfo

    GetCoolantTubeState(int, out TResultStatus)

    Declaration
    bool GetCoolantTubeState(int TubeIndex, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    int TubeIndex
    TResultStatus ResultStatus
    Returns
    Type Description
    bool

    GetCoolantTubesCount()

    Get the number of coolant tubes available on the current machine (up to 20).

    Declaration
    int GetCoolantTubesCount()
    Returns
    Type Description
    int

    GetFeedValue(TFeedTypeFlag, out TResultStatus)

    Declaration
    TCamApiFeedInfo GetFeedValue(TFeedTypeFlag FeedType, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TFeedTypeFlag FeedType
    TResultStatus ResultStatus
    Returns
    Type Description
    TCamApiFeedInfo

    GetFirstChildOperation(TCamApiReorderingMode)

    Declaration
    ICamApiTechOperation GetFirstChildOperation(TCamApiReorderingMode ReorderingMode)
    Parameters
    Type Name Description
    TCamApiReorderingMode ReorderingMode
    Returns
    Type Description
    ICamApiTechOperation

    GetLengthStatistics(out TCamApiTechOperationLengthStatistics, out TResultStatus)

    Declaration
    void GetLengthStatistics(out TCamApiTechOperationLengthStatistics Statistics, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TCamApiTechOperationLengthStatistics Statistics
    TResultStatus ResultStatus

    GetNextSiblingOperation(TCamApiReorderingMode)

    Declaration
    ICamApiTechOperation GetNextSiblingOperation(TCamApiReorderingMode ReorderingMode)
    Parameters
    Type Name Description
    TCamApiReorderingMode ReorderingMode
    Returns
    Type Description
    ICamApiTechOperation

    GetOperationDefaults()

    Op-computed parameter defaults as a JSON path-value map. These are values the operation materialises at creation that diverge from the schema/formula default. Empty when none.

    Declaration
    string GetOperationDefaults()
    Returns
    Type Description
    string

    GetParentOperation(TCamApiReorderingMode)

    Declaration
    ICamApiTechOperation GetParentOperation(TCamApiReorderingMode ReorderingMode)
    Parameters
    Type Name Description
    TCamApiReorderingMode ReorderingMode
    Returns
    Type Description
    ICamApiTechOperation

    GetPropIterator(string, out TResultStatus)

    Declaration
    IST_CustomPropIterator GetPropIterator(string PageID, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string PageID
    TResultStatus ResultStatus
    Returns
    Type Description
    IST_CustomPropIterator

    GetReturnRuleIsCustom(out ICamApiApproachReturnRule, out TResultStatus)

    Declaration
    bool GetReturnRuleIsCustom(out ICamApiApproachReturnRule Rule, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    ICamApiApproachReturnRule Rule
    TResultStatus ResultStatus
    Returns
    Type Description
    bool

    GetSpindleState()

    Get spindle speed and rotation information for the operation.

    Declaration
    TCamApiSpindleState GetSpindleState()
    Returns
    Type Description
    TCamApiSpindleState

    GetStocks(out TCamApiTechOperationStocks, out TResultStatus)

    Declaration
    void GetStocks(out TCamApiTechOperationStocks Stocks, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TCamApiTechOperationStocks Stocks
    TResultStatus ResultStatus

    GetTimeStatistics(out TCamApiTechOperationTimeStatistics, out TResultStatus)

    Declaration
    void GetTimeStatistics(out TCamApiTechOperationTimeStatistics Statistics, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TCamApiTechOperationTimeStatistics Statistics
    TResultStatus ResultStatus

    GetUserParameters(out TResultStatus)

    Declaration
    ICamApiUserParametersList GetUserParameters(out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TResultStatus ResultStatus
    Returns
    Type Description
    ICamApiUserParametersList

    GetVolumeStatistics(out TCamApiTechOperationVolumeStatistics, out TResultStatus)

    Declaration
    void GetVolumeStatistics(out TCamApiTechOperationVolumeStatistics Statistics, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TCamApiTechOperationVolumeStatistics Statistics
    TResultStatus ResultStatus

    HasToolpath()

    Returns true if the operation has its own toolpath and it could be exported using ExportToolpath. Groups has no toolpath at all. If the operation is not Calculated, HasToolpath is false.

    Declaration
    bool HasToolpath()
    Returns
    Type Description
    bool

    InitMachineEvaluator(ICamApiMachineEvaluator, out TResultStatus)

    Declaration
    void InitMachineEvaluator(ICamApiMachineEvaluator MachineEvaluator, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    ICamApiMachineEvaluator MachineEvaluator
    TResultStatus ResultStatus

    IsInputPathRevertable(string, out TResultStatus)

    Declaration
    bool IsInputPathRevertable(string Path, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string Path
    TResultStatus ResultStatus
    Returns
    Type Description
    bool

    LoadFromXmlProp(IST_XMLPropPointer, out TResultStatus)

    Declaration
    void LoadFromXmlProp(IST_XMLPropPointer XMLProp, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    IST_XMLPropPointer XMLProp
    TResultStatus ResultStatus

    RegisterHandler(string, ICamApiEventHandler, IListString, out TResultStatus)

    Declaration
    void RegisterHandler(string HandlerIdent, ICamApiEventHandler Handler, IListString Events, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string HandlerIdent
    ICamApiEventHandler Handler
    IListString Events
    TResultStatus ResultStatus

    RevertInputPathToCalculatedInputs(string, out TResultStatus)

    Declaration
    void RevertInputPathToCalculatedInputs(string Path, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string Path
    TResultStatus ResultStatus

    RevertToCalculatedInputs(out TResultStatus)

    Declaration
    void RevertToCalculatedInputs(out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TResultStatus ResultStatus

    SaveToXmlProp(out IST_XMLPropPointer, out TResultStatus)

    Declaration
    void SaveToXmlProp(out IST_XMLPropPointer XMLProp, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    IST_XMLPropPointer XMLProp
    TResultStatus ResultStatus

    SetApproachRuleIsCustom(ICamApiApproachReturnRule, out TResultStatus)

    Declaration
    void SetApproachRuleIsCustom(ICamApiApproachReturnRule Rule, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    ICamApiApproachReturnRule Rule
    TResultStatus ResultStatus

    SetCoolantTubeState(int, bool, out TResultStatus)

    Declaration
    void SetCoolantTubeState(int TubeIndex, bool State, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    int TubeIndex
    bool State
    TResultStatus ResultStatus

    SetFeedOutputMeasurement(TFeedTypeFlag, TCamApiFeedMeasurement, out TResultStatus)

    Declaration
    void SetFeedOutputMeasurement(TFeedTypeFlag FeedType, TCamApiFeedMeasurement OutputMeasurement, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TFeedTypeFlag FeedType
    TCamApiFeedMeasurement OutputMeasurement
    TResultStatus ResultStatus

    SetFeedValue(TFeedTypeFlag, TCamApiFeedMeasurement, double, out TResultStatus)

    Declaration
    void SetFeedValue(TFeedTypeFlag FeedType, TCamApiFeedMeasurement InputMeasurement, double Value, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    TFeedTypeFlag FeedType
    TCamApiFeedMeasurement InputMeasurement
    double Value
    TResultStatus ResultStatus

    SetReturnRuleIsCustom(ICamApiApproachReturnRule, out TResultStatus)

    Declaration
    void SetReturnRuleIsCustom(ICamApiApproachReturnRule Rule, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    ICamApiApproachReturnRule Rule
    TResultStatus ResultStatus

    SetSpindleGearBoxRange(int)

    Declaration
    void SetSpindleGearBoxRange(int Range)
    Parameters
    Type Name Description
    int Range

    SetSpindleMaxRPMValue(double)

    Declaration
    void SetSpindleMaxRPMValue(double MaxRPMValue)
    Parameters
    Type Name Description
    double MaxRPMValue

    SetSpindleRotationByDefault()

    Reset spindle rotation to default value

    Declaration
    void SetSpindleRotationByDefault()

    SetSpindleRotationDirection(TCamApiSpindleRotationDirection)

    Declaration
    void SetSpindleRotationDirection(TCamApiSpindleRotationDirection direction)
    Parameters
    Type Name Description
    TCamApiSpindleRotationDirection direction

    SetSpindleRotationsToCSS(double)

    Declaration
    void SetSpindleRotationsToCSS(double SurfaceSpeedValue)
    Parameters
    Type Name Description
    double SurfaceSpeedValue

    SetSpindleRotationsToOff()

    Set spindle rotation mode to off

    Declaration
    void SetSpindleRotationsToOff()

    SetSpindleRotationsToRPM(double)

    Declaration
    void SetSpindleRotationsToRPM(double RPMValue)
    Parameters
    Type Name Description
    double RPMValue

    UnregisterHandler(string, out TResultStatus)

    Declaration
    void UnregisterHandler(string HandlerIdent, out TResultStatus ResultStatus)
    Parameters
    Type Name Description
    string HandlerIdent
    TResultStatus ResultStatus
    In this article