Nested Block Data Extraction

Nested Block Data Extraction

attila_nagyNMWRC
Community Visitor Community Visitor
1,754 Views
3 Replies
Message 1 of 4

Nested Block Data Extraction

attila_nagyNMWRC
Community Visitor
Community Visitor

Hello!

I have nested blocks, with flip and visibility states.
The attributes and data needs to be extracted via code, here we use ezdxf, which is a Python library.
Unfortunately we are not bale to extract the block level, the flip and the visibility state.
It just lists this:

LAYERS:
0
LX CS Retroreflective Sensor
LX CS Diffuse Sensor
Defpoints


BLOCKS AND LETTERS:
Block: *Model_Space
Block: *Paper_Space
Block: *Paper_Space0
Block: Sensor
Attribute: ITEMCODE = 000250
Attribute: ITEMCODE = 000125
Block: *U2
Block: LX CS Diffuse Sensor
Block: LX CS Retroreflective Sensor
Block: *U5
Attribute: ITEMCODE = 123456
Attribute: ITEMCODE = 123456
Block: *U6
Attribute: ITEMCODE = 123456
Attribute: ITEMCODE = 123456
Block: *U7
Attribute: ITEMCODE = 123456
Attribute: ITEMCODE = 123456
Block: *U8
Attribute: ITEMCODE = 123456
Attribute: ITEMCODE = 123456
Block: *U9
Attribute: ITEMCODE = 123456
Attribute: ITEMCODE = 123456
Block: *U10
Attribute: ITEMCODE = 123456
Attribute: ITEMCODE = 123456
Block: *U11
Attribute: ITEMCODE = 000250
Attribute: ITEMCODE = 000125


ENTITIES IN MODELSPACE:
Entity: INSERT
handle: 569
owner: 1F
layer: LX CS Retroreflective Sensor
name: *U11
insert: (250.0, 125.0, 0.0)


METADATA:
DWG Version: AC1032
DXF Units: 4 

0 Likes
1,755 Views
3 Replies
Replies (3)
Message 2 of 4

paullimapa
Mentor
Mentor

Sounds like you need to contact the ezdxf developers to resolve this or run AutoCADs Dataextraction command which LT doesn’t support 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 4

attila_nagyNMWRC
Community Visitor
Community Visitor

Dear Paul!

 

Thank you very much for your answer!
Yes, we already did contact them, but it would be nice to know, what we need to look for.
What are the official "Attributes" or the code within DXF for Nesting Level, Flip and Visibility State?
I know about Dataextraction, but we need to automatically make it via an online upload. What would our files look like with Dataextraction?

 

Best regards
Attila

0 Likes
Message 4 of 4

paullimapa
Mentor
Mentor

With Dataextraction it can be a csv file which is like a text file

https://forums.autodesk.com/t5/dynamic-blocks-forum/data-extraction-based-on-shown-visibility-state/...

 

If you’re running LT 2024 there might be lisp routines that may also fit your needs

https://www.theswamp.org/index.php?topic=32825.0


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes