SpiralShape Outwards

Gets or Sets whether the scanning direction should be outwards or inwards. Setting the property to TRUE will result in an outward laser beam travel, starting from the center and vice versa.

public bool Outwards {get;Set}

 

Return value

bool TRUE if the marking direction is set to outwards

 

Example

Copy
scanDocument = scanDeviceManager.CreateScanDocument(GetselectedDeviceUniqueName(), DistanceUnit.Millimeters, false);

if (scanDocument != null)
{
    VectorImage vectorImage = scanDocument.CreateVectorImage("image1", DistanceUnit.Millimeters);

    vectorImage.SetMarkSpeed(1000);
    vectorImage.SetJumpSpeed(2000);
    vectorImage.SetJumpDelay(100);
    vectorImage.SetMarkDelay(100);

    //Set Laser Delays
    vectorImage.SetLaserOnDelay(10);
    vectorImage.SetLaserOffDelay(10);

    SpiralShape spiral = new SpiralShape();
    spiral.CenterPoint = new Point3D(0, 0, 0);
    spiral.InnerRadius = 0.2f;
    spiral.OuterRadius = 9f;
    spiral.Angle = 0.3f;
    spiral.Pitch = 0.1f;
    spiral.Clockwise = false;
    spiral.InnerRotations = 1;
    spiral.OuterRotations = 1;
    
    spiral.Outwards = true;
    
    spiral.ReturnToStart = true;

    vectorImage.AddSpiral(spiral, 0.1f);

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

    try
    {
        scanDocument.StartScanning();
    }
    catch (Exception exp)
    {
        MessageBox.Show(exp.Message);
    }
}