VS:CreateStaticHatchFromObject

From Vectorworks Developer
Jump to: navigation, search

.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix

Description

Creates a static hatch using inHatchName inside the bounds of the inObj. The pX , pY and rotationAngle arguments determine the hatch origin and rotation used to generate the result.
FUNCTION CreateStaticHatchFromObject(
inObj  :HANDLE;
inHatchName  :STRING;
pX,pY  :REAL;
rotationAngle  :REAL) : HANDLE;
def vs.CreateStaticHatchFromObject(inObj, inHatchName, p, rotationAngle):
    return HANDLE

Parameters

inObj HANDLE An object used as the boundary for the output.
inHatchName STRING The name of the hatch definition
p REAL A point specifying the origin of the output
rotationAngle REAL An angle specifying an offset angle to use to create the output

Return Value

A group of lines in a hatch pattern as specified.

Example

VectorScript

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

Python

def PickPointCallback(pt):
	h = vs.CreateStaticHatchFromObject(vs.FSActLayer(),'Default Hatch', pt[0], pt[1], 0)
vs.GetPt( PickPointCallback )

Version

Availability: from VectorWorks10.5
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox