8000 Trouble handling Insert entity (DWG) · Issue #579 · DomCR/ACadSharp · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Trouble handling Insert entity (DWG) #579

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
AntonRSkytech opened this issue Mar 12, 2025 · 2 comments
Open

Trouble handling Insert entity (DWG) #579

AntonRSkytech opened this issue Mar 12, 2025 · 2 comments
Assignees
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed

Comments

@AntonRSkytech
Copy link

Im trying to import a dwg file but i only get 1 entity that is a Insert object.

When loading a dwg file that only contains a single Insert entity. I can´t seem to find more entities in the Insert object.
Is it possible to access nested entities in this object?

case ACadSharp.Entities.Insert:
    {
        ACadSharp.Entities.Insert insert = (ACadSharp.Entities.Insert)entity;

        foreach (var item in insert) 
        { 
             // Logic here
        }
    }
    break;
@DomCR
Copy link
Owner
DomCR commented Mar 12, 2025

Hi @AntonRSkytech,

An Insert is a reference to a BlockRecord, to access the entities in it you have to access the block properties:

Insert.BlockRecord.Entities

Hope this helps!

@DomCR DomCR added the help wanted Extra attention is needed label Mar 12, 2025
@AntonRSkytech
Copy link
Author

@DomCR , Thank you for the fast response. Yes it helped very much.

Thanks again!

@DomCR DomCR added the documentation Improvements or additions to documentation label Mar 13, 2025
@DomCR DomCR self-assigned this Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation help wanted Extra attention is needed
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

2 participants
0