INSERT entity with xClip: copied instances have identical xClip data (except handle), how to compute actual clipping box coordinates?

Open
#770 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 3 days

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
csharp
Domain
backend

Research direction

Start by examining the library's handling of INSERT entities and the xClip (SpatialFilter) data, especially Origin, BoundaryPoints, InsertTransform, and InverseInsertTransform. Compare those values for the original and copied INSERTs in the attached example drawing. The issue is resolved when the actual clipping-box coordinates can be derived from the stored data.

Written by the indexing model from the issue text.

Description

Thank you Dom, the new version has added support for the xClip data (SpatialFilter) of INSERT entities. However, I have a few questions when using it:

I created an INSERT entity with xClip data in AutoCAD, and then copied it. When reading the drawing, I noticed that the xClip data of the two INSERTs is almost identical — the only difference is the handle. Other properties such as Origin, BoundaryPoints, InsertTransform, and InverseInsertTransform are the same.

How can I calculate the actual coordinates of the clipping box from this data?

Image Image
Dominant language
C#
Stars
873
Forks
223
Avg merge
1d 15h
Merged PRs (30d)
28

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from DomCR/ACadSharp

All issues in DomCR/ACadSharp

Similar issues

More C# issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.