这是indexloc提供的服务,不要输入任何密码
Skip to content

Can't iterate entities in certain block #1199

@mlightcad

Description

@mlightcad

I use libredwg-web to read the attached dwg file. Zero entities returned for block named 'L9zhcz'. I debugged into code and found 'zero' retuned when calling get_first_owned_entity.

    let next = libredwg.get_first_owned_entity(obj);
    while (next) {
        const entity = converter.convert(next);
        if (entity) {
            entity.ownerBlockRecordSoftId = ownerHandle;
            entities.push(entity);
        }
        next = libredwg.get_next_owned_entity(obj, next);
    }
    return entities;

L9zhcz.zip

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions