sandip_patankar
asked on
Can anyone provide a VBA code example to read dwg file title block
We have a dwg files with title block which contains name of the customer, components etc. I want to read those information and display on the screen.
ASKER
I need VB code to read the title block.
What I did was to make a block and enter attribute data. I then had the information saved into an excel file, complete with column titles that reflected the attribute descriptions. The text is in "2004 Bible" e-book.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
did you ever come up wit a solution?
IMO, Corey should get this one, that should have gotten them started.
Thank you Norrin
Extracting a database from attributes
After you insert all your blocks and attributes, you can extract the data using the
Attribute Extraction Wizard. To start the wizard, choose
Tools➪Attribute Extraction.
✦ The horizontal view is like a spreadsheet, with a column for each tag and a
row for each incident of the block.
✦ The vertical view lists the attribute values vertically so that each value gets
its own row.
Choose No Template
Click Alternate view to see each view.
n the Select Attributes screen, shown in Figure 18-28, you choose the blocks you
want to work with and their attributes.
In the Export screen, you name the file that will contain the extracted attributes.
Click the Ellipsis button to specify the location and file name in a typical file
dialog box.
✦ Microsoft Excel (*.xls): Creates an Excel spreadsheet.
To create the file, click Finish. A dialog box asks if you want to write to the file. Click
Yes. The wizard closes.
I can supply the complete text if needed.
Sincerely
gonzal13(joe)