CMeasureLines:delete CMeasureLines:SetParams

CMeasureLines:new


The new method constructs a new instance of a CMeasureLines object. You must create the object before using any class methods or properties. Note that the object can also be created using new_measurelines.

Syntax

C = CMeasureLines:new()

bullet.gif    Creates a default CMeasureLines object with properties initialized to default values.

C = CMeasureLines:new( Params )

bullet.gif    Creates a CMeasureLines object with default properties updated to values in the LineParams Table, Params.

C = CMeasureLines:new( CMeasureLines_old )

bullet.gif    This is a copy constructor. It creates a new CMeasureLines object initialized to the members of theCMeasureLines_old argument.

Example

The following script creates a new CMeasureLines object, uses it, then deletes it when no longer needed.

L = CMeasureLines:new()

-- create a new CMeasureLines

-- do things with the line description

 

L:Add( I, 50, 70, 120, 180 )

-- draw a marker

-- do other things

 

L:delete()

-- delete the object

Related Topics

CMeasureLines class, delete, LineParams Table, new_measurelines


Mira Pro x64 Script User's Guide, v.8.73 Copyright Ⓒ 2024 Mirametrics, Inc. All Rights Reserved.