how to edit attributes in several blocks together?
anyone ?
Comments
-
Hi Yuval,
If you would like to know of a solution using a third-party add-on tool, you can take a look at the global attribute editor in GeoTools, available for Bricscad.
http://www.4d-technologies.com/geotools/manual/block_tools.htm#ATTEDIT
Regards
Rakesh Rao
http://www.coordsys.com0 -
Hi Yuval,
I think you can use the Bricscad command Search and Replace from the Edit Pulldown-Menu.
Regards
Mustafa Kocatürk
below software GmbH0 -
Does anyone know how to change an attribute NAME in Bricscad V11.4.4-1?
0 -
Hi Arthur,
you can just double click on the attibute and change it in the dialog?
Regards
Mustafa Kocatürk
below software GmbH0 -
Hi Athur,
If you want to change the attribute tag name, which I what I think you are asking about, you can use the GT_TAGREN command in GeoTools to do it:
http://www.4d-technologies.com/geotools/manual/block_tools.htm#TAGREN
The GT_TAGREN command is used to rename block attribute tags, defaults and prompts. While renaming tag names, the command ensures that any repositioned attributes (moved manually from their default locations) will be retained at their existing locations.
If there is any other way in Bricscad to do it, I would like to know.
Regards
Rakesh Rao
www.coordsys.com0 -
The Attribute Value can be changed by double click the Attribute but what is requested by the user is to change the Attribute NAME.
Does nyone know how to do it?
0 -
You can Refedit the block. Once inside refedit double clicking on an attribute brings up a box with its Tag, Prompt and Default values editable.
That seems to work for all repetitions of the same block, but my past efforts to globally change say the size, colour or layer of attributes only stuck for the one block I did it on. I don't know if that's intended behaviour.
0 -
Basically attributes have a very loose relationship with their parent insert. Yes, they belong to their parent entity, but using a program it is possible to remove attributes from or add attributes to any insert. You can even add attributes to an insert that has no attributes defined in its block definition. This is intended behaviour.
- Changing a tag in the block definition does not update attributes belonging to existing inserts of that block.
- The prompts are stored with the block definition and will displays correctly for existing attributes, provided their order and tags match up with the attributes in the definition.
- The default values in the block definition are of course replaced by user input for attributes in the drawing.
@ Arthur Gan: Attributes don't have names, they have tags. And as Rakesh Rao mentioned tags can only be changed programmatically.0 -
Below is my lisp for globally changing a common value in attributes. It is based on picking old and new values as text entities on screen, because it's part of a multi step routine I use for schedules. It's not terribly clever, you can do it now using Find, but before that using Attedit globally was like using Edlin.
(DEFUN c:CHATT (/ a b c d)
(SETVAR "CMDECHO" 0)
(setq a (car (entsel "\nPick Old Text: ")))
(setq b (car (entsel "\nPick New Text: ")))
(setq c (cdr (assoc 1 (entget a))))
(setq d (cdr (assoc 1 (entget b))))
(if (/= c d)(command "attedit" "n" "n" "" "" "" c d))
(command "change" a "" "" "" "" "" "" d)
)0 -
Whew... there's a flashback :-) EDLIN on DOS and ed on Unix... just nasty. I sure was happy to learn about vi and emacs.
0 -
Rakesh,
Do you have any tool(s) that will edit attributes in a block contained in several drawings? I know you have a "global" tool but isn't that for a single drawing? I'm trying to find a tool that will speed up the process of updating info on a standard titleblock over a multitude of drawing files. We work in model space and sometimes a project can be (50) sheets long - each sheet being a single drawing file so updating page numbers, company name and etc. can be tedious.
Any suggestions would be welcome, thanks.
0 -
Hi Tim,
Many, if not all, of the GeoTools commands are script-compatible. Which means that you can setup a SCRipt file to open a DWG, call the GeoTools command, specify the parameters on the command line and do the processing automatically, save the drawing and exit AutoCAD. I can see that the GT_ATTEDIT command is also one of them which are script-compatible. You will need to specify the required parameters on the command line and let it do its work. We implement command-line script support for GeoTools commands on a per-client as needed basis. If you encounter difficulties with the running of any GeoTools command in command-line mode, let me know and we can help fix.
Before you run the script, you will need to create a BATch file which will launch AutoCAD, open the DWG and run the script.
http://www.4d-technologies.com/geotools/manual/miscellaneous_tools.htm#BATCHPROCESS
If you can do all this, you are ready to process multiple drawings.
Let me know if you need help with any of the procedures.
Regards
Rakesh Rao
http://www.coordsys.com0 -
Thanks Rakesh, I'll look into the tools and see what happens.
0