Тема: Как распечатывать данные спрятанные в атрибутах?
Возможно ли распечатывать данные спрятанные в атрибутах, если да, то как.
Заранее благодарен.
Информационный портал для профессионалов в области САПР
Вы не вошли. Пожалуйста, войдите или зарегистрируйтесь.
Форумы CADUser → Приемы работы → Печать → Как распечатывать данные спрятанные в атрибутах?
Страницы 1
Чтобы отправить ответ, вы должны войти или зарегистрироваться
Возможно ли распечатывать данные спрятанные в атрибутах, если да, то как.
Заранее благодарен.
А почему бы не экспортировать их в какой-нибуть файл? Например в .xls?
Подробности см. в статье про атрибуты на www.cadburg.by.ru
Уменя R 14
В Helpе посмотрел набрал команду ddattext, вывалилось окно
извлечение атрибутов.
Атрибуты выбрал, а затем надо выбрать файл шаблона, нажал на кнопку увидел папки ACADa.
Как его выбрать и вообще есть ли он?
По существу куча блоков и везде по 4 атрибута.
Его надо писать самому типа такого:
BL:NAME C004000
BL:NUMBER N003000
BL:ZSCALE N005000
PLACE C030000
Ребята к сожалению в это не врубаюсь.
Где в нете можно поднатаскаться.
Зачем в "нете"? Надо просто прочитать любую книгу. Или help.
Что касается экспорта атрибутов указанным способом, то это устаревшая технология, сохраняеая для совместимости с ранними версиями Автокада. Когда не было средств разработки. Не очень надежна (лишний пробел в шаблоне может все испортить). Но, в простых случаях, может пригодиться.
Сейчас это лучше делать не очень сложными Lisp-программами, выводя данные в требуемом формате, в базу данных и т.п.
The extraction template file contains all of the information associated with attribute tags, such as part name, model number, cost, or supplier, as shown in the illustration of blocks with attributes (see Working with Attributes). After you create a template file, AutoCAD uses that file to determine what attribute information to extract from the drawing. Example of template file information
Attribute tag (C)haracter or
(N)umeric data Maximum field length Decimal
places
Type C 040 000
Manufacturer C 006 000
Model C 015 000
Cost N 005 003
Each field in the template file extracts information from the drawing. Each line in the template file specifies one field to be written in the attribute information file, including the name of the field, its character width, and its numerical precision. Each record of the attribute information file includes all the specified fields in the order given by the template file.
The following template file displays the 15 possible fields.
BL:LEVEL Nwww000 (Block nesting level)
BL:NAME Cwww000 (Block name)
BL:X Nwwwddd (X coordinate of block insertion point)
BL:Y Nwwwddd (Y coordinate)
BL:Z Nwwwddd (Z coordinate)
BL:NUMBER Nwww000 (Block counter; same for minsert)
BL:HANDLE Cwww000 (Block handle; same for minsert)
BL:LAYER Cwww000 (Block insertion layer name)
BL:ORIENT Nwwwddd (Block rotation angle)
BL:XSCALE Nwwwddd (X scale factor)
BL:YSCALE Nwwwddd (Y scale factor)
BL:ZSCALE Nwwwddd (Z scale factor)
BL:XEXTRUDE Nwwwddd (X component of block extrusion direction)
BL:YEXTRUDE Nwwwddd (Y component)
BL:ZEXTRUDE Nwwwddd (Z component)
numeric Nwwwddd (Numeric attribute tag)
character Cwww000 (Character attribute tag)
The template file can include any or all of the BL:xxx field names listed. The template file must include at least one attribute tag field. The attribute tag fields determine which attributes, hence which blocks, are included in the attribute information file. If a block contains some, but not all, of the specified attributes, the values for the absent ones are filled in with blanks (if characters) or zeros (if numeric). Block references that do not contain any of the specified attributes are excluded from the attribute information file. Each field can appear no more than once in the template file.
The comment fields should not be included in the template file.
Страницы 1
Чтобы отправить ответ, вы должны войти или зарегистрироваться
Форумы CADUser → Приемы работы → Печать → Как распечатывать данные спрятанные в атрибутах?
Форум работает на PunBB, при поддержке Informer Technologies, Inc