Skip to content
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

MultiLeader.EnableDogleg always true #273

Open
Tracked by #292
mme1950 opened this issue Feb 6, 2024 · 0 comments
Open
Tracked by #292

MultiLeader.EnableDogleg always true #273

mme1950 opened this issue Feb 6, 2024 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@mme1950
Copy link
Contributor

mme1950 commented Feb 6, 2024

The MultiLeader.EnableDogleg property indicates whether the multilieader is to be drawn with or without a dogleg aka landing distance.

The two bits that represent the boolean values EnableLanding (DXF 290) and EnableDogleg (DXF 291) should follow LeaderLineWeight (DXF 171) and should be followed by LandingDistance (DXF 41).

Between LeaderLineWeight and LandingDistance 16 additional undocumented bits are found.

A call of _objectReader.Advance(2) after reading EnableLanding and EnableDogleg synchronizes after this "gap" so that LandingDistance is read correctly.

Obviously _objectReader.Advance(2) must be called before reading EnableLanding and EnableDogleg to obtain correct values of EnableLanding and EnableDogleg.

We will fix this issue and open a PR.

@mme1950 mme1950 added the bug Something isn't working label Feb 6, 2024
This was referenced Feb 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant