100 | Chapter 7 DWG API Additions
Parameters
urlSource – Value indicating the URL source.
0 – Sets the Autodesk DWG file as the URL source.
1 – Sets the secondary table as the URL source.
Return Values
boolean – Specifies whether or not the source of the feature URLs has been
successfully set.
True – Indicates that the URL source has been set successfully.
False – Indicates that the URL source has not been set.
Error Codes
-1 (Busy)
-15 (DoesNotApply)
See Also
getUrlSource, UrlSource
UrlSource Property
Syntax
NameSource
Description
Gets and sets the source of feature URLs for layers that are created from DWG
data. These URLs enable users to go the a web page related to a map feature
by double clicking the feature.
Feature URLs can be taken either from an Autodesk DWG file or a secondary
table. A value of 0 sets the Autodesk DWG file as the URL source. A value of
1 sets the secondary table as the URL source.
This property sets the URL source only for polyline, polygon, and point
layers created from DWG data. It does not set the URL source for Autodesk
DWG layers.