Skip to content

Commit

Permalink
Renaming
Browse files Browse the repository at this point in the history
  • Loading branch information
Nice3point committed Dec 4, 2021
1 parent deb5f7b commit a6886f9
Show file tree
Hide file tree
Showing 27 changed files with 238 additions and 238 deletions.
2 changes: 1 addition & 1 deletion Build/Build.GitHubRelease.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ partial class Build
[GitVersion(NoFetch = true)] readonly GitVersion GitVersion;
readonly Regex VersionRegex = new(@"(\d+\.)+\d+", RegexOptions.Compiled);
[Parameter] string GitHubToken { get; set; }
AbsolutePath ChangeLogPath => RootDirectory / "Doc" / "Changelog.md";
AbsolutePath ChangeLogPath => RootDirectory / "Changelog.md";

Target PublishGitHubRelease => _ => _
.TriggeredBy(CreateInstaller)
Expand Down
240 changes: 120 additions & 120 deletions Doc/Changelog.md → Changelog.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ The project currently supports the 2022 version of Revit. You can find the sourc
- [2016.0.0.13](https://github.com/jeremytammik/RevitLookup/releases/tag/2016.0.0.13) for Revit 2016
- [2015.0.0.8](https://github.com/jeremytammik/RevitLookup/releases/tag/2015.0.0.8) for Revit 2015

Please refer to the [changelog](Doc/Changelog.md) for details.
Please refer to the [changelog](Changelog.md) for details.

## Caveat – RevitLookup Cannot Snoop Everything

Expand Down
2 changes: 1 addition & 1 deletion RevitLookup.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{374DC381-78CC-4FC7-A566-EB8C71C6369F}"
ProjectSection(SolutionItems) = preProject
Readme.md = Readme.md
Changelog.md = Doc\Changelog.md
Changelog.md = Changelog.md
EndProjectSection
EndProject
Global
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
230 changes: 115 additions & 115 deletions Doc/Readme_2005-05-11.md → doc/Readme_2005-05-11.md
Original file line number Diff line number Diff line change
@@ -1,120 +1,120 @@
# Revit Lookup (Formerly known as RvtMgdDbg)

Jim Awe
<br/>Autodesk, Inc.
<br/>05/11/2005
# Revit Lookup (Formerly known as RvtMgdDbg)

Jim Awe
<br/>Autodesk, Inc.
<br/>05/11/2005

<hr/>
<i>

Warning, this document is currently obsolete.

08808006 [Revit SDK documentation outdated...]

Contains outdated or non-functional information regarding creating the 'RevitLookup.addin' file and the associated file which belong in the addins folder. (If you cut and paste the suggested text as from RevitLookup.doc to create RevitLookup.addin it will fail when Revit starts)

In 2012 SDK, there is a compiled DLL file, and a working Addin file.

In the 2013 SDK, there is no compiled DLL file (or instructions on compiling DLL), and there is no Addin file.

In the 2014 SDK there is no compiled DLL file (or instructions on compiling DLL), but there is an Addin file.

In all three cases, the date listed for the Documentation (Word Doc) is 05/11/2005, and much of the information is out of date.

</i>
Warning, this document is currently obsolete.

08808006 [Revit SDK documentation outdated...]

Contains outdated or non-functional information regarding creating the 'RevitLookup.addin' file and the associated file which belong in the addins folder. (If you cut and paste the suggested text as from RevitLookup.doc to create RevitLookup.addin it will fail when Revit starts)

In 2012 SDK, there is a compiled DLL file, and a working Addin file.

In the 2013 SDK, there is no compiled DLL file (or instructions on compiling DLL), and there is no Addin file.

In the 2014 SDK there is no compiled DLL file (or instructions on compiling DLL), but there is an Addin file.

In all three cases, the date listed for the Documentation (Word Doc) is 05/11/2005, and much of the information is out of date.

</i>
<hr/>

Revit Lookup is a program designed with several goals:

- To provide a comprehensive test of the Managed API of Revit
- To provide sample code and utility classes for 3rd Party developers
- To provide “scaffolding” for quick tests of issues when they arise
- To aid my own learning experience on the Revit API

Currently, the following commands exist (all accessed from the “External Tools” menu):

<img src="img/ja_1.png"/>

## Hello World...

The classic bare-bones test. Just brings up an Alert box to show that the connection to the external module is working.

## Snoop DB...

<img src="img/ja_2.png"/>

This command allows you to browse all of the Elements within the current document and view their exposed properties. There has to be code written to extract all the individual properties of an object. As a result, when new classes or methods are added to the system, they will not be visible until code is explicitly written to display them. Because, the properties of an object are obtained in a top-down manner, all object types will at least be able to display common base class properties, even when newly added.

When an item in the data list appears in bold typeface, it means that there is “Drill down” information. Click on that row and a nested Form (Dialog Box) will bring up more detailed information about that data item. For instance, clicking on any item that lists a ParameterSet will bring up a nested Form displaying the contents of the set.

NOTE: when “Drilling down”, the Forms will stack on top of each other. You could keep drilling down a long way if you aren’t paying attention. It is up to you to make sure you don’t get lost in all of the stacked up Forms.

The DrillDown information on a Class Separator (the light blue lines), will allow you to view information about the given class.

<img src="img/ja_3.png"/>

Also, in the left-hand pane, you can right-click on a particular object and get additional information.

<img src="img/ja_4.png"/>

Choosing “Browse Using Reflection...” will bring up a Generic PropertyGrid Form that uses .NET Reflection to browse all the properties. Here, there is no code written specifically in Revit Lookup to retrieve, format, and display the properties.

<img src="img/ja_5.png"/>

NOTE: Because we have no control over how items are displayed, read-only values appear in Grey, and editable values appear in Bold. This form is not setup to correctly handle edits, so making changes is completely at your own risk.

You can continue to browse generically using Reflection if you right-click on one of the items in the PropertyGrid. You get options to see either the Class info or the Object info.

## Snoop Current Selection...

Same as the above command, except that it starts you off Snooping only the elements that were part of the current selection set.

## Snoop Application...

Same as above, except that you start out at the Autodesk.Revit.Application object which is originally passed to the command.

## Test Framework ...

This command packages a set of individual tests into a single location. As new tests are written, they are plugged into this same Form without the need to define new external commands and hook them up to the system. The black “CLS” nodes of the tree represent which Class the tests concern. The grey check mark nodes represent an individual test. To run a test, simply choose a check mark node and press OK.

As of now, there are only a few tests, but more will be added over time.

<img src="img/ja_6.png"/>

## Set Up

The Revit API now offers the ability to register API applications via an .addin manifest file.

Manifest files will be read automatically by Revit when they are places in one of two locations on a user's system:

- In a non-user specific location in "application data"
- For Windows XP &ndash; <i>C:\Documents and Settings\All Users\Application Data\Autodesk\Revit\Addins\2012</i>
- For Vista/Windows 7 &ndash; <i>C:\ProgramData\Autodesk\Revit\Addins\2012</i>
- In a user specific location in "application data"
- For Windows XP &ndash; <i>C:\Documents and Settings\<user>\Application Data\Autodesk\Revit\Addins\2012</i>
- For Vista/Windows 7 &ndash; <i>C:\Users\<user>\AppData\Roaming\Autodesk\Revit\Addins\2012</i>

All files named `.addin` in these locations will be read and processed by Revit during startup.

The content of RevitLookup.addin:

```
<?xml version="1.0" encoding="utf-16" standalone="no"?>
<RevitAddIns>
<AddIn Type="Application">
<Name>RevitLookup</Name>
<Assembly>RevitLookup.dll</Assembly>
<ClientId>6066CBF6-9034-41dd-A2A6-B3761C1362FF</ClientId>
<FullClassName>RevitLookup.App</FullClassName>
</AddIn>
</RevitAddIns>
```

## Known Issues

As of this date, there are a few known issues:

- Random exceptions when browsing Forms. There is a strange work-around in some of the Form constructors that seems to get around a lot of the exceptions, but there is still the occasional problem. Usually, they give the exception message “Overflow or underflow operation”. The exceptions are caught and you will be returned to the editor window and can continue.
- The Snoop XML Form seems to be especially flaky. This was ported directly over from the AutoCAD version of MgdDbg, so I’m not sure what the deal is yet because it seems much more stable over there.
- Trying to get the Analytical model of walls if they aren’t a load-bearing wall causes an Assert. Simply click on “Ignore All” and it won’t bother you anymore.
- Trying to get the Room or analytical model of a FamilyInstance asserts that the TopologyId is incorrect. Simply click on “Ignore All” and it won’t bother you anymore.

Revit Lookup is a program designed with several goals:

- To provide a comprehensive test of the Managed API of Revit
- To provide sample code and utility classes for 3rd Party developers
- To provide “scaffolding” for quick tests of issues when they arise
- To aid my own learning experience on the Revit API

Currently, the following commands exist (all accessed from the “External Tools” menu):

<img src="Images/ja_1.png"/>

## Hello World...

The classic bare-bones test. Just brings up an Alert box to show that the connection to the external module is working.

## Snoop DB...

<img src="Images/ja_2.png"/>

This command allows you to browse all of the Elements within the current document and view their exposed properties. There has to be code written to extract all the individual properties of an object. As a result, when new classes or methods are added to the system, they will not be visible until code is explicitly written to display them. Because, the properties of an object are obtained in a top-down manner, all object types will at least be able to display common base class properties, even when newly added.

When an item in the data list appears in bold typeface, it means that there is “Drill down” information. Click on that row and a nested Form (Dialog Box) will bring up more detailed information about that data item. For instance, clicking on any item that lists a ParameterSet will bring up a nested Form displaying the contents of the set.

NOTE: when “Drilling down”, the Forms will stack on top of each other. You could keep drilling down a long way if you aren’t paying attention. It is up to you to make sure you don’t get lost in all of the stacked up Forms.

The DrillDown information on a Class Separator (the light blue lines), will allow you to view information about the given class.

<img src="Images/ja_3.png"/>

Also, in the left-hand pane, you can right-click on a particular object and get additional information.

<img src="Images/ja_4.png"/>

Choosing “Browse Using Reflection...” will bring up a Generic PropertyGrid Form that uses .NET Reflection to browse all the properties. Here, there is no code written specifically in Revit Lookup to retrieve, format, and display the properties.

<img src="Images/ja_5.png"/>

NOTE: Because we have no control over how items are displayed, read-only values appear in Grey, and editable values appear in Bold. This form is not setup to correctly handle edits, so making changes is completely at your own risk.

You can continue to browse generically using Reflection if you right-click on one of the items in the PropertyGrid. You get options to see either the Class info or the Object info.

## Snoop Current Selection...

Same as the above command, except that it starts you off Snooping only the elements that were part of the current selection set.

## Snoop Application...

Same as above, except that you start out at the Autodesk.Revit.Application object which is originally passed to the command.

## Test Framework ...

This command packages a set of individual tests into a single location. As new tests are written, they are plugged into this same Form without the need to define new external commands and hook them up to the system. The black “CLS” nodes of the tree represent which Class the tests concern. The grey check mark nodes represent an individual test. To run a test, simply choose a check mark node and press OK.

As of now, there are only a few tests, but more will be added over time.

<img src="Images/ja_6.png"/>

## Set Up

The Revit API now offers the ability to register API applications via an .addin manifest file.

Manifest files will be read automatically by Revit when they are places in one of two locations on a user's system:

- In a non-user specific location in "application data"
- For Windows XP &ndash; <i>C:\Documents and Settings\All Users\Application Data\Autodesk\Revit\Addins\2012</i>
- For Vista/Windows 7 &ndash; <i>C:\ProgramData\Autodesk\Revit\Addins\2012</i>
- In a user specific location in "application data"
- For Windows XP &ndash; <i>C:\Documents and Settings\<user>\Application Data\Autodesk\Revit\Addins\2012</i>
- For Vista/Windows 7 &ndash; <i>C:\Users\<user>\AppData\Roaming\Autodesk\Revit\Addins\2012</i>

All files named `.addin` in these locations will be read and processed by Revit during startup.

The content of RevitLookup.addin:

```
<?xml version="1.0" encoding="utf-16" standalone="no"?>
<RevitAddIns>
<AddIn Type="Application">
<Name>RevitLookup</Name>
<Assembly>RevitLookup.dll</Assembly>
<ClientId>6066CBF6-9034-41dd-A2A6-B3761C1362FF</ClientId>
<FullClassName>RevitLookup.App</FullClassName>
</AddIn>
</RevitAddIns>
```

## Known Issues

As of this date, there are a few known issues:

- Random exceptions when browsing Forms. There is a strange work-around in some of the Form constructors that seems to get around a lot of the exceptions, but there is still the occasional problem. Usually, they give the exception message “Overflow or underflow operation”. The exceptions are caught and you will be returned to the editor window and can continue.
- The Snoop XML Form seems to be especially flaky. This was ported directly over from the AutoCAD version of MgdDbg, so I’m not sure what the deal is yet because it seems much more stable over there.
- Trying to get the Analytical model of walls if they aren’t a load-bearing wall causes an Assert. Simply click on “Ignore All” and it won’t bother you anymore.
- Trying to get the Room or analytical model of a FamilyInstance asserts that the TopologyId is incorrect. Simply click on “Ignore All” and it won’t bother you anymore.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit a6886f9

Please sign in to comment.