Nate Holt's Blog

February 10, 2010

Align Attribute utility

Filed under: Tips — nateholt @ 10:18 am

Pick master attribute and then pick one or dozens of other attributes from multiple block instances to align with it.

Steve Kemp responded to a user request on the AutoCAD Electrical discussion group by developing this cool little utility. He passed it on to me for posting here.

Here is an example of how it might be used. Let’s say that you have a column of terminal block inserts that are wired to a PLC module block insert. But, for this one drawing, you’d like to relocate one of the attributes to the left-hand side of each terminal block instance.

Here’s how to do it with Steve’s tool. First, use normal AutoCAD grips to position the attribute of one instance to the desired position.

Next, APPLOAD Steve’s little AutoLISP utility here. Type AATTR [Enter] at the command line.

Now pick on the one relocated attribute. Choose “vertical” alignment (default).

Hit [Enter]… and there you go! Everything neatly aligned with the master.

Current limitations: as written, the utility does not process attributes that are set to “FIT” or “ALIGN” justification.

About Steve Kemp… in addition to applications development (contact him at skiflea@mchsi.com), Steve likes to surf. Though trapped in the heartland of the US, if he loads his boat down with 1600 or so pounds of dead weight so that it sits low in the water and then drives 9-11 MPH, it will throw up a wake large enough to surf!

About these ads

2 Comments »

  1. In Vista, where must the .lsp file be copied to?

    Comment by Evan — February 11, 2010 @ 1:37 am

    • It can be copied anywhere. But to make it easier to find when you APPLOAD it, it might be convenient to put it into whatever folder is default when the APPLOAD dialog pops up. Type APPLOAD [Enter] at your “Command:” prompt. Look at what the default search folder is. They copy the lisp file into this folder.

      Comment by nateholt — February 11, 2010 @ 8:59 am


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

The Shocking Blue Green Theme Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.

Join 25 other followers

%d bloggers like this: