Autodesk 15607-010000-5000A Manuale Utente

Pagina di 180
102
|
Chapter 7
DWG API Additions
For more information about using secondary tables as the source for SQL 
WHERE clauses, see Step 9 under “Accessing Data Using a Link Template” on 
page 20.
Parameters
none
Return Values
integer – Value indicating the source for the SQL WHERE clause of the layer.
0 – Indicates an Autodesk DWG files as the SQL WHERE clause source.
1 – Indicates a secondary table as the SQL WHERE clause source.
Error Codes
-15 (DoesNotApply)
See Also
setWhereSource, WhereSource
setWhereSource Method
Syntax
boolean setWhereSource(int whereSource)
Description
Sets the source of the SQL WHERE clause for layers that are created from 
DWG data. This method sets the source of the SQL WHERE clause only for 
polyline, polygon, and point layers created from DWG data. It does not set 
the SQL WHERE clause source for Autodesk DWG layers.
SQL WHERE clause sources can be taken from an Autodesk DWG file or a 
secondary table. A value of 0 sets the Autodesk DWG file as the source for the 
SQL WHERE clause. A value of 1 sets the secondary table as the SQL WHERE 
clause source.
For more information about using secondary tables as the source for SQL 
WHERE clauses, see Step 9 under “Accessing Data Using a Link Template” on 
page 20.