Quickly Change and Modify AutoCAD Block Attributes With Export and Import: Tuesday Tips With Brandon

Learning
AutoCAD block attributes import export

I have often been asked if it is possible to make changes to large quantities of blocks at one time or to export their attributes in some way out of AutoCAD. The answer lies within the Export and Import Attribute commands to quickly change and modify AutoCAD block attributes.

The Export/Import Attribute commands allows a user to export a selection set of blocks into a common .txt file that can easily be read and edited in a variety of programs. Microsoft Excel in particular can be very helpful. Once edited, the .txt file can then easily be imported back into the drawing, automatically updating the affected blocks with their new attributes.

The pair of commands can be found in the Express Tools Ribbon Tab in the Blocks sections.

Import and Export Attributes Command AutoCAD

To get started, simply click the Export Attributes command or enter ATTOUT into the command line. Once activated, use the dialog box to navigate to the save location for the output file and give it a name. In this example, the file with be EXPORT ATT-EXPORT.txt.

Export Attributes command AutoCAD

Next, we are given a prompt to select the blocks to export attribute data. Blocks can be selected one at a time or all using a selection box.

Export attribute data AutoCAD

Once the desired blocks have been selected, hit enter to complete the process. For the new file, the path to the output file will be shown in the command line. The resulting .txt file can be opened in many programs. I prefer Excel for ease of use, but any spreadsheets/word processor will work.

When opening the file, if prompted, choose tab delimited as the format in order to best see and work with the data.

In our example, the resulting spreadsheet shown here contains all of the attribute data associated with the selected blocks. In this case, it’s mostly window and door blocks. From here, how we modify or change the data will vary greatly depending on the intended use or outcome. For this example, I have used the spreadsheet to quickly change up the symbol numbering (sym.) for my window blocks.

AutoCAD block attributes Excel

When finished with editing any attributes, simply save the updated .txt file. I like to do a Save As, just in case I want to revert back.

Once back in AutoCAD, we can use the Import Attribute button or ATTIN to open up a dialog box allowing us to select the newly modified .txt attribute file.

Import Attribute Command AutoCAD

After selecting and importing the updated file, any attributes that have been modified in the .txt will be automatically updated in the drawing.

In our example, the window tag numbers (in blue) have been changed automatically after importing the modified file.

Modify block attributes AutoCAD

There really are endless uses for the Import/Export Attribute commands in AutoCAD, and I hope you’ll try it out the next time you might need to modify many blocks in a drawing. I’m sure it will be another great tool to have in your tool box! I would love to hear about how you use or might use the Import/Export Attribute commands in the comments.

To learn more about the Import/Export Attribute commands, including different options and to see it in use, be sure to check out my YouTube channel and the accompanying video below:

More Tuesday Tips

Check out our whole Tuesday Tips series for ideas on how to make AutoCAD work for you. Do you have any favorite AutoCAD tips? Tell us in the comments!



Brandon Loehr

Brandon Loehr is a civil designer, AutoCAD evangelist, and founder of CAD Intentions. Brandon has been obsessed with design and technology for as long as he can remember and uses his Blog and Channel as an outlet and excuse to keep up with the ever-changing industry. For the past five years, Brandon’s blog (http://CADIntentions.com) and YouTube channel (http://cadintentions.com/yt) have helped the public keep up with new tutorials, tech, and trends in the CAD design world, growing to more than 5.5 million views. When he's not working as a designer or on his online content, Brandon enjoys spending time traveling and adventuring with his wife Andrea, son Emmett (2yrs), and daughter Avery (6mo).

Try AutoCAD free for 15 days
The AutoCAD Blog is all about helping you get the most out of AutoCAD. It's also the best way for you to connect with the makers of AutoCAD. Subscribe to keep up with AutoCAD

______
icon-svg-close-thick

Cookie preferences

Your privacy is important to us and so is an optimal experience. To help us customize information and build applications, we collect data about your use of this site.

May we collect and use your data?

Learn more about the Third Party Services we use and our Privacy Statement.

Strictly necessary – required for our site to work and to provide services to you

These cookies allow us to record your preferences or login information, respond to your requests or fulfill items in your shopping cart.

Improve your experience – allows us to show you what is relevant to you

These cookies enable us to provide enhanced functionality and personalization. They may be set by us or by third party providers whose services we use to deliver information and experiences tailored to you. If you do not allow these cookies, some or all of these services may not be available for you.

Customize your advertising – permits us to offer targeted advertising to you

These cookies collect data about you based on your activities and interests in order to show you relevant ads and to track effectiveness. By collecting this data, the ads you see will be more tailored to your interests. If you do not allow these cookies, you will experience less targeted advertising.

icon-svg-close-thick

THIRD PARTY SERVICES

Learn more about the Third-Party Services we use in each category, and how we use the data we collect from you online.

icon-svg-hide-thick

icon-svg-show-thick

Strictly necessary – required for our site to work and to provide services to you

Qualtrics
W
Akamai mPulse
W
Digital River
W
Dynatrace
W
Khoros
W
Launch Darkly
W
New Relic
W
Salesforce Live Agent
W
Wistia
W
Tealium
W
Upsellit
W
CJ Affiliates
W
Commission Factory
W
Google Analytics (Strictly Necessary)
W
Typepad Stats
W
Geo Targetly
W
SpeedCurve
W
Qualified
#

icon-svg-hide-thick

icon-svg-show-thick

Improve your experience – allows us to show you what is relevant to you

Google Optimize
W
ClickTale
W
OneSignal
W
Optimizely
W
Amplitude
W
Snowplow
W
UserVoice
W
Clearbit
#
YouTube
#

icon-svg-hide-thick

icon-svg-show-thick

Customize your advertising – permits us to offer targeted advertising to you

Adobe Analytics
W
Google Analytics (Web Analytics)
W
AdWords
W
Marketo
W
Doubleclick
W
HubSpot
W
Twitter
W
Facebook
W
LinkedIn
W
Yahoo! Japan
W
Naver
W
Quantcast
W
Call Tracking
W
Wunderkind
W
ADC Media
W
AgrantSEM
W
Bidtellect
W
Bing
W
G2Crowd
W
NMPI Display
W
VK
W
Adobe Target
W
Google Analytics (Advertising)
W
Trendkite
W
Hotjar
W
6 Sense
W
Terminus
W
StackAdapt
W
The Trade Desk
W
RollWorks
W

Are you sure you want a less customized experience?

We can access your data only if you select "yes" for the categories on the previous screen. This lets us tailor our marketing so that it's more relevant for you. You can change your settings at any time by visiting our privacy statement

Your experience. Your choice.

We care about your privacy. The data we collect helps us understand how you use our products, what information you might be interested in, and what we can improve to make your engagement with Autodesk more rewarding.

May we collect and use your data to tailor your experience?

Explore the benefits of a customized experience by managing your privacy settings for this site or visit our Privacy Statement to learn more about your options.