-
-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
improving the ability to fetch basic Revit file info (version, format…
… etc)
- Loading branch information
Showing
7 changed files
with
112 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System.Text; | ||
|
||
namespace CodeCave.Revit.Toolkit.OLE | ||
{ | ||
internal struct RevitFileMap | ||
{ | ||
internal struct OleStreams | ||
{ | ||
public const string IMAGE_STREAM = "RevitPreview4.0"; | ||
public const string BASIC_FILE_INFO = "BasicFileInfo"; | ||
} | ||
|
||
internal struct PngImageMarker | ||
{ | ||
public const int MARKER_10 = 10; // 0x0A | ||
public const int MARKER_13 = 13; // 0x0D | ||
public const int MARKER_26 = 26; // 0x1A | ||
public const int MARKER_71 = 71; // 0x47 | ||
public const int MARKER_78 = 78; // 0x4E | ||
public const int MARKER_80 = 80; // 0x50 | ||
public const int MARKER_137 = 137; // 0x89 | ||
} | ||
|
||
public static readonly Encoding[] SupportedEncodings = new[] | ||
{ | ||
Encoding.BigEndianUnicode, | ||
Encoding.UTF8, | ||
Encoding.Unicode, | ||
Encoding.ASCII, | ||
Encoding.GetEncoding(1251), | ||
Encoding.UTF32, | ||
Encoding.GetEncoding(1252), | ||
Encoding.UTF7, | ||
Encoding.Default | ||
}; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters