明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: qcw911

LEE MAC 大师最新力作【 Batch Attribute Editor】 批量修改块属性

    [复制链接]
 楼主| 发表于 2012-2-2 18:46:27 | 显示全部楼层
myjping 发表于 2012-2-2 10:00
不错,便能说说是做什么用的吗

批量修改块的属性值
发表于 2012-2-3 09:35:01 | 显示全部楼层
大师又更新了,不错
发表于 2012-2-3 10:32:06 | 显示全部楼层
纯支持!
发表于 2012-2-3 11:50:28 | 显示全部楼层
批量修改块的属性值
发表于 2012-2-3 21:06:08 | 显示全部楼层
下载学习了        谢谢
发表于 2012-2-3 22:22:24 | 显示全部楼层
谢谢分享,下载学习
发表于 2012-2-4 09:15:21 | 显示全部楼层
谢谢分享,下载了
发表于 2012-2-4 11:00:53 | 显示全部楼层
谢谢楼主分享!
发表于 2012-2-4 17:32:13 | 显示全部楼层
qcw911 发表于 2012-2-2 18:46
批量修改块的属性值

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.

Hints and Tips!
When the dialog first appears, the Block Name field will take focus. The user can then cycle between the Block Name, Attribute Tag and Attribute Value fields by pressing 'Enter', finally adding the item to the list by pressing 'Enter' from within the Value field.
Drawing files may be added and removed to and from the left and right list box panels by double clicking on the files.
发表于 2012-2-4 17:34:09 | 显示全部楼层
好东东收藏了
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-5-18 15:31 , Processed in 0.169510 second(s), 19 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表