Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/ACadSharp/IO/DWG/DwgStreamReaders/DwgObjectReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,13 @@ public void Read()
{
//Read the object
template = this.readObject(type);

if (this._classes.TryGetValue((short)type, out DxfClass dxf)) {
this._builder.Notify($"Successfully read {dxf.DxfName} number {dxf.ClassNumber} with handle: {handle}", NotificationType.None);
}
else {
this._builder.Notify($"Successfully read {type} with handle: {handle}", NotificationType.None);
}
}
catch (Exception ex)
{
Expand Down
4 changes: 4 additions & 0 deletions src/ACadSharp/Objects/CadDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,10 @@ public static void CreateDefaultEntries(CadDictionary root)
MultiLeaderStyle.DefaultName
);
variableDictionary.TryAdd(cmLeaderStyleEntry);
variableDictionary.TryAdd(new DictionaryVariable(DictionaryVariable.CurrentAnnotationStyle, "1:1"));
variableDictionary.TryAdd(new DictionaryVariable(DictionaryVariable.CurrentTableStyle, "Standard"));
variableDictionary.TryAdd(new DictionaryVariable(DictionaryVariable.CurrentViewDetailStyle, "Metric50"));
variableDictionary.TryAdd(new DictionaryVariable(DictionaryVariable.CurrentViewSectionStyle, "Metric50"));

//DictionaryVars Entry DIMASSOC and HIDETEXT ??

Expand Down
56 changes: 55 additions & 1 deletion src/ACadSharp/Objects/DictionaryVariable.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,66 @@ namespace ACadSharp.Objects
public class DictionaryVariable : NonGraphicalObject
{
/// <summary>
/// Represents the name of the current multi-leader style.
/// The name of the system variable that represents the current annotation
/// scale for the current space.
/// </summary>
/// <remarks>
/// string, initial value: 1:1
/// </remarks>
public const string CurrentAnnotationStyle = "CANNOSCALE";

/// <summary>
/// The name of the system variable that represents of the current multi-leader style.
/// </summary>
/// <remarks>This constant is used to identify the current multi-leader style in the application. The value is
/// a string literal: "CMLEADERSTYLE".</remarks>
public const string CurrentMultiLeaderStyle = "CMLEADERSTYLE";

/// <summary>
/// The name of system variable that represents the current table style.
/// </summary>
/// <remarks>
/// string, initial value: Standard
/// </remarks>
public const string CurrentTableStyle = "CTABLESTYLE";

/// <summary>
/// The name of the system variable that represents of the current detail view style.
/// The current detail view style controls the appearance of all
/// new model documentation detail views, detail boundaries and
/// leader lines you create.
/// </summary>
/// <remarks>
/// string, intial value: Imperial24 (imperial) or Metric50 (metric)
/// </remarks>
public const string CurrentViewDetailStyle = "CVIEWDETAILSTYLE";

/// <summary>
/// The name of the system variable that represents the name of
/// the current section view style.
/// The current section view style controls the appearance of all
/// new model documentation section views and section lines you create.
/// </summary>
public const string CurrentViewSectionStyle = "CVIEWSECTIONSTYLE";

/// <summary>
/// The name of the system variable that controls the display
/// of frames for wipeout objects.
/// </summary>
/// <remarks>Integer, initial value: 1, allowed values:
/// <list>
/// <item>
/// 0 Frames are not displayed or plotted<br/>
/// Frames are temporarily displayed for object selection and selection preview.
/// </item><item>
/// 1 Frames are displayed and plotted
/// </item><item>
/// 2 Frames are displayed, but not plotted
/// </item>
/// </list>
/// </remarks>
public const string WipeoutFrame = "WIPEOUTFRAME";

/// <inheritdoc/>
public override string ObjectName => DxfFileToken.ObjectDictionaryVar;

Expand Down
2 changes: 1 addition & 1 deletion src/CSUtilities