• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

change text style to an attribute of several blocks

  • Thread starter Thread starter ginopizza
  • Start date Start date

ginopizza

Guest
Hi.

are looking for a solution to change the text style of an attribute present in many blocks with different name , use autocad electrical 2015.
the purpose is to associate a text style with true type font to an attribute so that a file can be generated
pdf with the possibility to perform a text search of the attribute itself.
the problem is about a multifoil dwg file where the attribute appears in several dozen blocks with different names and placed on
different layers is therefore important to be able to do a text search in pdf consisting of dozens of sheets.
Do you have any suggestions?
 
command chgatts, insert name tag and text style (previously defined with style), select the blocks and confirm.
there are other commands, always related to the management of attributes, look at the file lisp.
 

Attachments

to me at the request tag does not accept strings (requires numeric value. - Lisp response)
 
you are right, add to the head of the file lisp:
(setq rpnometag ") or download the new attachment

bye
 

Attachments

Hello rpor 66

the lisp works great , I only have one problem , the file I have to deal with is composed of about 40 p.m. and to select the blocks with the attribute to change I have to pass all the individual sheets.
Would it not be possible to extend the command to all blocks of all sheets of the drawing?.
I thank you again for the lisp you put to disposal I find it very useful.
question , but there are no other ways to make possible the search for text on pdf files generated by autocad? is it really necessary to convert all fonts into true type ?

Good evening
 
chgatts_ml changes text style in all blocks of all layouts

bye
Good morning to all,
are little more than a neophyte both autocad and, most of all, the use of lisp.
I tried to use that in object to change the attributes of different blocks in a drawing, but I did not take a spider from the hole.

would you tell me more precisely what I have to include to the "tag" and "style" requests?

I tried dozens of times, even changing the text style but I can't get out.

Thank you all!
 
the tag is the name or label of the attribute (attention is casesensive and differentiates between uppercase and lowercase)
style is the style of text
 
the tag is the name or label of the attribute (attention is casesensive and differentiates between uppercase and lowercase)
style is the style of text
Thank you very much, very kind.
only a clarification (magari stupid): If I want the attributes to acquire the style that I called blocks, when he asks me style I have to type "blocks"?

or automatically take the style set at that time in the drawing?
 
to ask is lawful, but to make a test, as I did that until this morning I had never used the lisp, it is not a sin.
However when the command line is required if there is a value between the symbols < > by sending it is taken that value otherwise you have to edit it (choose it between the options if there are)
 
Good morning guys, really very useful this lisp, thank you!
But I wanted to allow myself to exhume this discussion to ask:
Is it possible besides the text to change the attribute layer? It is something that makes me go wild, when I get a drawing with infinite blocks with the attributes of layers not mine and different from those of the block.

Is it possible? I attach image of example.
 

Attachments

  • Annotazione 2020-01-14 101106.webp
    Annotazione 2020-01-14 101106.webp
    17.6 KB · Views: 18
solved

Sorry, I solved, in the second tab that I opened after this discussion, in which I certainly did not think there was the solution because written by autodesk, I found the solution.
practically the solution unfortunately or fortunately, almost completely eliminates the need for this lisp.http://help.autodesk.com/view/acdlt/2016/ita/?guid=guid-889213da-a3af-4020-89f0-1e5049ad26ecin brief:
from ribbon go on - insert - box "definition of a block" - handle attributes
or more quickly using the "battman" quick command

from there will open the block attributes management window, here they change the attributes in future blocks, to apply the changes also to the already inserted blocks: settings (low left) and check the last box "applies changes to existing attributes".

to change an attribute double click on it or select it and click "change", from there you can change the data, text options and properties (layer, line type, color, line thickness and print style).

good continuation and thanks as always.
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top