Interface ICamIpcSimulator
Manages simulation of the project
Namespace: CAMIPC.Simulator
Assembly: CAMIPC.Simulator.dll
Syntax
[Guid("ABB53F60-55A5-4F65-A133-FD32E37BC775")]
[InterfaceType(ComInterfaceType.InterfaceIsIUnknown)]
public interface ICamIpcSimulator
Properties
BreakOnEndOfOperation
Should simulator break simulation on the end of operation
Declaration
bool BreakOnEndOfOperation { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BreakOnErrors
Should simulator break simulation on errors
Declaration
bool BreakOnErrors { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
BreakOnStopCommand
Should simulator break simulation on special STOP command
Declaration
bool BreakOnStopCommand { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CheckGouges
Should simulator check for gouges
Declaration
bool CheckGouges { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CheckHiddenNodesCollisions
Should simulator check for collisions with hidden machine nodes (deepest detection level). Setting this to true also enables CheckMachineCollisions and CheckHolderCollisions.
Declaration
bool CheckHiddenNodesCollisions { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CheckHolderCollisions
Should simulator check for holder collisions. Setting this to false also disables CheckMachineCollisions and CheckHiddenNodesCollisions.
Declaration
bool CheckHolderCollisions { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CheckMachineCollisions
Should simulator check for machine collisions. Setting this to true also enables CheckHolderCollisions. Setting this to false also disables CheckHiddenNodesCollisions.
Declaration
bool CheckMachineCollisions { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CompensationCurveVisible
Whether tool compensation curve is shown in the simulation viewport
Declaration
bool CompensationCurveVisible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
MultiChannelMode
Whether the multi-channel simulation mode is enabled.
Declaration
bool MultiChannelMode { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
RapidScalePower
Rapid motion scale as a power of 2: 0 = x1, 1 = x2, 2 = x4, ..., 7 = x128
Declaration
int RapidScalePower { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SimulationMethod
Simulation method (solid / voxel 3D / voxel 5D)
Declaration
TCamIpcSimulationMethod SimulationMethod { get; set; }
Property Value
| Type | Description |
|---|---|
| TCamIpcSimulationMethod |
SimulationSpeedPercent
Speed of smooth simulation in percents (0-100)
Declaration
int SimulationSpeedPercent { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
SmoothSimulationEnabled
Smooth simulation mode: when true, toolpath is painted continuously along the trajectory; when false, simulation advances per block
Declaration
bool SmoothSimulationEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
FastSimulateAllOperations()
Calculate simulation results for all operations in the project
Declaration
void FastSimulateAllOperations()
FastSimulateCurrentOperation()
Calculate simulation results for the current operation
Declaration
void FastSimulateCurrentOperation()
FastSimulateUpToCurrentOperation()
Calculate simulation results from the first operation to the current operation (inclusive)
Declaration
void FastSimulateUpToCurrentOperation()
GetChannel(int, ref TExecuteContext)
Declaration
ICamIpcMcdChannel GetChannel(int Index, ref TExecuteContext ExecuteContext)
Parameters
| Type | Name | Description |
|---|---|---|
| int | Index | |
| TExecuteContext | ExecuteContext |
Returns
| Type | Description |
|---|---|
| ICamIpcMcdChannel |
GetChannelCount(ref TExecuteContext)
Declaration
int GetChannelCount(ref TExecuteContext ExecuteContext)
Parameters
| Type | Name | Description |
|---|---|---|
| TExecuteContext | ExecuteContext |
Returns
| Type | Description |
|---|---|
| int |
GoToNextError()
Activate the next simulation error: the next CLDATA command with an error, or the next operation that has errors. If no further error exists, the active node is unchanged.
Declaration
void GoToNextError()
GoToPrevError()
Activate the previous simulation error: the previous CLDATA command with an error, or the previous operation that has errors. If no prior error exists, the active node is unchanged.
Declaration
void GoToPrevError()
ResetSimulationResults()
Stop current simulation and delete all simulation results
Declaration
void ResetSimulationResults()
SaveMachiningResultToSTL(ICamIpcPartStage, string, ref TExecuteContext)
Declaration
void SaveMachiningResultToSTL(ICamIpcPartStage PartStage, string FileName, ref TExecuteContext ExecuteContext)
Parameters
| Type | Name | Description |
|---|---|---|
| ICamIpcPartStage | PartStage | |
| string | FileName | |
| TExecuteContext | ExecuteContext |
SmoothSimulationStart()
Smoothly start simulation from the current operation up to the end
Declaration
void SmoothSimulationStart()
SmoothSimulationStepBackward()
Execute previous command in smooth simulation mode
Declaration
void SmoothSimulationStepBackward()
SmoothSimulationStepForward()
Execute next command in smooth simulation mode
Declaration
void SmoothSimulationStepForward()
SmoothSimulationStop()
Stop current process of smooth simulation
Declaration
void SmoothSimulationStop()