AutoCAD 2010/2011/2012

AutoCAD 2010/2011/2012

Reply
Contributor
21 Posts
0 Kudos
Registered: ‎02-10-2011
Post 1 of 8
Accepted Solution

Change font of named Attribute through out drawing

669 Views, 7 Replies
09-25-2012 03:47 AM

I am using Autocad Electrical and I have an attribute name INST for the installation code in multiple blocks in my drawings.  Is there a command out there that can change the font of just that attribute to Arial through out the drawing.  I do not want to change any of the other attributes and they all use the same style.

That is the case I do have multiple blocks with the same attribute name that I want to change the font on.  I have received a solution to my posting in the posting I put on the Autocad Electrica forum.  Pat Muren created a custom lisp file and script that worked like a charm.  To view the posting go to:  http://forums.autodesk.com/t5/AutoCAD-Electrical/Change-the-font-of-the-Installation-code-through-out-project/td-p/3632208

 

Thank you for assistance.

*Expert Elite*
24,312 Posts
1,605 Kudos
Registered: ‎11-06-2003
Post 2 of 8

Re: Change font of named Attribute through out drawing

09-25-2012 05:32 AM in reply to: mewescott

BATTMAN command: you may need to use ATTSYNC afterwards too.

Dean Saadallah Blog | Facebook | Google+ | Twitter | PINS
Contributor
21 Posts
0 Kudos
Registered: ‎02-10-2011
Post 3 of 8

Re: Change font of named Attribute through out drawing

09-25-2012 07:09 AM in reply to: pendean

How would you use Battman to change multiple blocks at the same time.  I tried to select several first then go into the command unfortunately it only selects one Block.  I have multiple blocks on each drawing with the same INST attribute.

*Expert Elite*
24,312 Posts
1,605 Kudos
Registered: ‎11-06-2003
Post 4 of 8

Re: Change font of named Attribute through out drawing

09-25-2012 08:19 AM in reply to: mewescott

I did not realize from your post this was the same exact attribute tag in ALL or many blocks in your file. You will need to dive into more customizing with Lisp unless someone has a freeware to do what you seek.

 

While you wait here consider also posting in the Customization Discussion area:
http://forums.autodesk.com/t5/Visual-LISP-AutoLISP-and-General/bd-p/130

Dean Saadallah Blog | Facebook | Google+ | Twitter | PINS
Contributor
17 Posts
2 Kudos
Registered: ‎05-24-2012
Post 5 of 8

Re: Change font of named Attribute through out drawing

09-26-2012 08:28 AM in reply to: pendean

Please excuse my possible ignorance (I may be misunderstanding the problem), but can't you just edit the attribute in Block Editor? Then it would redefine all the blocks in the dwg.

*Expert Elite*
24,312 Posts
1,605 Kudos
Registered: ‎11-06-2003
Post 6 of 8

Re: Change font of named Attribute through out drawing

09-27-2012 05:40 AM in reply to: Norrisc761

That's for one block at a time, the OP seems to be indicating all his blocks (A, B, C, D, E, F, G, and so on if these were block names) all have this one common shared attribute name and they do not wish to edit each block separately in each DWG file.

Dean Saadallah Blog | Facebook | Google+ | Twitter | PINS
Contributor
21 Posts
0 Kudos
Registered: ‎02-10-2011
Post 7 of 8

Re: Change font of named Attribute through out drawing

09-27-2012 10:23 AM in reply to: pendean

That is the case I do have multiple blocks with the same attribute name that I want to change the font on.  I have received a solution to my posting in the posting I put on the Autocad Electrica forum.  Pat Muren created a custom lisp file and script that worked like a charm.  To view the posting go to:  http://forums.autodesk.com/t5/AutoCAD-Electrical/Change-the-font-of-the-Installation-code-through-ou...

 

Thank you for assistance.

*Expert Elite*
24,312 Posts
1,605 Kudos
Registered: ‎11-06-2003
Post 8 of 8

Re: Change font of named Attribute through out drawing

09-27-2012 02:27 PM in reply to: mewescott

Thanks for sharing, and the follow-up.

Dean Saadallah Blog | Facebook | Google+ | Twitter | PINS
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Are you interested in helping shape the future of the Autodesk Community? To participate in this brief usability study, please click here. Your time and input is greatly appreciated!