Skip to content

Latest commit

 

History

History
57 lines (48 loc) · 1.25 KB

File metadata and controls

57 lines (48 loc) · 1.25 KB

CreateStaticHatch

Description

Creates a static hatch using inHatchName inside the bounded selection surrounding the point. rotationAngle determines the rotation of the result.

FUNCTION CreateStaticHatch(
				inHatchName   : STRING;
				pX,pY         : REAL;
				rotationAngle : REAL): HANDLE;
def vs.CreateStaticHatch(inHatchName, p, rotationAngle):
    return HANDLE

Parameters

Name Type Description
inHatchName STRING The name of the hatch definition to use for the hatch.
p REAL A point inside the bounds defined by the current selection
rotationAngle REAL An angle that specifies an offset angle. Zero degress is due East.

Remarks

The hatch is created in an arbitrary angle, not as defined.

Examples

VectorScript

PROCEDURE Example;
VAR
h:HANDLE;
x,y:REAL;
BEGIN
GetPt(x,y);
h := CreateStaticHatch('Default Hatch', x, y, 0);
DSelectAll;
SetSelect(h);
END;
RUN(Example);

Python

def PickPointCallback(pt):
	h = vs.CreateStaticHatch('Default Hatch', pt[0], pt[1], 0)
	vs.DSelectAll()
	vs.SetSelect(h)

vs.GetPt( PickPointCallback )

Version

Availability: from VectorWorks10.1

Category