Skip to content

Latest commit

 

History

History
57 lines (46 loc) · 1.42 KB

File metadata and controls

57 lines (46 loc) · 1.42 KB

GetParametricRecord

Description

Returns the handle to the parametric record attached the referenced object.

Parametric record is a hidden record format containing the parameter values of the parametric object.
Only parametric objects have parametric records.

FUNCTION GetParametricRecord(h : HANDLE): HANDLE;
def vs.GetParametricRecord(h):
    return HANDLE

Parameters

Name Type Description
h HANDLE Handle to a parametric object

Examples

{find site model}
obj	:= FSActLayer;
while ( (obj <> NIL) & notFound ) do begin
	rec	:= GetParametricRecord( obj );
	if GetName(rec) = 'DTM6' then notFound := false;
	obj	:= NextObj( obj );
end;

numHeliodons := numHeliodons + 1;
city[numHeliodons] := GetRField(objectHandle, GetName(GetParametricRecord(objectHandle)), 'City');
rotationAngle := GetSymRot(objectHandle);

BEGIN
	paramRecord 	:= GetParametricRecord ( objHandle );
	numberFields	:= NumFields( paramRecord );
	result 			:= FALSE;
import vs

# Returns the handle to the parametric record attached the referenced object.
h = vs.FSActLayer()  # handle to the first selected object on the active layer

objHandle = vs.GetParametricRecord(h)
if objHandle is not None:
    vs.Message('Created object handle: ' + str(objHandle))

Version

Availability: from Vectorworks 2011

Category