ATTEXT GIVE 0 RESULTS IN OUTPUT FILE

ATTEXT GIVE 0 RESULTS IN OUTPUT FILE

felix9
Community Visitor Community Visitor
567 Views
1 Reply
Message 1 of 2

ATTEXT GIVE 0 RESULTS IN OUTPUT FILE

felix9
Community Visitor
Community Visitor

ATTEXT only pulls block name and attributes from regular blocks, when I try to extract block name or attributes from a dynamic block I only get empty lines.  (See Attached files). 

 

However, in another post, it was indicated, the attributes can be retrieved from dynamic blocks. 

https://forums.autodesk.com/t5/autocad-lt-forum/extract-attext-dynamic-block-custom-attributes/td-p/....

 

Need help clarifying / how to extract attribute information from dynamic blocks using ATTEXT. 

 

 

PS: Got the DWG file from this post, and added my dynamic block to it.  ATTEXT extracts the data (block name) from the original block without an issue, but the dynamic block only returns an empty line. 

 

https://forums.autodesk.com/t5/autocad-lt-forum/getting-empty-txt-properties-and-attributes-extracti...

thanks in advance for your help 

0 Likes
568 Views
1 Reply
Reply (1)
Message 2 of 2

cadffm
Consultant
Consultant

Hi,

 

>>ATTEXT GIVE 0 RESULTS IN OUTPUT FILE
 
If you select the dynamic blockreference ONLY - yes, otherwise you get 10 results
 
 

>>"ATTEXT only pulls block name and attributes from regular blocks,"

No

 

>>"(See Attached files)"

There is no dynamic blockreference witth an attribut named "DOWNLIGHT", that's the problem (your template will extract data from DOWNLIGHT attributes only).

Template:

cadffm_1-1717397198093.png

dynamic blockreference

cadffm_0-1717397173067.png

 

 

>>"However, in another post, it was indicated, the attributes can be retrieved from dynamic blocks. "

And that'S right.

You won't see the usual blockname (for blockreferences you had changed dynamic parameter values), but the data will extract.

Because of this: In LT2023 or older (you are using LT2023?, because that's the only reason why you should use ATTEXT, otherwise you have better features to extract and import attribut data)

For LT2023 and older, I added an attribut with the block-name, this way I was abler to extract blocknames of dynamic blocks too.

 

>>"Need help clarifying / how to extract attribute information from dynamic blocks using ATTEXT. "

The same way as standard block, nothing special.

 

 

 

 
 
 
 
 

Sebastian

0 Likes