Visual LISP, AutoLISP and General Customization

Visual LISP, AutoLISP and General Customization

Reply
*Wang, Weslley
Message 1 of 6 (57 Views)

How to change the size of a Attribute in a block

57 Views, 5 Replies
12-01-2000 03:35 AM
Hello:
I want to enlarge a Attribute's size in a block. I change it in a seperate
drawing and insert it back with same to overwirte the existed one. It does
not work. I make some test:
1. I add a circle in my drawing, when I insert it back, it Do update all
my block with adding a circle
2. when I add one more attribute, it DO NOT update my block with adding a
attribute

Is any way I can do to change the size of attribute in a block?
Thanks in advance

Wes
*Heigh, Bill
Message 2 of 6 (57 Views)

Re: How to change the size of a Attribute in a block

12-01-2000 04:06 AM in reply to: *Wang, Weslley
The attribute definition in the BLOCK table is for newly created blocks
only. To change attributes in existing inserts of a block you have to get to
the subentity of each instance of the block you want to change.
Unfortunately there is no way to update them all globally (that I know of).

Fortunately though, once you work out the mechanics of changing them, it's
fairly easy to automate the routine to do the rest of the blocks.

After retrieving the name (ename for instance) of the block, just use
(entnext ename) to get the name of the first subentity of the block. You
have to step through all the graphic entities and check for ATTDEF types,
change the scale of each attribute, then Entmod the block when you're done.

Not fun, but not rocket science either.

Good luck, Bill

--
remove the dashes to email me
Weslley Wang wrote in message
news:AA703E619E34F78259F4C1C01FC91029@in.WebX.SaUCah8kaAW...
> Hello:
> I want to enlarge a Attribute's size in a block. I change it in a
seperate
> drawing and insert it back with same to overwirte the existed one. It does
> not work. I make some test:
> 1. I add a circle in my drawing, when I insert it back, it Do update all
> my block with adding a circle
> 2. when I add one more attribute, it DO NOT update my block with adding
a
> attribute
>
> Is any way I can do to change the size of attribute in a block?
> Thanks in advance
>
> Wes
>
*Tovar, Rudy
Message 3 of 6 (57 Views)

Re: How to change the size of a Attribute in a block

12-01-2000 04:12 AM in reply to: *Wang, Weslley
Yes.

Would you be interested in trying a new utility I've developed.

2000 or R14?

Will be available on my site, soon.

Care to try it out?

--
rudy@cadentity.com
Practical Utilities for Productive Solutions

Weslley Wang wrote in message
news:AA703E619E34F78259F4C1C01FC91029@in.WebX.SaUCah8kaAW...
> Hello:
> I want to enlarge a Attribute's size in a block. I change it in a
seperate
> drawing and insert it back with same to overwirte the existed one. It does
> not work. I make some test:
> 1. I add a circle in my drawing, when I insert it back, it Do update all
> my block with adding a circle
> 2. when I add one more attribute, it DO NOT update my block with adding
a
> attribute
>
> Is any way I can do to change the size of attribute in a block?
> Thanks in advance
>
> Wes
>
*Johnson, Steve
Message 4 of 6 (57 Views)

Re: How to change the size of a Attribute in a block

12-03-2000 09:30 PM in reply to: *Wang, Weslley
Depending on your exact requirements, you may find the ATTREDEF command does
what you want. There's a version in the Download section of the cad nauseam
site (URL below) with several of the Autodesk bugs fixed.

Alternatively, you can scale attributes by wildcard using my DDChText
shareware (same location).

--
Steve Johnson
cad nauseam - http://www.users.bigpond.com/stevejohnson/
CADLock - http://www.cadlock.com/
Cadalyst - http://www.cadalyst.com/exclusive/bugs/bugwatch.htm
*Allen, Dan
Message 5 of 6 (57 Views)

Re: How to change the size of a Attribute in a block

12-06-2000 08:19 AM in reply to: *Wang, Weslley
Try the attached file:

C:REPLACE - (block replace) - v10.4 - (c) 1990 Richard D. Howard

"Weslley Wang" wrote in message
news:AA703E619E34F78259F4C1C01FC91029@in.WebX.SaUCah8kaAW...
> Hello:
> I want to enlarge a Attribute's size in a block. I change it in a
seperate
> drawing and insert it back with same to overwirte the existed one. It does
> not work. I make some test:
> 1. I add a circle in my drawing, when I insert it back, it Do update all
> my block with adding a circle
> 2. when I add one more attribute, it DO NOT update my block with adding
a
> attribute
>
> Is any way I can do to change the size of attribute in a block?
> Thanks in advance
>
> Wes
>
*Young, Darren J.
Message 6 of 6 (57 Views)

Re:

12-06-2000 11:47 PM in reply to: *Wang, Weslley
> The attribute definition in the BLOCK table is for newly created blocks
> only.

Or read-only attributes.

--
Y-------------------------------------------------------------------+
| Darren J. Young | Minnesota CADWorks, Inc. |
| dyoung@mcwi.com | P.O. Box 7293 |
| ftp://ftp.mcwi.com | St. Cloud, Minnesota 56302-7293 |
| http://www.mcwi.com | Phone 1-320-654-9053 |
| CAD/CAM/CNC - Drafting Design Customization Training Programming |
0,0-----------------------------------------------------------------X
Support the amendment to ban commercial unsolicited Email (SPAM) To
join the fight, visit -> http://www.cauce.org/

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community