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| 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. |
The hatch is created in an arbitrary angle, not as defined.
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);def PickPointCallback(pt):
h = vs.CreateStaticHatch('Default Hatch', pt[0], pt[1], 0)
vs.DSelectAll()
vs.SetSelect(h)
vs.GetPt( PickPointCallback )Availability: from VectorWorks10.1