Autodesk 15607-010000-5000A Manuale Utente

Pagina di 180
108
|
Chapter 7
DWG API Additions
LinkedToSecondaryTable Property
Syntax
LinkedToSecondaryTable
Description
Specifies whether or not the current layer is linked to a secondary table. A 
value of True indicates that a link exists. A value of False indicates that a link 
does not exist.
In order to link to a secondary table, you need to call the setSecondaryData-
Source, setSecondaryTable, and setSecondaryKeyColumn methods. After you 
set these, you can call the setNameSource, setUrlSource, or setWhereSource 
methods to link to a secondary table. If either setNameSource, setUrlSource, 
or setWhereSource is set to 1, this property returns a value of True. Otherwise, 
this property returns a value of False.
For more information about linking layers that are created from DWG data 
to secondary tables, see “Accessing Data Using a Link Template” on page 20.
Parameters
none
Return Values
boolean value (read) – Specifies whether or not the layer is linked to a 
secondary table. 
True – Indicates that the layer is linked to a secondary table.
False – Indicates that the layer is not linked to a secondary table.
Error Codes
-15 (DoesNotApply)
See Also
getLinkToSecondaryTable