Skip to content

Commit

Permalink
Merge pull request #216 from mme1950/20231201_mme_9-dimension-fliparr…
Browse files Browse the repository at this point in the history
…ow1-group-code-74-and-fliparrow2-group-code-75-not-read

#215 Dimension: FlipArrow1 (group code 74) and FlipArrow2 (group code 75) not read
  • Loading branch information
DomCR authored Dec 4, 2023
2 parents 8c4fce5 + 9d8022b commit ecbbdb5
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 2 deletions.
31 changes: 31 additions & 0 deletions ACadSharp/Entities/Dimension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,37 @@ public DimensionType Flags
[DxfCodeValue(42)]
public double Measurement { get; internal set; }


/// <summary>
/// Gets or sets a value indicating whether the first arrow
/// is to be flipped.
/// </summary>
/// <value>
/// <b>true</b> if the arrow is to be flipped; otherwise, <b>false</b>.
/// </value>
/// <remarks>
/// Arrows are by default drawn inside the extension lines if there is enaugh
/// space; otherwise, outside. This flag overrules the standard behaviour.
/// </remarks>
[DxfCodeValue(74)]
public bool FlipArrow1 { get; set; }


/// <summary>
/// Gets or sets a value indicating whether the second arrow
/// to be flipped.
/// </summary>
/// <value>
/// <b>true</b> if the arrow is to be flipped; otherwise, <b>false</b>.
/// </value>
/// <remarks>
/// Arrows are by default drawn inside the extension lines if there is enaugh
/// space; otherwise, outside. This flag overrules the standard behaviour.
/// </remarks>
[DxfCodeValue(75)]
public bool FlipArrow2 { get; set; }


/// <summary>
/// Dimension text explicitly entered by the user
/// </summary>
Expand Down
4 changes: 2 additions & 2 deletions ACadSharp/IO/DWG/DwgStreamReaders/DwgObjectReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1931,9 +1931,9 @@ private void readCommonDimensionData(CadDimensionTemplate template)
//Unknown B 73
this._objectReader.ReadBit();
//Flip arrow1 B 74
this._objectReader.ReadBit();
dimension.FlipArrow1 = this._objectReader.ReadBit();
//Flip arrow2 B 75
this._objectReader.ReadBit();
dimension.FlipArrow2 = this._objectReader.ReadBit();
}

//Common:
Expand Down

0 comments on commit ecbbdb5

Please sign in to comment.