haplokuon / netDxf

.net dxf Reader-Writer
MIT License
1.01k stars 411 forks source link

Hi,how to read the insert's clip boundary? #433

Closed wolfsky7 closed 1 year ago

wolfsky7 commented 1 year ago

image clip2.zip

DavidWishengrad commented 1 year ago

Hi, Have you done a search in the TestDxfDocument for boundary? There are several examples of creating hatch boundaries. Maybe the block does not have one assigned? Creating a clip and adding one to a block can be combined, but are separate.

You can always fall back on exploding the block (insert) and parsing the entities it contains and read the data that way.

Your dxf does not open for me: Unknown value "AC1032" encountered in drawing version. Invalid or incomplete DXF input -- drawing discarded.

wolfsky7 commented 1 year ago

Thank you for your reply. I readed the examples,but It's not hatch boundaries.Can't find the clip data when i explode the insert. it is created by these steps: 1.Input the Command "Clip" in the cmmand line 2.choose the insert; 3.draw a path。

In Dwg Format can read it by the link

DavidWishengrad commented 1 year ago

Perhaps NetDXF does not support that?

On Fri, Feb 10, 2023 at 3:52 PM wolfsky7 @.***> wrote:

Thank you for your reply. I readed the examples,but It's not hatch boundaries.Can't find the clip data when i explode the insert. it is created by these steps: 1.Input the Command "Clip" in the cmmand line 2.choose the insert; 3.draw a path。

In Dwg Format can read it by the link https://help.autodesk.com/view/OARX/2021/ENU/?guid=GUID-72029044-0840-4187-9A58-F2A4518E3A23

— Reply to this email directly, view it on GitHub https://github.com/haplokuon/netDxf/issues/433#issuecomment-1426504128, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABINBYABBTUTB2GAR5DX5WTWW3ID5ANCNFSM6AAAAAAUXQZLTE . You are receiving this because you commented.Message ID: @.***>

haplokuon commented 1 year ago

You cannot, not implemented. The data generated by the AutoCad's CLIP command is stored as a SPATIAL_FILTER deep inside the poorly documented OBJECTS section, just like a plethora of other features.

wolfsky7 commented 1 year ago

plethora

Thanks for your reply.