Nested Block Data Extraction
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
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