TuttoCAD Forum

TuttoCAD Forum
[ Home | Registrati | Discussioni Attive | Discussioni Recenti | Segnalibro | Msg privati | Sondaggi Attivi | Utenti | Album Fotografico | Download | | Cerca | FAQ ]
Nome Utente:
Password:
Salva Password
Password Dimenticata?

 Tutti i Forum
 1 - TuttoCAD Software
 AutoLISP
 Batch Attribute Editor
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
I seguenti utenti stanno leggendo questo Forum Qui c'è:
Autore Discussione Precedente Discussione Discussione Successiva  

arri
Utente Master


Regione: Lombardia


14951 Messaggi

Inserito il - 31 gennaio 2012 : 09:06:07  Mostra Profilo Invia a arri un Messaggio Privato  Rispondi Quotando
BAtteV1-0.lsp

Program Description

This program allows the user to modify the values of multiple attributes residing within multiple attributed blocks across multiple drawings.

Upon starting the program using the command syntax BAtte (Batch Attribute Editor) at the command-line, the user is presented with a dialog interface divided into two main sections: the left-hand section for input of attribute data; the right for drawing selection.

At the top of the left-hand section there are three edit boxes in which the user can input a Block Name, Attribute Tag and a new value for such attribute.

The Block Name field specifies the block in which the attribute to be modified is located. This field is not case-sensitive and may use wildcards to match multiple blocks containing the same attribute tag.

For example, specifying a Block Name: *BLOCK will match all blocks whose block name ends with BLOCK, or any case variation of that pattern.

The Attribute Tag field specifies the tag name of the attribute to be modified (Note: this is not the attribute prompt string). This field is also not case-sensitive and, as per the restrictions on attribute tag names, the attribute tag cannot contain spaces.

Finally, the Value field specifies the new content for the attribute. There are no restrictions on this field and it may be left blank if the attribute value is to be removed.

After specifying the Block Name, Attribute Tag and Value, the item may be added to the list of items to be modified by clicking the 'Add Item' button, or by pressing 'Enter' from within the Value edit box.

The list box panel in the left-hand section of the dialog displays a list of attributes to be modified by the program. Items in this list may be edited by double-clicking on them.

Multiple items may be removed from the list by selecting them and clicking the 'Remove Item' button. Or the whole list may be removed by clicking the 'Clear' button.

The list of attribute data may be exported to a CSV or Text file by clicking the 'Save to File' button and creating an appropriate file saved to a desired location using the dialog that subsequently appears.

Similarly, attribute data be loaded from a CSV or Text file by clicking the 'Load from File' button and selecting a file from the dialog that is displayed. For information about the required format of data for importing, see the section below entitled Notes on Importing Attribute Data.

The right-hand section of the dialog is dedicated to selection of drawings to be processed by the program. Here, the user may select a directory using either the 'Browse' button at the top of the dialog, or by entering a folder path into the 'Folder' edit box; then proceed to browse the files and folders within that directory from the left-hand list pane.

The folder structure may be navigated from within the left-hand list pane by double-clicking on a listed folder, or on the parent folder symbol ('..').

Drawing files may be added to the right-hand list pane by double-clicking on a file, or by selecting multiple files and clicking the 'Add Files' button. Similarly, files may be removed from the right-hand list pane by double-clicking on a file or by selecting a group of files and clicking the 'Remove Files' button.

Drawing files in the right-hand list pane are displayed using a relative path, relative to the directory that is currently selected in the left-hand list pane.

After attribute data has been entered and a number of drawings have been selected to be processed, the user may click the 'Run' button to modify the listed attributes in each of the select drawings.
Notes on Importing Attribute Data

The program will accept two file formats:
Comma Separated Value files (.csv)
Text files (.txt)

The file to be imported should have three columns for Block Name, Attribute Tag and Attribute Value (in that order). If using a Text file, the columns should be tab-delimited.

As per adding items from within the program, the Block and Tag values must be present; however, the Value item may be empty if required.

The Tag values must not contain spaces.

Items that are not in the format required by the program will be removed from the list, and the user will be notified of which items have been removed.

Duplicate items will be removed from the list. Duplicate items arise when the same block and tag combination appears more than once in the list. For these cases, the first occurrence of the item will be used

arri
Utente Master


Regione: Lombardia


14951 Messaggi

Inserito il - 07 maggio 2012 : 10:37:18  Mostra Profilo Invia a arri un Messaggio Privato  Rispondi Quotando
BAtteV1-3.lsp

1.3:  05/05/2012  -  Fixed directory sorting bug resulting from the use of   ;;
;;                       an ASCIIbetical sort causing the parent directory       ;;
;;                       symbol (..) to not appear at the top of the list when   ;;
;;                       folders beginning with characters whose ASCII code is   ;;
;;                       less than 46 are present.                               ;;
;;                                                                               ;;
;;                    -  Attribute modification module rewritten to use Visual   ;;
;;                       LISP methods, enabling processing of Multiline          ;;
;;                       Attributes and allowing the use of Field Expressions in ;;
;;                       attribute values.                                       ;;
;;                                                                               ;;
;;                    -  Added ability to use incrementing attribute values in   ;;
;;                       attribute data. If a value contains markers "<#" and    ;;
;;                       "#>", the numerical data between these markers will be  ;;
;;                       incremented by one for each drawing processed.
Torna all'inizio della Pagina
  Discussione Precedente Discussione Discussione Successiva  
 Nuova Discussione  Rispondi
 Versione Stampabile Bookmark this Topic Aggiungi Segnalibro
Vai a:
TuttoCAD Forum © 2001-2010 CADLandia Torna all'inizio della Pagina
Pagina generata in 0,27 secondi.