96 | Chapter 7 DWG API Additions
Parameters
none
Return Values
Integer – Value indicating the source of the feature name.
0 – Autodesk DWG file
1 – Secondary table
Error Codes
none
See Also
setNameSource, NameSource
setNameSource Method
Syntax
boolean setNameSource(int nameSource)
Description
Sets the source of feature names for layers that are created from DWG data.
Feature names can be taken either from an Autodesk DWG file or a secondary
table. A value of 0 sets the Autodesk DWG file as the name source. A value of
1 sets the secondary table as the name source.
This method sets the name source only for polyline, polygon, and point
layers created from DWG data. It does not set the name source for Autodesk
DWG layers.
For more information about setting the name source of features on a layer,
see Step 9 under “Accessing Data Using a Link Template” on page 20.
Parameters
nameSource – Value indicating the source of the feature names.
0 – Sets the Autodesk DWG file as the name source.