From Vectorworks Developer
Revision as of 15:06, 20 January 2021 by CBM-c-
.VectorScript|VectorScript ..VS:Function Reference|Function Reference ..VS:Function_Reference_Appendix|Appendix
DescriptionReturns the property set name, if it is attached and where from (mapping or record).
VAR outIfcPsetName :STRING;
VAR outType :INTEGER) : BOOLEAN;
def vs.IFC_GetPsetInfoAt(hObject, bAllPsets, index): return (BOOLEAN, outIfcPsetName, outType)
hObject HANDLE Handle to object. bAllPsets BOOLEAN Boolean that defines whether customPsets are to be checked. index INTEGER Index that defines the pset position. outIfcPsetName STRING Out parameter for the property set name. outType INTEGER Returns the index that defines the state of the Pset. Possible values are: -2 (pset forbidden from mapping, NOT attached in record), -1 (pset forbidden from mapping, but attached in record), 0 (pset NOT attached), 1 (pset attached from record), 2 (pset attached from mapping).
Return ValueTRUE on success, FALSE indicates failure.
PROCEDURE Test; VAR hObject : HANDLE; ok : BOOLEAN; outName : STRING; outType : INTEGER; BEGIN ok := IFC_GetPsetInfoAt(hObject, TRUE, 0, outName, outType); END; RUN(Test);
hObject = vs.Handle() ok = False outName = "" outType = -1 ok = vs.IFC_GetPsetInfoAt(hObject, True, 0, outName, outType)