VCOM:VectorWorks:IFCLib:IIFCSupport::IFC SetEntityColor: Difference between revisions
Jump to navigation
Jump to search
m (1 revision) |
No edit summary |
||
(9 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
{{LocationMain|category=LocationVCOM|specific=}} | {{LocationMain|category=LocationVCOM|specific=}} | ||
__TOC__ | __TOC__ | ||
<vwDoc> | <vwDoc> | ||
Line 8: | Line 7: | ||
namespace <code>VectorWorks::IFCLib</code> | namespace <code>VectorWorks::IFCLib</code> | ||
Member of [[VCOM:VectorWorks:IFCLib:IIFCSupport]] | Member of [[VCOM:VectorWorks:IFCLib:IIFCSupport|IIFCSupport]] | ||
Sets the color for an IFC entity in RGB format. | |||
</desc> | </desc> | ||
Line 16: | Line 15: | ||
<def> | <def> | ||
<funcDef lang="cpp"> | <funcDef lang="cpp"> | ||
VCOMError IFC_SetEntityColor(const TXString& strIfcName, short red, short green, short blue, short transparent); | |||
</funcDef> | </funcDef> | ||
</def> | </def> | ||
Line 25: | Line 24: | ||
<line> | <line> | ||
strIfcName | strIfcName | ||
TXString | |||
IFC Entity name. | |||
</line> | </line> | ||
<line> | <line> | ||
red | red | ||
short | short | ||
The red component of the color, varies from from 0 to 255. | |||
</line> | </line> | ||
<line> | <line> | ||
green | green | ||
short | short | ||
The green component of the color, varies from from 0 to 255. | |||
</line> | </line> | ||
<line> | <line> | ||
blue | blue | ||
short | short | ||
The blue component of the color, varies from from 0 to 255. | |||
</line> | </line> | ||
<line> | <line> | ||
transparent | transparent | ||
short | short | ||
Flag for transparency. 1 for TRUE, 0 for FALSE (opaque). | |||
</line> | </line> | ||
</lineList> | </lineList> | ||
Line 58: | Line 57: | ||
<lineList ident=1> | <lineList ident=1> | ||
<line> | <line> | ||
kVCOMError_NoError | |||
The function succeeded. No Error! | |||
</line> | </line> | ||
</lineList> | </lineList> | ||
Line 82: | Line 77: | ||
----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ||
<version> | <version> | ||
Available from: 2019 | |||
</version> | </version> | ||
Latest revision as of 11:24, 13 July 2018
.SDK|SDK ..SDK:Types|SDK Types ..VCOM:VCOM (Vectorworks Component Object Model)|VCOM Basics ..VCOM:Class Reference|VCOM Class Reference
Description
namespace VectorWorks::IFCLib
Member of IIFCSupport
Sets the color for an IFC entity in RGB format.
VCOMError IFC_SetEntityColor(
const TXString& strIfcName,
short red,
short green,
short blue,
short transparent);
Parameters
strIfcName TXString IFC Entity name. red short The red component of the color, varies from from 0 to 255. green short The green component of the color, varies from from 0 to 255. blue short The blue component of the color, varies from from 0 to 255. transparent short Flag for transparency. 1 for TRUE, 0 for FALSE (opaque).
Return Value
Uses standard VCOM Error Reporting.
Return value meaning:
kVCOMError_NoError The function succeeded. No Error!
Version
Available from: 2019