Data extraction does not return the correct value of an attribute.

Data extraction does not return the correct value of an attribute.

rmarsillo
Contributor Contributor
731 Views
3 Replies
Message 1 of 4

Data extraction does not return the correct value of an attribute.

rmarsillo
Contributor
Contributor

I am hoping someone can give me a hand with data extraction.  I am trying to extract the information contained in multiple attributes that are part of a block (a drawing title block) for all drawings contained in a folder.

 

I’ve managed to get this to work to a certain extent.   The issue I’m running into is when I have drawing files with multiple tabs (drawing sheets).   I have one attribute, that is part of the block being extracted, that contains a diesel expression ‘$(substr,$(getvar,ctab),15)’.  It extracts correctly if the drawing file only contains one tab (one drawing sheet), but if the drawing file contains more than one tab the value of that attribute is the same for each instance of the block’s extraction.  The only way I can get this attribute to extract correctly is if I open the drawing files that contain multiple tabs (drawing sheets) and physically activate each and every tab at least once.  Meaning, I have to cycle through the tabs, prior to performing the data extraction.

 

Is there a setting or something that can be done or performed to get this attribute to update prior to being extracted?

 

Thanks

 

0 Likes
Accepted solutions (1)
732 Views
3 Replies
Replies (3)
Message 2 of 4

pendean
Community Legend
Community Legend
share DWG file(s) and your progress if you want help with it, provide details to replicate.
0 Likes
Message 3 of 4

JTBWorld
Advisor
Advisor

That is how it works. Even with our JTB BatchAttEdit app it is the same thing. We could solve it for our app, if interested contact us. 


Jimmy Bergmark
JTB World - Software development and consulting for CAD and license usage reports
https://jtbworld.com

0 Likes
Message 4 of 4

rmarsillo
Contributor
Contributor
Accepted solution

I managed to come across an AutoLISP routine from LEE MAC, 'LayoutFieldV1-0.lsp', that did the trick.

0 Likes