Edit

RENOMCOD_MANTENIENDO_ATRIBUTOS

Replace a code on all entities bearing it while retaining the replaced code's database table and record.

Parameters

Parameter number Description Values Optional
1 Source code Code No
2 Target code Code No

For example, RENOMCOD_MANTENIENDO_ATRIBUTOS=A B.

Notes

Replace the source code with the target on all entities bearing it. The new code retains the replaced code's table and record. Other entity codes are unchanged.

Open the drawing file without a database connection before running: this prevents Digi3D.AI from attempting to save database information when adding new entities.

If there are not exactly two parameters, sound the error tone and display a dialog box explaining the reason and usage.

This command is Python script renomcod_manteniendo_atributos.py from ComandosDigi3DPython. Digi3D.AI installs it in OrdenesPython inside its installation folder. To modify it, copy the file to the macro directory and edit the copy: Digi3D.AI runs it instead of the installed file.

Rename a code while retaining its attributes explains the code.

Command characteristics

Command type Immediate command
Repeats automatically No
Menu option This command has no associated menu option
Toolbar This command has no associated toolbar button
Extension renomcod_manteniendo_atributos.py
Implementation Python
Source code renomcod_manteniendo_atributos.py
Related variables No related variables
Related commands RENAMCOD
PREFIJA_COD