• Home
  • Training Books
  • Subscribe to Our Email Newsletter
  • About
    • Contributors
    • Feedback
    • Contact
    • Privacy policy
    • Cookie Policy

CADnotes

CAD Tutorials and Best Practices for professionals and students

  • Featured
  • AutoCAD
    • AutoLISP
  • Revit
    • Revit Architecture Basic
    • Revit MEP Basic Tutorial
  • Inventor
  • MicroStation
    • MicroStation Basic Tutorial
  • CADnotes on YouTube
You are here: Home / AutoCAD / How to edit palette properties using text editor

How to edit palette properties using text editor

June 20, 2013 by Edwin Prakoso Leave a Comment

In this Article...

  • Tools properties
  • Editing the xml file
  • A little tip

Do you like using tool palettes? Tool palette is the easiest way to customize your tools. You can use it to add objects with custom properties, macros to work faster, recorded actions, and easily add blocks from files.

Tools properties

Tools in your palette has properties. Right click a tool, then select properties from contextual menu. You will see the object properties.

You can change the properties to match your need.

line_tool_properties

However, you need to change the properties for each tool in palette. This won’t be fun if you need to change hundreds of object’s properties.

Let’s say you create tool palettes by importing blocks from a file. It’s a very easy task. Now let’s say you need to set all blocks to ask for rotation angle when inserted.

You need to change this properties for each block. If you have 100 blocks, then you need to do it 100 times!

block_rotation_prompt

Editing the xml file

Palettes information are stored in xml format. You can do that faster by editing the xml file in text editor.

The default location for AutoCAD 2014 is in C:\Users\USERNAME\AppData\Roaming\Autodesk\AutoCAD 2014\R19.1\enu\Support\ToolPalette\Palettes

If you use custom location, it is defined in option> file tab> tool palettes file location.

The file name should be the palette name followed by codes, in .atc (AutoCAD Tool Catalog) format.

atc_files

Some advice:

  1. Make sure you make backup of this file before you start editing it.
  2. AutoCAD must be closed when editing .atc file. AutoCAD will update the .atc file when it closed. This can revert your changes.

You can edit it using notepad or other editor like Notepad++.

You may also want to consider using XML Notepad. XML Notepad is a great way to explore the options in XML file. Thank you to John Bogaert for mentioning this!

 

Find the properties you want to change. This might be a little tricky.

The Prompt for rotation in dialog box is defined as <PromptRotation> in this xml file.

If the value is 0 then it will not ask for rotation angle. If set to 1 then it will ask you when inserting the block from palette.

To change all block properties, use find and replace tool in text editor. Use ‘replace all’ button.

find_and_replace

There you go! All the blocks in your palette will now ask for rotation angle!

A little tip

It may not be easy to find the correct code, especially if you are not familiar with html editing or programming. You may need some time to get used to it.

You can use find tool to find a keyword. If you want to change layer properties, use find tool and search for layer. If you are looking for linetype code, use it in find tool.

You may need to test the value. Yes/No in prompt for rotation dialog is written as 1/0 in xml. Try to change an object properties and see the value in xml file.

About Edwin Prakoso

I work as a Solution Consultant in Datech Solutions, Tech Data Indonesia. I've been using AutoCAD since R14 and Revit since Revit Building 9. I occasionally write for AUGIWorld magazine and I am also active in Autodesk discussion forum. I'm a member of Autodesk Expert Elite, an appreciation for individuals who give contributions to the Autodesk community.
Connect with me on twitter or LinkedIn. If you want to have my new articles sent to your email inbox, you can subscribe to the newsletter.

Filed Under: AutoCAD Tagged With: autocad tips

0 0 votes
Article Rating
Subscribe
Login
Notify of
guest

guest

This site uses Akismet to reduce spam. Learn how your comment data is processed.

0 Comments
Inline Feedbacks
View all comments
Join Our Free Email Newsletter
  Thank you for Signing Up
Please correct the marked field(s) below.
1,true,6,Contact Email,2 1,false,1,First Name,2 1,false,1,Last Name,2

Featured

running man

10 Features to Boost Your AutoCAD Productivity

AutoCAD is much more than just drawing lines and arcs. It has many features that can actually boost your productivity. Here, we list top 10 features that becomes our favorite.

Recent Articles

  • Revit 2024.1 Update is Released
  • What’s New in Revit 2024: Bending Detail
  • What’s New in Revit 2024: The Dark Theme

Advertisement

New on CADnotes

  • Revit 2024.1 Update is Released
  • What’s New in Revit 2024: Bending Detail
  • What’s New in Revit 2024: The Dark Theme
  • Autodesk Build: Using Assets for Progress Tracking
  • My Home on the ACC Unified Platform

Meet the Authors

avatar for
avatar for
avatar for
avatar for
avatar for
avatar for

Get Connected

CADnotes on FacebookCADnotes on InstagramCADnotes on TwitterCADnotes on YouTube

© 2009 – 2023 CADnotes · Feedback · Privacy Policy · Become an affiliate

wpDiscuz