Function GetLW returns the line weight of the referenced object. The value returned represents the width in mils.
FUNCTION GetLW(h : HANDLE): INTEGER;def vs.GetLW(h):
return INTEGER| Name | Type | Description |
|---|---|---|
| h | HANDLE | Handle to object. |
Criteria searching by lineweight works differently. An object with a lineweight by class can be found with this:
SelectObj((LW<.0000000000002));
Then you can use GetLW to determine the actual lineweight.
[[User:Orso.b.schmid| orso]]: (1 mil = 1/1000 in)
PROCEDURE GetLWExample;
VAR
x, y : REAL;
h : HANDLE;
BEGIN
GetPt(x, y);
h := PickObject(x, y);
IF h <> NIL THEN
Message(GetLW(h));
END;
RUN(GetLWExample);def PickPointCallback(pt):
h = vs.PickObject(pt[0], pt[1])
if h != None:
vs.Message(vs.GetLW(h))
def GetLWExample():
vs.GetPt( PickPointCallback )
GetLWExample()Availability: from All Versions