CircleDrillShapePattern CircleDrillShapePattern

Creates the circle drill shape pattern

Overloads

public CircleDrillShapePattern()
public CircleDrillShapePattern(float minRadius, float deltaRadius)
public CircleDrillShapePattern(float minRadius, float deltaRadius, LaserParameters laserParameters)
public CircleDrillShapePattern(float minRadius, float deltaRadius, LaserParameters laserParameters, bool usePointRadiusAsMaxRadius, float maxRadius, float revsPerCircle, bool isClockwise, bool isConcentricCirclesEnabled)

 

Parameters

float minRadius The minimum radius of the concentric circles
float maxRadius Maximum radius of the concentric circles
float deltaRadius The difference of the radii for each consecutive circles
float revsPerCircle The number of times a circle should be scanned
bool isClockwise Scanning direction for the circle drill shape pattern.
bool isConcentricCirclesEnabled Set whether the concentric circles are enabled
bool usePointRadiusAsMaxRadius Set whether the Max radius of the drill circles should be set to the value defined by the radius of each drill point
LaserParameters laserParameters  

 

Example

Copy
DistanceUnit drillUnits = DistanceUnit.Millimeters;

scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), drillUnits, false);

if (scanDocument != null)
{
    VectorImage vectorImage = GetNewVectorImage();

    int markdelayInUsec = 200;
    int polydelayInUsec = 75;
    int JumpDelay = 10;
    int JumpSpeed = 10;
    int LaserOnDelay = 5;
    int LaserOffDelay = 5;

    vectorImage.SetJumpDelay(JumpDelay);
    vectorImage.SetMarkDelay(markdelayInUsec);
    vectorImage.SetPolyDelay(polydelayInUsec);
    vectorImage.SetJumpSpeed(JumpSpeed);

    //Set Laser Delays
    vectorImage.SetLaserOnDelay(LaserOnDelay);
    vectorImage.SetLaserOffDelay(LaserOffDelay);


    CircleDrillShapePattern circleDrilPat = new CircleDrillShapePattern();

    circleDrilPat.DeltaRadius = 1;
    circleDrilPat.IsClockwise = false;
    circleDrilPat.IsConcentricCirclesEnabled = true;
    circleDrilPat.MaxRadius = 6;
    circleDrilPat.MinRadius = 2;
    circleDrilPat.RevsPerCircle = 1;
    circleDrilPat.UsePointRadiusAsMaxRadius = true;


    //Create a spiral shape.
    DrillShape drillShape = new DrillShape();
    drillShape.SetPattern(circleDrilPat);

    drillShape.AddCirclePoint(0, 0, 0, 10);
    drillShape.AddCirclePoint(10, 10, 0, 10);
    drillShape.AddCirclePoint(20, 20, 0, 10);

    // Add the Drill shape to vector image
    vectorImage.AddDrill(drillShape);

    scanDocument.Scripts.Add(new ScanningScriptChunk("SC_CL_DRILLING", "ScanAll()"));

    try
    {
        scanDocument.StartScanning();
    }
    catch
    {

    }

}