Edit properties of multiple nested attributes in multiple drawings

Edit properties of multiple nested attributes in multiple drawings

Anonymous
Not applicable
980 Views
6 Replies
Message 1 of 7

Edit properties of multiple nested attributes in multiple drawings

Anonymous
Not applicable

I have thousands of drawings that contain 1-10 blocks each. Each of those blocks has an attribute inside it with a value that is specific to that block.  What I'm needing to do is edit the text style of the attributes in each of those blocks for all the drawings I have at once.  Is this even possible or am I approaching this wrong?  Maybe it could be done with ScriptPro or a batch file?

 

 

0 Likes
981 Views
6 Replies
Replies (6)
Message 2 of 7

pendean
Community Legend
Community Legend

EDIT: STYLE command in each DWG file is all you need to change the font in use, as long as you know the text style name and your "to" font name.


0 Likes
Message 3 of 7

Anonymous
Not applicable

What if the text style does not exist in the drawing?

0 Likes
Message 4 of 7

dlanorh
Advisor
Advisor

This may be possible using ODBX, but your description is a bit sketchy. Do you want to change the text style of of all the attributes in all the blocks, or just some of the blocks. As to the text style not existing just create it before changing the attributes.

 

Look here for an explanation examples and wrapper code http://lee-mac.com/odbxbase.html

I am not one of the robots you're looking for

0 Likes
Message 5 of 7

pbejse
Mentor
Mentor

 


@dlanorh wrote:

This may be possible using ODBX..


 

ODBX is good and all [ I use it all the time ] BUT,  be aware it has a known bug when dealing with ATTRIBUTES, specifically the position of the string. most notable when changing the text content. and you may need to run ATTSYNC.

 

Depending on what you want done, I suggest SciptPro instead. 

 


@dlanorh wrote:

but your description is a bit sketchy.


 

True, @Anonymous please tell us more.

pBe

 

 

 

0 Likes
Message 6 of 7

dlanorh
Advisor
Advisor

@pbejse wrote:

 


@dlanorh wrote:

This may be possible using ODBX..


 

ODBX is good and all [ I use it all the time ] BUT,  be aware it has a known bug when dealing with ATTRIBUTES, specifically the position of the string. most notable when changing the text content. and you may need to run ATTSYNC.

 

Depending on what you want done, I suggest SciptPro instead. 

 


@dlanorh wrote:

but your description is a bit sketchy.


 

True, @Anonymous please tell us more.

pBe

 

 

 


It would appear he wants to change attribute text styles, and the text style may not be present in the drawing..

 So at worst : create Text style => iterate block table => iterate block => attribute found => change text style

                         

 



I am not one of the robots you're looking for

0 Likes
Message 7 of 7

Anonymous
Not applicable

Sorry for my slow response, but yes, change the text style of all attributes in a specified drawing regardless if they are nested inside another block or not.  The text style I want to go to does not exist in the drawing. So I would need something that would open the drawing, create the new text style, find all attributes, change to new text style, run ATTSYNC, purge, zoom extents, save and close.  I literally have thousands of drawing files to update. I have a dedicated computer I can run remotely to run the scripts or lisps on. I still think it will take about a week to run all of these. LOL

0 Likes