The GetObjectAttribute transaction returns the value of the specified attribute for the selected object. "Attributes" are characteristics such as color, line width, and font.
Type XTYP_REQUEST
Syntax [GetObjectAttribute(docwinID, layerID, objectID, attributeID, <pageID>)]
|
Parameter |
Data type |
Values |
Meaning |
|
docwinID |
DWORD |
0 | docwinID |
active | specific |
|
layerID |
DWORD |
identifier of the layer to query | |
|
objectID |
DWORD |
0 |
selected object |
|
attributeID |
WORD |
See Tool attribute list. | |
|
pageID |
DWORD |
0 | pageID |
current | specific. Optional parameter. |
|
Reply |
Data type |
Values |
Meaning |
|
returnCode |
BOOL |
0 | 1 |
did not find | found value |
|
attribute |
WORD |
See Tool attribute list | |
|
units |
WORD |
1 | 2 |
inches | cm. Only returned if the attribute uses units. |
Release information
Added in Release 3.60.
See also