Adding a Data Source

Adding a Data Source

Anonymous
Not applicable
418 Views
1 Reply
Message 1 of 2

Adding a Data Source

Anonymous
Not applicable
Is it possible to programmatically add a new data source to the list of sources in the dBconnect window? I understand that the list of data sources shown comes from whatever directory is set to be the data directory in the Tools > Options > Files tab, so I could always have a piece of code that checks whether a certain UDL file is in that directory and if not, create it there and have AutoCAD restart, but I was wondering if there exists an easier way. Thanks!
0 Likes
419 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
This might help:
http://jtbworld.blogspot.com/2004/11/create-data-link-file-udl-using-code.html
Not directly solving your problem but could be useful.

--
Best Regards, Jimmy Bergmark
Owner/Manager/Developer - JTB World
Blog: http://jtbworld.blogspot.com
JTB FlexReport (FLEXnet / FLEXlm report tool) -
http://www.jtbworld.com/jtbflexreport
SmartPurger (Purges automatically) - http://www.jtbworld.com/smartpurger.htm
or download some freeware at http://www.jtbworld.com
More on AutoCAD 2006 and 2007
http://www.jtbworld.com/autocad2006.htm
http://www.jtbworld.com/autocad2007.htm


wrote in message news:[email protected]...
Is it possible to programmatically add a new data source to the list of
sources in the dBconnect window? I understand that the list of data sources
shown comes from whatever directory is set to be the data directory in the
Tools > Options > Files tab, so I could always have a piece of code that
checks whether a certain UDL file is in that directory and if not, create it
there and have AutoCAD restart, but I was wondering if there exists an
easier way. Thanks!
0 Likes