VS:IFC GetEntityColor

From Vectorworks Developer
Revision as of 04:45, 28 January 2019 by NBeshevliev (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

Description

Gets the default color for an IFC entity type
FUNCTION IFC_GetEntityColor(
inStrIfcType  :STRING;
VAR outRed  :INTEGER;
VAR outGreen  :INTEGER;
VAR outBlue  :INTEGER;
VAR outTransp  :INTEGER) : BOOLEAN;
def vs.IFC_GetEntityColor(inStrIfcType):
    return (BOOLEAN, outRed, outGreen, outBlue, outTransp)

Parameters

inStrIfcType STRING IFC Entity type.
outRed INTEGER Out parameter. Red Value of RGB color model.
outGreen INTEGER Out parameter. Green Value of RGB color model.
outBlue INTEGER Out parameter. Blue Value of RGB color model.
outTransp INTEGER Out parameter. Transepransy value.

Return Value

TRUE on success, FALSE indicates failure.

Example

VectorScript

PROCEDURE Test;
VAR
	red   : INTEGER;
        green : INTEGER;
        blue  : INTEGER;
        transp: INTEGER;
	ok    : BOOLEAN;
BEGIN
	ok := IFC_GetEntityColor('IfcWall', red, green, blue, transp);
END;

RUN(Test);

Python

ok = vs.IFC_GetEntityColor('IfcWall', red, green, blue, transp)

Version

Availability: from Vectorworks 2014
Personal tools
NamespacesFFFF

Variants
Actions
Advanced Search
See Also
Navigation
Toolbox