Class TechnologistHelper
Inheritance
TechnologistHelper
Assembly: CAMAPI.DotnetHelper.dll
Syntax
public static class TechnologistHelper
Methods
Calculate toolpath of all operations of the project
Declaration
public static void CalculateAllOperationsToolpath(this ComWrapper<ICamApiTechnologist> technologistCom, bool calcLinksBetweenOperations)
Parameters
Calculate toolpath of the current operation
Declaration
public static void CalculateToolpath(this ComWrapper<ICamApiTechnologist> technologistCom, bool calcLinksBetweenOperations)
Parameters
CreateOperation(ComWrapper<ICamApiTechnologist>, string, string, string)
Create a new operation of the specified type in the current technologist
Declaration
public static ComWrapper<ICamApiTechOperation> CreateOperation(this ComWrapper<ICamApiTechnologist> technologistCom, string operationTypeId = "", string afterOperationId = "", string prototypeOperationId = "")
Parameters
Returns
CreateOperationFromUserTemplate(ComWrapper<ICamApiTechnologist>, string, string)
Create a new operation from a user template
Declaration
public static ComWrapper<ICamApiTechOperation> CreateOperationFromUserTemplate(this ComWrapper<ICamApiTechnologist> technologistCom, string userOperationId, string afterOperationId)
Parameters
Returns
CreatePart(ComWrapper<ICamApiTechnologist>, int)
Create a new part item in the current technologist
Declaration
public static ComWrapper<ICamApiPart> CreatePart(this ComWrapper<ICamApiTechnologist> technologistCom, int externalId)
Parameters
Returns
CreateSetupStage(ComWrapper<ICamApiTechnologist>)
Create new setup stage in the current technologist
Declaration
public static ComWrapper<ICamApiSetupStage> CreateSetupStage(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
CurrentOperation(ComWrapper<ICamApiTechnologist>)
Current operation of the technologist
Declaration
public static ComWrapper<ICamApiTechOperation> CurrentOperation(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
DeleteOperation(ComWrapper<ICamApiTechnologist>, string)
Delete operation from the current technologist
Declaration
public static void DeleteOperation(this ComWrapper<ICamApiTechnologist> technologistCom, string operationId)
Parameters
DeletePart(ComWrapper<ICamApiTechnologist>, int)
Delete part from all setup stages
Declaration
public static void DeletePart(this ComWrapper<ICamApiTechnologist> technologistCom, int partIndex)
Parameters
DeletePartStage(ComWrapper<ICamApiTechnologist>, int, int, bool)
Delete part from the specified setup stage
Declaration
public static void DeletePartStage(this ComWrapper<ICamApiTechnologist> technologistCom, int partIndex, int setupStageIndex, bool includingNextStages)
Parameters
DeleteSetupStage(ComWrapper<ICamApiTechnologist>, int)
Delete setup stage from the current technologist. Can be deleted if there are no parts inside
Declaration
public static void DeleteSetupStage(this ComWrapper<ICamApiTechnologist> technologistCom, int setupStageIndex)
Parameters
EnumerateOperationTypes(ComWrapper<ICamApiTechnologist>)
Lists all tech operation types in a technologist
Declaration
public static IEnumerable<ComWrapper<ICamApiTechOperationType>> EnumerateOperationTypes(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
EnumerateOperations(ComWrapper<ICamApiTechnologist>, TCamApiReorderingMode)
Lists all tech operations in a technologist
Declaration
public static IEnumerable<ComWrapper<ICamApiTechOperation>> EnumerateOperations(this ComWrapper<ICamApiTechnologist> technologistCom, TCamApiReorderingMode reorderingMode)
Parameters
Returns
ExportOperation(ComWrapper<ICamApiTechnologist>, string, string)
Save the operation (with its sub-tree) to an .eop file, so it can later be imported with ImportOperation
Declaration
public static void ExportOperation(this ComWrapper<ICamApiTechnologist> technologistCom, string operationId, string filePath)
Parameters
GetActiveReorderingModeOfSimulation(ComWrapper<ICamApiTechnologist>)
Get active reordering mode when simulating technology
Declaration
public static TCamApiReorderingMode GetActiveReorderingModeOfSimulation(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
GetActiveReorderingModeOfTechnology(ComWrapper<ICamApiTechnologist>)
Get active reordering mode when designing technology
Declaration
public static TCamApiReorderingMode GetActiveReorderingModeOfTechnology(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
GetAvailableOperationTypeIds(ComWrapper<ICamApiTechnologist>)
Get list of IDs for operation types available to be created in the current technologist
Declaration
public static ComWrapper<IListString> GetAvailableOperationTypeIds(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
GetChannelOperations(ComWrapper<ICamApiTechnologist>, int)
Declaration
public static IEnumerable<ComWrapper<ICamApiTechOperation>> GetChannelOperations(this ComWrapper<ICamApiTechnologist> technologistCom, int channelIndex)
Parameters
Returns
GetOperationById(ComWrapper<ICamApiTechnologist>, string)
Find operation by its unique identifier (GUID)
Declaration
public static ComWrapper<ICamApiTechOperation> GetOperationById(this ComWrapper<ICamApiTechnologist> technologistCom, string operationId)
Parameters
Returns
GetOperationByOrder(ComWrapper<ICamApiTechnologist>, int)
Operation at the given flat position in the designed-order operation tree (root = 0). Replayed
macros bind a pre-existing operation by the ordinal captured at record time, because a recorded
GUID does not survive into a fresh project. Falls back to the current operation when the ordinal
is out of range.
Declaration
public static ComWrapper<ICamApiTechOperation> GetOperationByOrder(this ComWrapper<ICamApiTechnologist> technologistCom, int order)
Parameters
Returns
GetOperations(ComWrapper<ICamApiTechnologist>, TCamApiReorderingMode)
Get iterator for operations tree
Declaration
public static ComWrapper<ICamApiTechOperationIterator> GetOperations(this ComWrapper<ICamApiTechnologist> technologistCom, TCamApiReorderingMode reorderingMode)
Parameters
Returns
GetPartStageOperation(ComWrapper<ICamApiTechnologist>, int, int)
Get the operation tree node (ICamApiTechOperation) for a part/stage combination by their indexes.
The underlying COM object implements both ICamApiPartStage and ICamApiTechOperation, so QI is used.
Returns a null wrapper if the combination does not exist.
Declaration
public static ComWrapper<ICamApiTechOperation> GetPartStageOperation(this ComWrapper<ICamApiTechnologist> technologistCom, int partIndex, int setupStageIndex)
Parameters
| Type |
Name |
Description |
| ComWrapper<ICamApiTechnologist> |
technologistCom |
Technologist
|
| int |
partIndex |
Part index (from ICamApiPart.PartIndex)
|
| int |
setupStageIndex |
Setup stage index (from ICamApiSetupStage.SetupStageIndex)
|
Returns
ImportOperation(ComWrapper<ICamApiTechnologist>, string, string)
Import operations from an .eop file, inserting them right after the specified operation.
Pass an empty afterOperationId to append them to the end of the technology tree.
Returns the identifiers of the inserted operations
Declaration
public static ComWrapper<IListString> ImportOperation(this ComWrapper<ICamApiTechnologist> technologistCom, string filePath, string afterOperationId = "")
Parameters
Returns
MoveOperation(ComWrapper<ICamApiTechnologist>, string, string)
Move the operation in the technology tree to the position right after the specified one.
Pass the identifier of the root operation to make the operation the first one.
To place the operation into a group, pass the identifier of the last operation inside that group
Declaration
public static void MoveOperation(this ComWrapper<ICamApiTechnologist> technologistCom, string operationId, string afterOperationId)
Parameters
OperationCatalogList(ComWrapper<ICamApiTechnologist>)
Operation catalogs of the "New operation" window
Declaration
public static ComWrapper<ICamApiOperationCatalogList> OperationCatalogList(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
OperationTypes(ComWrapper<ICamApiTechnologist>)
Get iterator for operation types available in the current technologist
Declaration
public static ComWrapper<ICamApiTechOperationTypeIterator> OperationTypes(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
PartAndStageList(ComWrapper<ICamApiTechnologist>)
Get parts and setup stages in the current technologist
Declaration
public static ComWrapper<ICamApiPartAndStageList> PartAndStageList(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
Reset toolpath of all operations
Declaration
public static void ResetAllOperationsToolpath(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Reset toolpath of the current operation
Declaration
public static void ResetToolpath(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
RootOperation(ComWrapper<ICamApiTechnologist>)
Root operation of the technologist
Declaration
public static ComWrapper<ICamApiTechOperation> RootOperation(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters
Returns
SetCurrentOperation(ComWrapper<ICamApiTechnologist>, ComWrapper<ICamApiTechOperation>)
Current operation of the technologist
Declaration
public static void SetCurrentOperation(this ComWrapper<ICamApiTechnologist> technologistCom, ComWrapper<ICamApiTechOperation> value)
Parameters
SwitchOperationEnability(ComWrapper<ICamApiTechnologist>)
Switch Enabled property of the current operation to the opposite state
Declaration
public static void SwitchOperationEnability(this ComWrapper<ICamApiTechnologist> technologistCom)
Parameters