The program is designed to run when loaded and may be added to either the Startup Suite or ACADDOC.lsp to enable titleblocks to be automatically updated upon opening a drawing or running a script. Consequently, when a drawing is opened, a CSV Drawing Register may be selected or automatically read by the program, and titleblock attributes are updated using values corresponding to the drawing entry in the register.
The CSV Drawing Register should take the following format: DWG [Layout] TAG1 TAG2 ... TAGN Drawing1.dwg Layout1 Value1 Value2 ... ValueN Drawing1.dwg Layout2 Value1 Value2 ... ValueN Drawing2.dwg Layout1 Value1 Value2 ... ValueN ...
An example of a CSV Drawing Register demonstrating the above format is available for download from the link at the top of this page.
When the program is run: if the drawing name (with extension) appears in the first column of the CSV Drawing Register, attributes with tags corresponding to the column headings will be updated with values from the row in which the Drawing filename resides.
The 'Layout' column is optional; if present in the CSV Drawing Register, the flag at the top of the code must be set, else the 'Layout' column will be treated as another attribute tag. If the 'Layout' column is used, titleblock attributes will be updated for each layout in a row associated with the Drawing filename.
A block filter is also included in the settings at the top of the code so that the user may opt to update specific blocks within drawings. This block filter may use wildcards, i.e. "*BORDER". If nil or set to "*", all blocks with attribute tags equal to the column headings in the CSV Drawing Register will be updated with the corresponding values.
1 U L T I M E R I S P O S T E (in alto le più recenti)