Creating a BOM using VB.Net by importing values through SQL
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I am new to AutoCAD (using AutoCAD Mechanical 2022 and Visual Studio 2019) and my company has me trying to automate a way to use a block name to pull data from a database through an ODBC connection, and use that query to populate a BOM. It looks as if VB.Net will be the best way for me to do so. For instance, I would have a block name such as C01-05555, and use that name to cross reference the database through an SQL query, populating a BOM with fields such as Manufacturer Name, Manufacturer Part Number, Description and Company Part Number (this would be the Block name and my primary key in the database) pulled from our ERP system through the database connection. I have set up an ODBC connection through DBConnect and can query the database, but it looks like in order to automate this I will need to use an API instead. Any guidance on how to best tackle this would be appreciated!