Skip to content

Ole2Frame coordinates (UpperLeftCorner, LowerRightCorner) not written to DWG #966

@psitkei

Description

@psitkei

Description:

When exporting an Ole2Frame entity to DWG format, the UpperLeftCorner and LowerRightCorner properties are not written to the file. The OLE object appears in the DWG but at incorrect position (0,0).

Steps to reproduce:

Create a new CadDocument
Add an Ole2Frame entity with specific UpperLeftCorner and LowerRightCorner values
Save as DWG using DwgWriter
Open the DWG in AutoCAD or TrueView
The OLE object appears at (0,0) instead of the specified coordinates
Expected behavior:
The OLE object should appear at the coordinates specified by UpperLeftCorner and LowerRightCorner.

Environment:

ACadSharp version: 3.0.8
.NET version: 8.0

Workaround:

Currently converting OLE objects to RasterImage (IMAGE entity) for export, which correctly preserves the position.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions