Quantcast
Channel: RevitNetAddinWizard & NavisworksNetAddinWizard
Viewing all 872 articles
Browse latest View live

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) Build #0.9.8 Rolled Out

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

Toolbars

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

ItemWizards

The new coders, widgets, and item wizards of NavisworksNetAddinWizard will be introduced one by one in the coming posts. Please stay tuned. As always, the latest build of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be downloaded from the index page.


Namespace Replacer of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard)

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out. It has four more Navisworks Addin Coder items added, External Command Updater, External Command Updater, Namespace Replacer, and Transaction Starter.

Let’s demonstrate the Namespace Replacer coder a bit in this post. When the coder button is pressed, the namespaces of the current source file will be replaced with good .NET and Navisworks ones, as follows for VB.NET:

Imports System
Imports System.Text
Imports System.Linq
Imports System.Xml
Imports System.Reflection
Imports System.ComponentModel
Imports System.Collections
Imports System.Collections.Generic
Imports System.Windows
Imports System.Windows.Media.Imaging
Imports System.Windows.Forms
Imports System.Drawing
Imports System.IO
Imports Microsoft.Win32
Imports System.Runtime.InteropServices
Imports Autodesk.Navisworks.Api
Imports Autodesk.Navisworks.Api.Plugins
Imports Autodesk.Navisworks.Api.DocumentParts
Imports Autodesk.Navisworks.Api.ApplicationParts

The coder/widget along with a lot more other coders and widgets has been incorporated into the latest Navisworks .NET Addin Wizard (NavisworksNetAddinWizard), which can be downloaded from the following page.

Project Inspector of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard)

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out. It has six more Navisworks Addin Widget buttons added, API LIB Organizer, API LIB Updater, Project Inspector, Manifest Verifier, Manifest Deployer, and Debug EXE Setter.

Let’s demonstrate Project Inspector widget a bit in this post. When the widget button is pressed, the following dialog will show up to report what’s going on in the current project.
ProjectInspector
The coder/widget along with a lot more other coders and widgets has been incorporated into the latest Navisworks .NET Addin Wizard (NavisworksNetAddinWizard), which can be downloaded from the index page.

API LIB Upgrader/Updater of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard)

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out. It has six more Navisworks Addin Widget buttons added, API LIB Organizer, API LIB Updater, Project Inspector, Manifest Verifier, Manifest Deployer, and Debug EXE Setter.

Let’s demonstrate API LIB Updater coder a bit in this post. When the widget button is pressed, the following dialog will show up.
LibUpdater

After the Upgrade button is pressed by accepting the product and LIB Location settings, the Navisworks API references in the current project will be upgraded or downgraded accordingly.

The coder/widget along with a lot more other coders and widgets has been incorporated into the latest Navisworks .NET Addin Wizard (NavisworksNetAddinWizard), which can be downloaded from the index page.

Debug EXE Setter of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard)

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out. It has six more Navisworks Addin Widget buttons added, API LIB Organizer, API LIB Updater, Project Inspector, Manifest Verifier, Manifest Deployer, and Debug EXE Setter.

Let’s demonstrate the Debug EXE Setter widget a bit in this post. When the widget button is pressed, the following dialog will show up to report Navisworks products and their EXE locations.
DebugExeSetter
 
After the Set button is pressed, the Debug EXE will be set as such for the current project.

The coder/widget along with a lot more other coders and widgets has been incorporated into the latest Navisworks .NET Addin Wizard (NavisworksNetAddinWizard), which can be downloaded from the nidex page

API LIB Organizer of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard)

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out. It has six more Navisworks Addin Widget buttons added, API LIB Organizer, API LIB Updater, Project Inspector, Manifest Verifier, Manifest Deployer, and Debug EXE Setter.

Let’s demonstrate API LIB Organizer coder a bit in this post. When the widget button is pressed, the Navisworks API LIB Organizer dialog will show up.

After the Organize button is pressed by accepting the LIB Organizer Location default setting, the applicable Navisworks API LIBs will be properly put and categorized into some nice folders.
 
The coder/widget along with a lot more other coders and widgets has been incorporated into the latest Navisworks .NET Addin Wizard (NavisworksNetAddinWizard), which can be downloaded from the index page

API LIB Locator of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard)

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out. It has six more Navisworks Addin Widget buttons added, API LIB Organizer, API LIB Updater, Project Inspector, Manifest Verifier, Manifest Deployer, and Debug EXE Setter.

Let’s demonstrate the API LIB Locator widget a bit in this post. When the widget button is pressed, the following dialog will show up to report Navisworks products and their API LIB locations.
LibLocator

 
After the Locate button is pressed, the API LIB Location will be properly opened in the Windows Explorer.

The coder/widget along with a lot more other coders and widgets has been incorporated into the latest Navisworks .NET Addin Wizard (NavisworksNetAddinWizard), which can be downloaded from the index page

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) Build #0.9.8.0

$
0
0

If readers have tried the latest Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) Build #0.9.8.0, a few issues with it might be spotted. They can be minor such as icon color or big such as a new coder or widget does not function properly.

We have noticed these too through further testing and currently working on fixing them. A new build will come out soon. Please stay tuned.


Create Navisworks .NET AddInPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the AddInPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET AddInPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.
AddinPluginItem

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many Attributes may be and how complex they are.
AddinPluginAttributes

The auto-generated AddInPlugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [AddInPluginAttribute(AddInLocation.AddIn,
        CallCanExecute = CallCanExecute.Always,
        CanToggle = true,
        Icon = "c:\temp\test.ico",
        LargeIcon = "c:\temp\test.ico",
        LoadForCanExecute = true,
        Shortcut = "Alt+Ctrl+P",
        ShortcutWindowTypes = ""), PluginAttribute("NavisworksNetAddinCS1.AddInPlugin1", "NNAW",
        DisplayName = "My Plugin",
        ExtendedToolTip = "This is My Plugin.",
        Options = PluginOptions.SupportsControls,
        SupportsIsSelfEnabled = true,
        ToolTip = "Plugin Attribute")]
    public class AddInPlugin1 : Autodesk.Navisworks.Api.Plugins.AddInPlugin
    {
        public override CommandState CanExecute()
        {
            return default(CommandState);
        }

        public override int Execute(params string[] parameters)
        {
            return default(int);
        }

        public override bool TryShowHelp()
        {
            return default(bool);
        }
    }
}


Enjoy it, guys!
The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Create Navisworks .NET CommandHandlerPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the CommandHandlerPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET CommandHandlerPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.
CommandHandlerPlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.
CommandHandlerPluginAttributes

The auto-generated CommandHandlerPlugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [CommandAttribute("NavisworksNetAddinCS1.CommandHandlerPlugin1",
        CallCanExecute = CallCanExecute.CurrentSelectionSingle,
        CanToggle = true,
        DisplayName = "CommandPlugin",
        ExtendedToolTip = "This is Command Plugin.",
        Icon = "c:\temp\test.ico",
        LargeIcon = "c:\temp\test.ico",
        LoadForCanExecute = true,
        Shortcut = "Alt+Shift+F10",
        ShortcutWindowTypes = "",
        ToolTip = "My CommandPlugin"), PluginAttribute("NavisworksNetAddinCS1.CommandHandlerPlugin1", "NNAW",
        DisplayName = "Plugin",
        ExtendedToolTip = "This is My Plugin.",
        Options = PluginOptions.SupportsControls,
        SupportsIsSelfEnabled = true,
        ToolTip = "My Plugin.")]
    public class CommandHandlerPlugin1 : Autodesk.Navisworks.Api.Plugins.CommandHandlerPlugin
    {
        public override CommandState CanExecuteCommand(string name)
        {
            return default(CommandState);
        }

        public override bool CanExecuteRibbonTab(string name)
        {
            return default(bool);
        }

        public override int ExecuteCommand(string name, params string[] parameters)
        {
            return default(int);
        }

        public override bool TryShowCommandHelp(string name)
        {
            return default(bool);
        }
    }
}

Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Create Navisworks .NET DockPanePlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the DockPanePlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET DockPanePlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.
DockPanePlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.
DockPanePluginAttributes

The auto-generated DockPanePlugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [DockPanePluginAttribute(400, 600,
        AutoScroll = true,
        FixedSize = false,
        MinimumHeight = 100,
        MinimumWidth = 100), PluginAttribute("NavisworksNetAddinCS1.DockPanePlugin1", "NNAW",
        DisplayName = "",
        ExtendedToolTip = "",
        Options = PluginOptions.None,
        SupportsIsSelfEnabled = false,
        ToolTip = "")]
    public class DockPanePlugin1 : Autodesk.Navisworks.Api.Plugins.DockPanePlugin
    {
        public override Control CreateControlPane()
        {
            return default(Control);
        }

        public override IWin32Window CreateHWndPane(System.Windows.Forms.IWin32Window parent)
        {
            return default(IWin32Window);
        }

        public override void DestroyControlPane(System.Windows.Forms.Control pane)
        {

        }

        public override void DestroyHWndPane(System.Windows.Forms.IWin32Window pane)
        {

        }

        public override void OnActivePaneChanged(bool isActive)
        {

        }

        public override void OnVisibleChanged()
        {

        }

        public override bool TryShowHelp()
        {
            return default(bool);
        }

        public override bool TryShowHelpAtScreenPoint(int x, int y)
        {
            return default(bool);
        }

        public override bool TryShowHelpForHighlight()
        {
            return default(bool);
        }
    }
}

Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Create Navisworks .NET CustomPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the CustomPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET CustomPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.

CustomPlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.

The auto-generated CustomPl CustomPluginAddtributes
ugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [InterfaceAttribute("NavisworksNetAddinCS1.CustomPlugin1", "NNAW",
        DisplayName = "",
        UserData = ""), PluginAttribute("NavisworksNetAddinCS1.CustomPlugin1", "NNAW",
        DisplayName = "",
        ExtendedToolTip = "",
        Options = PluginOptions.None,
        SupportsIsSelfEnabled = false,
        ToolTip = "")]
    public class CustomPlugin1 : Autodesk.Navisworks.Api.Plugins.CustomPlugin
    {
    }
}

Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Create Navisworks .NET EventWatcherPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the EventWatcherPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET EventWatcherPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.

EventWatcherPlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.

EventWatcherPluginAttributes

The auto-generated EventWatcherPlugin source file may look like this.
using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [PluginAttribute("NavisworksNetAddinCS1.EventWatcherPlugin1", "NNAW",
        DisplayName = "",
        ExtendedToolTip = "",
        Options = PluginOptions.None,
        SupportsIsSelfEnabled = false,
        ToolTip = "")]
    public class EventWatcherPlugin1 : Autodesk.Navisworks.Api.Plugins.EventWatcherPlugin
    {
        public override void OnLoaded()
        {

        }

        public override void OnUnloading()
        {

        }
    }
Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Create Navisworks .NET FileProtocolPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the FileProtocolPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET FileProtocolPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.

FileProtocolPlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.

FileProtocolPluginAttributes

The auto-generated FileProtocolPlugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [PluginAttribute("NavisworksNetAddinCS1.FileProtocolPlugin1", "NNAW",
        DisplayName = "",
        ExtendedToolTip = "",
        Options = PluginOptions.None,
        SupportsIsSelfEnabled = false,
        ToolTip = "")]
    public class FileProtocolPlugin1 : Autodesk.Navisworks.Api.Plugins.FileProtocolPlugin
    {
        public override bool GetFile(System.Uri uri, string localPath, Autodesk.Navisworks.Api.Progress progress)
        {
            return default(bool);
        }

        public override bool GetFileInfo(System.Uri uri, Autodesk.Navisworks.Api.Plugins.FileMetadata info)
        {
            return default(bool);
        }

        public override bool GetFileToCache(System.Uri uri, Autodesk.Navisworks.Api.Progress progress, out string cachePath)
        {
            return default(bool);
        }

        public override FileProtocolHandle OpenFile(System.Uri uri, Autodesk.Navisworks.Api.Plugins.FileProtocolOpenMode mode)
        {
            return default(FileProtocolHandle);
        }

        public override bool PutFile(string localPath, System.Uri uri, Autodesk.Navisworks.Api.Progress progress)
        {
            return default(bool);
        }

        public override System.Collections.Generic.IEnumerable<string> SupportedSchemes
        {
            get
            {
                return default(System.Collections.Generic.IEnumerable<string>);
            }
        }

        public override bool SupportsDirectOpen
        {
            get
            {
                return default(bool);
            }
        }

        public override bool SupportsGetPut
        {
            get
            {
                return default(bool);
            }
        }

        public override bool SupportsOwnCache
        {
            get
            {
                return default(bool);
            }
        }
    }
}


Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Create Navisworks .NET InputPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the InputPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET InputPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.

InputPlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.

InputPluginAttributes

The auto-generated InputPlugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [PluginAttribute("NavisworksNetAddinCS1.InputPlugin1", "NNAW",
        DisplayName = "",
        ExtendedToolTip = "",
        Options = PluginOptions.None,
        SupportsIsSelfEnabled = false,
        ToolTip = "")]
    public class InputPlugin1 : Autodesk.Navisworks.Api.Plugins.InputPlugin
    {
        public override Autodesk.Navisworks.Api.Cursor GetCursor(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier)
        {
            return default(Autodesk.Navisworks.Api.Cursor);
        }

        public override HelpIdResult GetHelpIdAtPoint(Autodesk.Navisworks.Api.View view, int x, int y)
        {
            return default(HelpIdResult);
        }

        public override HelpIdResult GetHelpIdForHighlight(Autodesk.Navisworks.Api.View view)
        {
            return default(HelpIdResult);
        }

        public override TooltipResult GetTooltip(Autodesk.Navisworks.Api.View view, int x, int y)
        {
            return default(TooltipResult);
        }

        public override bool KeyDown(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, ushort key, double timeOffset)
        {
            return default(bool);
        }

        public override bool KeyDrag(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, double timeOffset)
        {
            return default(bool);
        }

        public override bool KeyUp(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, ushort key, double timeOffset)
        {
            return default(bool);
        }

        public override bool ModifierKeyDown(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, double timeOffset)
        {
            return default(bool);
        }

        public override bool ModifierKeyUp(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseDown(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, ushort button, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseDrag(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseLeave(Autodesk.Navisworks.Api.View view, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseMove(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseUp(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, ushort button, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override bool WheelDrag(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, int x, int y, ushort wheel, double len, double timeOffset)
        {
            return default(bool);
        }
    }
}

Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.


Build #0.9.8.2 of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) Rolled Out

$
0
0

As promised a while back, the Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8.2 has been rolled out. It has addressed some issues in the early build.

As always, the latest build of Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be downloaded from the index page.

Create Navisworks .NET RenderPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.

We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the RenderPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET RenderPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.

RenderPlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.

ToolPluginAttributes

The auto-generated RenderPlugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [PluginAttribute("NavisworksNetAddinCS1.RenderPlugin1", "NNAW",
        DisplayName = "",
        ExtendedToolTip = "",
        Options = PluginOptions.None,
        SupportsIsSelfEnabled = false,
        ToolTip = "")]
    public class RenderPlugin1 : Autodesk.Navisworks.Api.Plugins.RenderPlugin
    {
        public override BoundingBox3D MakeRenderBoundingBox(Autodesk.Navisworks.Api.View viewer)
        {
            return default(BoundingBox3D);
        }

        public override void OverlayRenderModel(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }

        public override void OverlayRenderWindow(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }

        public override void RenderModel(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }

        public override void RenderWindow(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }
    }
}

Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Create Navisworks .NET ToolPlugin Using NavisworksNetAddinWizard

$
0
0

Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) build #0.9.8 has been rolled out for some days. It has five more Navisworks Addin Widget items added, LIB Locator, LIB Organizer, LIB Upgrader, Project Inspector, and Debug EXE Setter; two more Navisworks Addin Coder items, Data Collector, and Namespace Replacer.
We demonstrated each of the new widgets and coders one by one earlier.

It also provides nine more item wizards, AddInPlugin Creator, CommandHandlerPlugin Creator, CustomPlugin Creator, DockPanePlugin Creator, EventWatcherPlugin Creator, FileProtocolPlugin Creator, InputPlugin Creator, RenderPlugin Creator, and ToolPlugin Creator.

In this post, let’s demonstrate how to use the ToolPlugin Creator to help us create a Navisworks .NET AddinPlugin nicely shortly.

The Navisworks .NET ToolPlugin Item Wizard can be found from the Navisworks Addin node in the Add New Item dialog as usual.

ToolPlugin

After an item name is provided, the Plug Attributes dialog will nicely show up regardless of how many attributes may be and how complex they are.

ToolPluginAttributes

The auto-generated ToolPlugin source file may look like this.

using System;
using System.Text;
using System.Linq;
using System.Xml;
using System.Reflection;
using System.ComponentModel;
using System.Collections;
using System.Collections.Generic;
using System.Windows;
using System.Windows.Media.Imaging;
using System.Windows.Forms;
using System.Drawing;
using System.IO;
using Microsoft.Win32;

using System.Runtime.InteropServices;
using Autodesk.Navisworks.Api;
using Autodesk.Navisworks.Api.Plugins;

using Autodesk.Navisworks.Api.DocumentParts;
using Autodesk.Navisworks.Api.ApplicationParts;

namespace NavisworksNetAddinCS1
{
    [PluginAttribute("NavisworksNetAddinCS1.ToolPlugin1", "NNAW",
        DisplayName = "",
        ExtendedToolTip = "",
        Options = PluginOptions.None,
        SupportsIsSelfEnabled = false,
        ToolTip = "")]
    public class ToolPlugin1 : Autodesk.Navisworks.Api.Plugins.ToolPlugin
    {
        public override Autodesk.Navisworks.Api.Cursor GetCursor(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier)
        {
            return default(Autodesk.Navisworks.Api.Cursor);
        }

        public override HelpIdResult GetHelpIdAtPoint(Autodesk.Navisworks.Api.View view, int x, int y)
        {
            return default(HelpIdResult);
        }

        public override HelpIdResult GetHelpIdForHighlight(Autodesk.Navisworks.Api.View view)
        {
            return default(HelpIdResult);
        }

        public override TooltipResult GetTooltip(Autodesk.Navisworks.Api.View view, int x, int y)
        {
            return default(TooltipResult);
        }

        public override bool KeyDown(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, ushort key, double timeOffset)
        {
            return default(bool);
        }

        public override bool KeyDrag(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, double timeOffset)
        {
            return default(bool);
        }

        public override bool KeyUp(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, ushort key, double timeOffset)
        {
            return default(bool);
        }

        public override BoundingBox3D MakeRenderBoundingBox(Autodesk.Navisworks.Api.View viewer)
        {
            return default(BoundingBox3D);
        }

        public override bool ModifierKeyDown(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, double timeOffset)
        {
            return default(bool);
        }

        public override bool ModifierKeyUp(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseDown(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, ushort button, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseDrag(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseLeave(Autodesk.Navisworks.Api.View view, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseMove(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override bool MouseUp(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifiers, ushort button, int x, int y, double timeOffset)
        {
            return default(bool);
        }

        public override void OverlayRenderModel(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }

        public override void OverlayRenderWindow(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }

        public override void RenderModel(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }

        public override void RenderWindow(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.Graphics graphics)
        {

        }

        public override bool WheelDrag(Autodesk.Navisworks.Api.View view, Autodesk.Navisworks.Api.KeyModifiers modifier, int x, int y, ushort wheel, double len, double timeOffset)
        {
            return default(bool);
        }
    }
}

Enjoy it, guys!

The leading edge Navisworks .NET Addin Wizard (NavisworksNetAddinWizard) can be found and downloaded from the A Wizard for Navisworks .NET Addin page.

Revit Units .NET API: List out All Unit Settings of the Current Document

$
0
0

Revit .NET has provided the Units API since version 2014. In this series of posts, we are going to explore the Revit Units .NET API and provide sample code and analysis as usual.

Let’s list out all unit setting of the current document in this post. Here we go.

    public class RevitUnitsAPI
    {
        public static void ListOutAllRevitUnits(RvtDocument doc)
        {
            Units units = doc.GetUnits();
            IList<UnitType> unitTypes = UnitUtils.GetValidUnitTypes();
            string info = "Revit UNITS applied in the current document: " + Environment.NewLine;
            foreach (UnitType ut in unitTypes)
            {
                FormatOptions fmtOpts = units.GetFormatOptions(ut);
                info += PrintOutRevitUnitInfo(ut, fmtOpts, "\t");
            }

            using (StreamWriter sw = new StreamWriter(@"c:\temp\RevitUnits.txt"))
            {
                sw.WriteLine(info);
                sw.Close();
            }
        }

        public static string PrintOutRevitUnitInfo(UnitType ut, FormatOptions obj, string indent)
        {
            string msg = string.Format(indent + "{0} ({1}):" + Environment.NewLine, LabelUtils.GetLabelFor(ut), ut);

            msg += string.Format(indent + "\tAccuracy: {0}" + Environment.NewLine, obj.Accuracy);
            msg += string.Format(indent + "\tUnit display: {0} ({1})" + Environment.NewLine, LabelUtils.GetLabelFor(obj.DisplayUnits), obj.DisplayUnits);
            msg += string.Format(indent + "\tUnit symbol: {0}" + Environment.NewLine, obj.CanHaveUnitSymbol() ? string.Format("{0} ({1})", (obj.UnitSymbol== UnitSymbolType.UST_NONE? "": LabelUtils.GetLabelFor(obj.UnitSymbol)), obj.UnitSymbol) : "n/a");
            msg += string.Format(indent + "\tUse default: {0}" + Environment.NewLine, obj.UseDefault);
            msg += string.Format(indent + "\tUse grouping: {0}" + Environment.NewLine, obj.UseGrouping);
            msg += string.Format(indent + "\tUse digit grouping: {0}" + Environment.NewLine, obj.UseDigitGrouping);
            msg += string.Format(indent + "\tUse plus prefix: {0}" + Environment.NewLine, obj.CanUsePlusPrefix() ? obj.UsePlusPrefix.ToString() : "n/a");
            msg += string.Format(indent + "\tSuppress spaces: {0}" + Environment.NewLine, obj.CanSuppressSpaces() ? obj.SuppressSpaces.ToString() : "n/a");
            msg += string.Format(indent + "\tSuppress leading zeros: {0}" + Environment.NewLine, obj.CanSuppressLeadingZeros() ? obj.SuppressLeadingZeros.ToString() : "n/a");
            msg += string.Format(indent + "\tSuppress trailing zeros: {0}" + Environment.NewLine, obj.CanSuppressTrailingZeros() ? obj.SuppressTrailingZeros.ToString() : "n/a");

            return msg;
        }
    }

The output may look something as follows:

Revit UNITS applied in the current document:
    Number (UT_Number):
        Accuracy: 1E-06
        Unit display: General (DUT_GENERAL)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Length (UT_Length):
        Accuracy: 0.00260416666666667
        Unit display: Feet and fractional inches (DUT_FEET_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: False
        Suppress leading zeros: False
        Suppress trailing zeros: n/a
    Area (UT_Area):
        Accuracy: 1
        Unit display: Square feet (DUT_SQUARE_FEET)
        Unit symbol: SF (UST_SF)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Volume (UT_Volume):
        Accuracy: 0.01
        Unit display: Cubic feet (DUT_CUBIC_FEET)
        Unit symbol: CF (UST_CF)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Angle (UT_Angle):
        Accuracy: 0.01
        Unit display: Decimal degrees (DUT_DECIMAL_DEGREES)
        Unit symbol: ° (UST_DEGREE_SYMBOL)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Sheet Length (UT_SheetLength):
        Accuracy: 0.0078125
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Sheet Length (UT_DecSheetLength):
        Accuracy: 0.0001
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol:  (UST_NONE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Site Angle (UT_SiteAngle):
        Accuracy: 0.000277777777777778
        Unit display: Degrees minutes seconds (DUT_DEGREES_AND_MINUTES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Density (UT_HVAC_Density):
        Accuracy: 0.0001
        Unit display: Pounds per cubic foot (DUT_POUNDS_MASS_PER_CUBIC_FOOT)
        Unit symbol: lb/ft³ (UST_LB_MASS_PER_CU_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Energy (UT_HVAC_Energy):
        Accuracy: 1
        Unit display: British Thermal Units (DUT_BRITISH_THERMAL_UNITS)
        Unit symbol: Btu (UST_BTU)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Friction (UT_HVAC_Friction):
        Accuracy: 0.01
        Unit display: Inches of water (60 °F) per 100 feet (DUT_INCHES_OF_WATER_PER_100FT)
        Unit symbol: in-wg/100ft (UST_IN_WG_PER_100FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Power (UT_HVAC_Power):
        Accuracy: 1
        Unit display: BTU (British Thermal Units) per hour (DUT_BRITISH_THERMAL_UNITS_PER_HOUR)
        Unit symbol: Btu/h (UST_BTU_PER_H)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Power Density (UT_HVAC_Power_Density):
        Accuracy: 0.01
        Unit display: Watts per square foot (DUT_WATTS_PER_SQUARE_FOOT)
        Unit symbol: W/ft² (UST_WATT_PER_SQ_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Pressure (UT_HVAC_Pressure):
        Accuracy: 0.01
        Unit display: Inches of water (60 °F) (DUT_INCHES_OF_WATER)
        Unit symbol: in-wg (UST_IN_WG)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Temperature (UT_HVAC_Temperature):
        Accuracy: 1
        Unit display: Fahrenheit (DUT_FAHRENHEIT)
        Unit symbol: °F (UST_DEGREE_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Velocity (UT_HVAC_Velocity):
        Accuracy: 10
        Unit display: Feet per minute (DUT_FEET_PER_MINUTE)
        Unit symbol: FPM (UST_FPM)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Air Flow (UT_HVAC_Airflow):
        Accuracy: 1
        Unit display: Cubic feet per minute (DUT_CUBIC_FEET_PER_MINUTE)
        Unit symbol: CFM (UST_CFM)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Duct Size (UT_HVAC_DuctSize):
        Accuracy: 1
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Cross Section (UT_HVAC_CrossSection):
        Accuracy: 0.01
        Unit display: Square inches (DUT_SQUARE_INCHES)
        Unit symbol: in² (UST_IN_SUP_2)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Heat Gain (UT_HVAC_HeatGain):
        Accuracy: 0.1
        Unit display: BTU (British Thermal Units) per hour (DUT_BRITISH_THERMAL_UNITS_PER_HOUR)
        Unit symbol: Btu/h (UST_BTU_PER_H)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Current (UT_Electrical_Current):
        Accuracy: 1
        Unit display: Amperes (DUT_AMPERES)
        Unit symbol: A (UST_AMPERE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Electrical Potential (UT_Electrical_Potential):
        Accuracy: 1
        Unit display: Volts (DUT_VOLTS)
        Unit symbol: V (UST_VOLT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Frequency (UT_Electrical_Frequency):
        Accuracy: 1
        Unit display: Hertz (DUT_HERTZ)
        Unit symbol: Hz (UST_HZ)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Illuminance (UT_Electrical_Illuminance):
        Accuracy: 1
        Unit display: Footcandles (DUT_FOOTCANDLES)
        Unit symbol: fc (UST_FC)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Luminance (UT_Electrical_Luminance):
        Accuracy: 1
        Unit display: Candelas per square meter (DUT_CANDELAS_PER_SQUARE_METER)
        Unit symbol: cd/m² (UST_CD_PER_SQ_M)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Luminous Flux (UT_Electrical_Luminous_Flux):
        Accuracy: 1
        Unit display: Lumens (DUT_LUMENS)
        Unit symbol: lm (UST_LM)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Luminous Intensity (UT_Electrical_Luminous_Intensity):
        Accuracy: 1
        Unit display: Candelas (DUT_CANDELAS)
        Unit symbol: cd (UST_CD)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Efficacy (UT_Electrical_Efficacy):
        Accuracy: 1
        Unit display: Lumens per watt (DUT_LUMENS_PER_WATT)
        Unit symbol: lm/W (UST_LM_PER_W)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Wattage (UT_Electrical_Wattage):
        Accuracy: 1
        Unit display: Watts (DUT_WATTS)
        Unit symbol: W (UST_WATT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Color Temperature (UT_Color_Temperature):
        Accuracy: 1
        Unit display: Kelvin (DUT_KELVIN)
        Unit symbol: K (UST_KELVIN)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Power (UT_Electrical_Power):
        Accuracy: 1
        Unit display: Watts (DUT_WATTS)
        Unit symbol: W (UST_WATT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Roughness (UT_HVAC_Roughness):
        Accuracy: 0.0001
        Unit display: Decimal feet (DUT_DECIMAL_FEET)
        Unit symbol: ' (UST_FOOT_SINGLE_QUOTE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Apparent Power (UT_Electrical_Apparent_Power):
        Accuracy: 1
        Unit display: Volt-amperes (DUT_VOLT_AMPERES)
        Unit symbol: VA (UST_VOLTAMPERE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Power Density (UT_Electrical_Power_Density):
        Accuracy: 0.01
        Unit display: Watts per square foot (DUT_WATTS_PER_SQUARE_FOOT)
        Unit symbol: W/ft² (UST_WATT_PER_SQ_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Density (UT_Piping_Density):
        Accuracy: 0.0001
        Unit display: Pounds per cubic foot (DUT_POUNDS_MASS_PER_CUBIC_FOOT)
        Unit symbol: lb/ft³ (UST_LB_MASS_PER_CU_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Flow (UT_Piping_Flow):
        Accuracy: 1
        Unit display: US gallons per minute (DUT_GALLONS_US_PER_MINUTE)
        Unit symbol: GPM (UST_GPM)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Friction (UT_Piping_Friction):
        Accuracy: 0.01
        Unit display: Feet of water (39.2 °F) per 100 feet (DUT_FEET_OF_WATER_PER_100FT)
        Unit symbol: FT/100ft (UST_FT_OF_WATER_PER_100FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Pressure (UT_Piping_Pressure):
        Accuracy: 0.01
        Unit display: Pounds per square inch (DUT_POUNDS_FORCE_PER_SQUARE_INCH)
        Unit symbol: psi (UST_PSI)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Temperature (UT_Piping_Temperature):
        Accuracy: 1
        Unit display: Fahrenheit (DUT_FAHRENHEIT)
        Unit symbol: °F (UST_DEGREE_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Velocity (UT_Piping_Velocity):
        Accuracy: 1
        Unit display: Feet per second (DUT_FEET_PER_SECOND)
        Unit symbol: FPS (UST_FPS)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Viscosity (UT_Piping_Viscosity):
        Accuracy: 0.01
        Unit display: Centipoises (DUT_CENTIPOISES)
        Unit symbol: cP (UST_CP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Pipe Size (UT_PipeSize):
        Accuracy: 0.125
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Roughness (UT_Piping_Roughness):
        Accuracy: 1E-05
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol: " (UST_INCH_DOUBLE_QUOTE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Volume (UT_Piping_Volume):
        Accuracy: 0.1
        Unit display: US gallons (DUT_GALLONS_US)
        Unit symbol: gal (UST_GAL)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Viscosity (UT_HVAC_Viscosity):
        Accuracy: 0.01
        Unit display: Centipoises (DUT_CENTIPOISES)
        Unit symbol: cP (UST_CP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Coefficient of Heat Transfer (UT_HVAC_CoefficientOfHeatTransfer):
        Accuracy: 0.0001
        Unit display: BTU (British Thermal Units) per hour square foot degree Fahrenheit (DUT_BRITISH_THERMAL_UNITS_PER_HOUR_SQUARE_FOOT_FAHRENHEIT)
        Unit symbol: BTU/(h•ft²•°F) (UST_BTU_PER_H_SQ_FT_DEGREE_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Thermal Resistance (UT_HVAC_ThermalResistance):
        Accuracy: 0.0001
        Unit display: Hour square foot degree Fahrenheit per BTU (British Thermal Unit) (DUT_HOUR_SQUARE_FOOT_FAHRENHEIT_PER_BRITISH_THERMAL_UNIT)
        Unit symbol: (h•ft²•°F)/BTU (UST_H_SQ_FT_DEGREE_F_PER_BTU)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Thermal Mass (UT_HVAC_ThermalMass):
        Accuracy: 0.0001
        Unit display: BTU per degree Fahrenheit (DUT_BRITISH_THERMAL_UNIT_PER_FAHRENHEIT)
        Unit symbol: BTU/°F (UST_BTU_PER_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Thermal Conductivity (UT_HVAC_ThermalConductivity):
        Accuracy: 0.0001
        Unit display: BTU (British Thermal Units) per hour foot degree Fahrenheit (DUT_BRITISH_THERMAL_UNITS_PER_HOUR_FOOT_FAHRENHEIT)
        Unit symbol: BTU/(h•ft•°F) (UST_BTU_PER_H_FT_DEGREE_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Specific Heat (UT_HVAC_SpecificHeat):
        Accuracy: 0.0001
        Unit display: BTU (British Thermal Units) per pound Fahrenheit (DUT_BRITISH_THERMAL_UNITS_PER_POUND_FAHRENHEIT)
        Unit symbol: BTU/(lb•°F) (UST_BTU_PER_LB_DEGREE_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Specific Heat of Vaporization (UT_HVAC_SpecificHeatOfVaporization):
        Accuracy: 0.0001
        Unit display: BTU (British Thermal Units) per pound (DUT_BRITISH_THERMAL_UNITS_PER_POUND)
        Unit symbol: BTU/lb (UST_BTU_PER_LB)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Permeability (UT_HVAC_Permeability):
        Accuracy: 0.0001
        Unit display: Grains per hour square foot inch mercury (DUT_GRAINS_PER_HOUR_SQUARE_FOOT_INCH_MERCURY)
        Unit symbol: gr/(h•ft²•inHg) (UST_GR_PER_H_SQ_FT_IN_HG)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Electrical Resistivity (UT_Electrical_Resistivity):
        Accuracy: 0.0001
        Unit display: Ohm meters (DUT_OHM_METERS)
        Unit symbol: ohm•m (UST_OHM_M)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Air Flow Density (UT_HVAC_Airflow_Density):
        Accuracy: 0.01
        Unit display: Cubic feet per minute square foot (DUT_CUBIC_FEET_PER_MINUTE_SQUARE_FOOT)
        Unit symbol: CFM/SF (UST_CFM_PER_SF)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Slope (UT_Slope):
        Accuracy: 0.5
        Unit display: Rise / 12" (DUT_RISE_OVER_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Cooling Load (UT_HVAC_Cooling_Load):
        Accuracy: 0.1
        Unit display: BTU (British Thermal Units) per hour (DUT_BRITISH_THERMAL_UNITS_PER_HOUR)
        Unit symbol: Btu/h (UST_BTU_PER_H)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Heating Load (UT_HVAC_Heating_Load):
        Accuracy: 0.1
        Unit display: BTU (British Thermal Units) per hour (DUT_BRITISH_THERMAL_UNITS_PER_HOUR)
        Unit symbol: Btu/h (UST_BTU_PER_H)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Cooling Load divided by Area (UT_HVAC_Cooling_Load_Divided_By_Area):
        Accuracy: 0.01
        Unit display: BTU (British Thermal Units) per hour square foot (DUT_BRITISH_THERMAL_UNITS_PER_HOUR_SQUARE_FOOT)
        Unit symbol: Btu/(h•ft²) (UST_BTU_PER_H_SQ_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Heating Load divided by Area (UT_HVAC_Heating_Load_Divided_By_Area):
        Accuracy: 0.01
        Unit display: BTU (British Thermal Units) per hour square foot (DUT_BRITISH_THERMAL_UNITS_PER_HOUR_SQUARE_FOOT)
        Unit symbol: Btu/(h•ft²) (UST_BTU_PER_H_SQ_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Cooling Load divided by Volume (UT_HVAC_Cooling_Load_Divided_By_Volume):
        Accuracy: 0.01
        Unit display: BTU (British Thermal Units) per hour cubic foot (DUT_BRITISH_THERMAL_UNITS_PER_HOUR_CUBIC_FOOT)
        Unit symbol: Btu/(h•ft³) (UST_BTU_PER_H_CU_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Heating Load divided by Volume (UT_HVAC_Heating_Load_Divided_By_Volume):
        Accuracy: 0.01
        Unit display: BTU (British Thermal Units) per hour cubic foot (DUT_BRITISH_THERMAL_UNITS_PER_HOUR_CUBIC_FOOT)
        Unit symbol: Btu/(h•ft³) (UST_BTU_PER_H_CU_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Air Flow divided by Volume (UT_HVAC_Airflow_Divided_By_Volume):
        Accuracy: 0.01
        Unit display: Cubic feet per minute cubic foot (DUT_CUBIC_FEET_PER_MINUTE_CUBIC_FOOT)
        Unit symbol: CFM/CF (UST_CFM_PER_CF)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Air Flow divided by Cooling Load (UT_HVAC_Airflow_Divided_By_Cooling_Load):
        Accuracy: 0.01
        Unit display: Cubic meters per minute tons of refrigeration (DUT_CUBIC_FEET_PER_MINUTE_TON_OF_REFRIGERATION)
        Unit symbol: CFM/ton (UST_CFM_PER_TON)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Area divided by Cooling Load (UT_HVAC_Area_Divided_By_Cooling_Load):
        Accuracy: 0.01
        Unit display: Square feet per tons of refrigeration (DUT_SQUARE_FEET_PER_TON_OF_REFRIGERATION)
        Unit symbol: SF/ton (UST_SF_PER_TON)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Area divided by Heating Load (UT_HVAC_Area_Divided_By_Heating_Load):
        Accuracy: 0.0001
        Unit display: Square feet per thousand BTU (British Thermal Units) per hour (DUT_SQUARE_FEET_PER_THOUSAND_BRITISH_THERMAL_UNITS_PER_HOUR)
        Unit symbol: SF/MBh (UST_SF_PER_MBH)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Wire Diameter (UT_WireSize):
        Accuracy: 1E-06
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol: " (UST_INCH_DOUBLE_QUOTE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Slope (UT_HVAC_Slope):
        Accuracy: 0.03125
        Unit display: Rise / 12" (DUT_RISE_OVER_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Slope (UT_Piping_Slope):
        Accuracy: 0.03125
        Unit display: Rise / 12" (DUT_RISE_OVER_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Currency (UT_Currency):
        Accuracy: 0.01
        Unit display: Currency (DUT_CURRENCY)
        Unit symbol:  (UST_NONE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Mass Density (UT_MassDensity):
        Accuracy: 0.01
        Unit display: Pounds per cubic foot (DUT_POUNDS_MASS_PER_CUBIC_FOOT)
        Unit symbol: lb/ft³ (UST_LB_MASS_PER_CU_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Factor (UT_HVAC_Factor):
        Accuracy: 0.01
        Unit display: Percentage (DUT_PERCENTAGE)
        Unit symbol: % (UST_PERCENT_SIGN)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Temperature (UT_Electrical_Temperature):
        Accuracy: 1
        Unit display: Fahrenheit (DUT_FAHRENHEIT)
        Unit symbol: °F (UST_DEGREE_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Cable Tray Size (UT_Electrical_CableTraySize):
        Accuracy: 0.25
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Conduit Size (UT_Electrical_ConduitSize):
        Accuracy: 0.03125
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Demand Factor (UT_Electrical_Demand_Factor):
        Accuracy: 0.01
        Unit display: Percentage (DUT_PERCENTAGE)
        Unit symbol: % (UST_PERCENT_SIGN)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Duct Insulation Thickness (UT_HVAC_DuctInsulationThickness):
        Accuracy: 0.125
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Duct Lining Thickness (UT_HVAC_DuctLiningThickness):
        Accuracy: 0.125
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Pipe Insulation Thickness (UT_PipeInsulationThickness):
        Accuracy: 0.125
        Unit display: Fractional inches (DUT_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: n/a
    Force (UT_Force):
        Accuracy: 0.01
        Unit display: Kips (DUT_KIPS)
        Unit symbol: kip (UST_KIP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Linear Force (UT_LinearForce):
        Accuracy: 0.001
        Unit display: Kips per foot (DUT_KIPS_PER_FOOT)
        Unit symbol: kip/ft (UST_KIP_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Area Force (UT_AreaForce):
        Accuracy: 0.0001
        Unit display: Kips per square foot (DUT_KIPS_PER_SQUARE_FOOT)
        Unit symbol: ksf (UST_KSF)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Moment (UT_Moment):
        Accuracy: 0.01
        Unit display: Kip-feet (DUT_KIP_FEET)
        Unit symbol: kip-ft (UST_KIP_DASH_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Linear Moment (UT_LinearMoment):
        Accuracy: 0.01
        Unit display: Kip-feet per foot (DUT_KIP_FEET_PER_FOOT)
        Unit symbol: kip-ft/ft (UST_KIP_DASH_FT_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Force Scale (UT_ForceScale):
        Accuracy: 0.1
        Unit display: Feet per kip (DUT_FEET_PER_KIP)
        Unit symbol: ft/kip (UST_FT_PER_KIP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Linear Force Scale (UT_LinearForceScale):
        Accuracy: 0.1
        Unit display: Square feet per kip (DUT_SQUARE_FEET_PER_KIP)
        Unit symbol: ft²/kip (UST_FT_SUP_2_PER_KIP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Area Force Scale (UT_AreaForceScale):
        Accuracy: 0.1
        Unit display: Cubic feet per kip (DUT_CUBIC_FEET_PER_KIP)
        Unit symbol: ft³/kip (UST_FT_SUP_3_PER_KIP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Moment Scale (UT_MomentScale):
        Accuracy: 0.1
        Unit display: Inverse kips (DUT_INV_KIPS)
        Unit symbol: 1/kip (UST_INV_KIP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Linear Moment Scale (UT_LinearMomentScale):
        Accuracy: 0.1
        Unit display: Feet per kip (DUT_FEET_PER_KIP)
        Unit symbol: ft/kip (UST_FT_PER_KIP)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Stress (UT_Stress):
        Accuracy: 0.01
        Unit display: Kips per square inch (DUT_KIPS_PER_SQUARE_INCH)
        Unit symbol: ksi (UST_KSI)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Unit Weight (UT_UnitWeight):
        Accuracy: 0.01
        Unit display: Pounds per cubic foot (DUT_POUNDS_FORCE_PER_CUBIC_FOOT)
        Unit symbol: lb/ft³ (UST_LB_FORCE_PER_CU_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Weight (UT_Weight):
        Accuracy: 0.01
        Unit display: Pounds (DUT_POUNDS_FORCE)
        Unit symbol: lbf (UST_LBF)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Mass (UT_Mass):
        Accuracy: 0.01
        Unit display: Pounds (DUT_POUNDS_MASS)
        Unit symbol: lbm (UST_LBM)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Mass per Unit Area (UT_MassPerUnitArea):
        Accuracy: 0.01
        Unit display: Pounds per square foot (DUT_POUNDS_MASS_PER_SQUARE_FOOT)
        Unit symbol: lb/ft² (UST_LBM_PER_SQ_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Thermal Expansion Coefficient (UT_ThermalExpansion):
        Accuracy: 1E-05
        Unit display: Inverse degrees Fahrenheit (DUT_INV_FAHRENHEIT)
        Unit symbol: 1/°F (UST_INV_DEGREE_F)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Point Spring Coefficient (UT_ForcePerLength):
        Accuracy: 0.1
        Unit display: Kips per inch (DUT_KIPS_PER_INCH)
        Unit symbol: kip/in (UST_KIPS_PER_IN)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Line Spring Coefficient (UT_LinearForcePerLength):
        Accuracy: 0.1
        Unit display: Kips per square foot (DUT_KIPS_PER_SQUARE_FOOT)
        Unit symbol: kip/ft² (UST_KIP_PER_SQ_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Area Spring Coefficient (UT_AreaForcePerLength):
        Accuracy: 0.1
        Unit display: Kips per cubic foot (DUT_KIPS_PER_CUBIC_FOOT)
        Unit symbol: kip/ft³ (UST_KIPS_PER_CU_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Rotational Point Spring Coefficient (UT_ForceLengthPerAngle):
        Accuracy: 0.1
        Unit display: Kip feet per degree (DUT_KIP_FEET_PER_DEGREE)
        Unit symbol: kip-ft/° (UST_KIP_FT_PER_DEGREE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Rotational Line Spring Coefficient (UT_LinearForceLengthPerAngle):
        Accuracy: 0.1
        Unit display: Kip feet per degree per foot (DUT_KIP_FEET_PER_DEGREE_PER_FOOT)
        Unit symbol: kip-ft/°/ft (UST_KIP_FT_PER_DEGREE_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Displacement/Deflection (UT_Displacement_Deflection):
        Accuracy: 0.01
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol: " (UST_INCH_DOUBLE_QUOTE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Rotation (UT_Rotation):
        Accuracy: 0.001
        Unit display: Radians (DUT_RADIANS)
        Unit symbol: rad (UST_RAD)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Period (UT_Period):
        Accuracy: 0.1
        Unit display: Seconds (DUT_SECONDS)
        Unit symbol: s (UST_S)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Frequency (UT_Structural_Frequency):
        Accuracy: 0.1
        Unit display: Hertz (DUT_HERTZ)
        Unit symbol: Hz (UST_HZ)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Pulsation (UT_Pulsation):
        Accuracy: 0.1
        Unit display: Radians per second (DUT_RADIANS_PER_SECOND)
        Unit symbol: rad/s (UST_RAD_PER_S)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Velocity (UT_Structural_Velocity):
        Accuracy: 0.1
        Unit display: Feet per second (DUT_FEET_PER_SECOND)
        Unit symbol: ft/s (UST_FT_PER_S)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Acceleration (UT_Acceleration):
        Accuracy: 0.1
        Unit display: Feet per second squared (DUT_FEET_PER_SECOND_SQUARED)
        Unit symbol: ft/s² (UST_FT_PER_SQ_S)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Energy (UT_Energy):
        Accuracy: 0.1
        Unit display: Pound-feet (DUT_POUND_FORCE_FEET)
        Unit symbol: lb-ft (UST_LB_FORCE_DASH_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Reinforcement Volume (UT_Reinforcement_Volume):
        Accuracy: 0.01
        Unit display: Cubic inches (DUT_CUBIC_INCHES)
        Unit symbol: in³ (UST_IN_SUP_3)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Reinforcement Length (UT_Reinforcement_Length):
        Accuracy: 0.00260416666666667
        Unit display: Feet and fractional inches (DUT_FEET_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: False
        Suppress leading zeros: False
        Suppress trailing zeros: n/a
    Reinforcement Area (UT_Reinforcement_Area):
        Accuracy: 0.01
        Unit display: Square inches (DUT_SQUARE_INCHES)
        Unit symbol: in² (UST_IN_SUP_2)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Reinforcement Area per Unit Length (UT_Reinforcement_Area_per_Unit_Length):
        Accuracy: 0.01
        Unit display: Square inches per foot (DUT_SQUARE_INCHES_PER_FOOT)
        Unit symbol: in²/ft (UST_SQ_IN_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Reinforcement Spacing (UT_Reinforcement_Spacing):
        Accuracy: 0.00260416666666667
        Unit display: Feet and fractional inches (DUT_FEET_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: False
        Suppress leading zeros: False
        Suppress trailing zeros: n/a
    Reinforcement Cover (UT_Reinforcement_Cover):
        Accuracy: 0.00260416666666667
        Unit display: Feet and fractional inches (DUT_FEET_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: False
        Suppress leading zeros: False
        Suppress trailing zeros: n/a
    Bar Diameter (UT_Bar_Diameter):
        Accuracy: 0.01
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol: " (UST_INCH_DOUBLE_QUOTE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Crack Width (UT_Crack_Width):
        Accuracy: 0.01
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol: " (UST_INCH_DOUBLE_QUOTE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Section Dimension (UT_Section_Dimension):
        Accuracy: 0.00520833333333333
        Unit display: Feet and fractional inches (DUT_FEET_FRACTIONAL_INCHES)
        Unit symbol: n/a
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: False
        Suppress leading zeros: False
        Suppress trailing zeros: n/a
    Section Property (UT_Section_Property):
        Accuracy: 0.001
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol: " (UST_INCH_DOUBLE_QUOTE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Section Area (UT_Section_Area):
        Accuracy: 0.01
        Unit display: Square inches (DUT_SQUARE_INCHES)
        Unit symbol: in² (UST_IN_SUP_2)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Section Modulus (UT_Section_Modulus):
        Accuracy: 0.01
        Unit display: Cubic inches (DUT_CUBIC_INCHES)
        Unit symbol: in³ (UST_IN_SUP_3)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Moment of Inertia (UT_Moment_of_Inertia):
        Accuracy: 0.01
        Unit display: Inches to the fourth power (DUT_INCHES_TO_THE_FOURTH_POWER)
        Unit symbol: in4 (UST_IN_SUP_4)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Warping Constant (UT_Warping_Constant):
        Accuracy: 0.01
        Unit display: Inches to the sixth power (DUT_INCHES_TO_THE_SIXTH_POWER)
        Unit symbol: in6 (UST_IN_SUP_6)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Mass per Unit Length (UT_Mass_per_Unit_Length):
        Accuracy: 0.01
        Unit display: Pounds per foot (DUT_POUNDS_MASS_PER_FOOT)
        Unit symbol: lb/ft (UST_LB_MASS_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Weight per Unit Length (UT_Weight_per_Unit_Length):
        Accuracy: 0.01
        Unit display: Pounds per foot (DUT_POUNDS_FORCE_PER_FOOT)
        Unit symbol: lbf/ft (UST_LBF_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Surface Area per Unit Length (UT_Surface_Area):
        Accuracy: 0.01
        Unit display: Square feet per foot (DUT_SQUARE_FEET_PER_FOOT)
        Unit symbol: ft²/ft (UST_SQ_FT_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Pipe Dimension (UT_Pipe_Dimension):
        Accuracy: 0.001
        Unit display: Decimal inches (DUT_DECIMAL_INCHES)
        Unit symbol:  (UST_NONE)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: False
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Mass (UT_PipeMass):
        Accuracy: 0.01
        Unit display: Pounds (DUT_POUNDS_MASS)
        Unit symbol: lbm (UST_LBM)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False
    Mass per Unit Length (UT_PipeMassPerUnitLength):
        Accuracy: 0.01
        Unit display: Pounds per foot (DUT_POUNDS_MASS_PER_FOOT)
        Unit symbol: lb/ft (UST_LB_MASS_PER_FT)
        Use default: False
        Use grouping: False
        Use digit grouping: False
        Use plus prefix: n/a
        Suppress spaces: n/a
        Suppress leading zeros: n/a
        Suppress trailing zeros: False

Revit Addin Wizard (RevitAddinWizard) provides various wizards, coders and widgets to help program Revit addins. It can be downloaded from the Download link at the bottom of the blog index page.

Revit Units .NET API: Group Revit Unit Types (based on Revit Discipline)

$
0
0

Revit .NET has provided the Units API since version 2014. It exposes pretty much everything about units of Revit to Revit programmers; however people still need to do a bit more work to get the huge number of Revit units and various unit concepts (such as unit group/discipline, unit type, unit display, unit format, and so on) organized in a way that can be used conveniently.

Previously, we sorted out Revit unit information for each unit type (UnitType) based on what the unit FormatOptions offer to us. In this post, let’s group all unit types (UnitType enum values) based on the Revit discipline, which corresponds to the UnitGroup enum in the Revit Units .NET API.

        public static Dictionary<UnitGroup, List<UnitType>> GroupRevitUnitTypes(RvtDocument doc)
        {
            Dictionary<UnitGroup, List<UnitType>> units2group = new Dictionary<UnitGroup, List<UnitType>>();

            Units units = doc.GetUnits();
            IList<UnitType> unitTypes = UnitUtils.GetValidUnitTypes();
            foreach (UnitType ut in unitTypes)
            {
                UnitGroup ug = UnitUtils.GetUnitGroup(ut);
                if (units2group.ContainsKey(ug))
                {
                    units2group[ug].Add(ut);
                }
                else
                {
                    units2group.Add(ug, new List<UnitType> { ut });
                }
            }

            return units2group;
        }

        public static void PrintOut(Dictionary<UnitGroup, List<UnitType>> targetObj, string fileName)
        {
            string info = "";
            foreach (KeyValuePair<UnitGroup, List<UnitType>> kvp in targetObj)
            {
                info += string.Format("{0}" + Environment.NewLine,  kvp.Key);
                foreach (UnitType ut in kvp.Value)
                {
                    info += string.Format("\t{0}  ||  {1}" + Environment.NewLine, LabelUtils.GetLabelFor(ut), ut);
                }
            }

            using (StreamWriter sw = new StreamWriter(fileName))
            {
                sw.WriteLine(info);
                sw.Close();
            }
        }

...
    Dictionary<UnitGroup, List<UnitType>> dict = RevitUnitsAPI.GroupRevitUnitTypes(CachedDoc);
    RevitUnitsAPI.PrintOut(dict, @"c:\temp\RevitGroupedUnitTypes.txt");
...

The output may look like the following:

Common
    Number  ||  UT_Number
    Length  ||  UT_Length
    Area  ||  UT_Area
    Volume  ||  UT_Volume
    Angle  ||  UT_Angle
    Sheet Length  ||  UT_SheetLength
    Sheet Length  ||  UT_DecSheetLength
    Site Angle  ||  UT_SiteAngle
    Slope  ||  UT_Slope
    Currency  ||  UT_Currency
    Mass Density  ||  UT_MassDensity
HVAC
    Density  ||  UT_HVAC_Density
    Friction  ||  UT_HVAC_Friction
    Power  ||  UT_HVAC_Power
    Power Density  ||  UT_HVAC_Power_Density
    Pressure  ||  UT_HVAC_Pressure
    Temperature  ||  UT_HVAC_Temperature
    Velocity  ||  UT_HVAC_Velocity
    Air Flow  ||  UT_HVAC_Airflow
    Duct Size  ||  UT_HVAC_DuctSize
    Cross Section  ||  UT_HVAC_CrossSection
    Heat Gain  ||  UT_HVAC_HeatGain
    Roughness  ||  UT_HVAC_Roughness
    Viscosity  ||  UT_HVAC_Viscosity
    Air Flow Density  ||  UT_HVAC_Airflow_Density
    Cooling Load  ||  UT_HVAC_Cooling_Load
    Heating Load  ||  UT_HVAC_Heating_Load
    Cooling Load divided by Area  ||  UT_HVAC_Cooling_Load_Divided_By_Area
    Heating Load divided by Area  ||  UT_HVAC_Heating_Load_Divided_By_Area
    Cooling Load divided by Volume  ||  UT_HVAC_Cooling_Load_Divided_By_Volume
    Heating Load divided by Volume  ||  UT_HVAC_Heating_Load_Divided_By_Volume
    Air Flow divided by Volume  ||  UT_HVAC_Airflow_Divided_By_Volume
    Air Flow divided by Cooling Load  ||  UT_HVAC_Airflow_Divided_By_Cooling_Load
    Area divided by Cooling Load  ||  UT_HVAC_Area_Divided_By_Cooling_Load
    Area divided by Heating Load  ||  UT_HVAC_Area_Divided_By_Heating_Load
    Slope  ||  UT_HVAC_Slope
    Factor  ||  UT_HVAC_Factor
    Duct Insulation Thickness  ||  UT_HVAC_DuctInsulationThickness
    Duct Lining Thickness  ||  UT_HVAC_DuctLiningThickness
Energy
    Energy  ||  UT_HVAC_Energy
    Coefficient of Heat Transfer  ||  UT_HVAC_CoefficientOfHeatTransfer
    Thermal Resistance  ||  UT_HVAC_ThermalResistance
    Thermal Mass  ||  UT_HVAC_ThermalMass
    Thermal Conductivity  ||  UT_HVAC_ThermalConductivity
    Specific Heat  ||  UT_HVAC_SpecificHeat
    Specific Heat of Vaporization  ||  UT_HVAC_SpecificHeatOfVaporization
    Permeability  ||  UT_HVAC_Permeability
Electrical
    Current  ||  UT_Electrical_Current
    Electrical Potential  ||  UT_Electrical_Potential
    Frequency  ||  UT_Electrical_Frequency
    Illuminance  ||  UT_Electrical_Illuminance
    Luminance  ||  UT_Electrical_Luminance
    Luminous Flux  ||  UT_Electrical_Luminous_Flux
    Luminous Intensity  ||  UT_Electrical_Luminous_Intensity
    Efficacy  ||  UT_Electrical_Efficacy
    Wattage  ||  UT_Electrical_Wattage
    Color Temperature  ||  UT_Color_Temperature
    Power  ||  UT_Electrical_Power
    Apparent Power  ||  UT_Electrical_Apparent_Power
    Power Density  ||  UT_Electrical_Power_Density
    Electrical Resistivity  ||  UT_Electrical_Resistivity
    Wire Diameter  ||  UT_WireSize
    Temperature  ||  UT_Electrical_Temperature
    Cable Tray Size  ||  UT_Electrical_CableTraySize
    Conduit Size  ||  UT_Electrical_ConduitSize
    Demand Factor  ||  UT_Electrical_Demand_Factor
Piping
    Density  ||  UT_Piping_Density
    Flow  ||  UT_Piping_Flow
    Friction  ||  UT_Piping_Friction
    Pressure  ||  UT_Piping_Pressure
    Temperature  ||  UT_Piping_Temperature
    Velocity  ||  UT_Piping_Velocity
    Viscosity  ||  UT_Piping_Viscosity
    Pipe Size  ||  UT_PipeSize
    Roughness  ||  UT_Piping_Roughness
    Volume  ||  UT_Piping_Volume
    Slope  ||  UT_Piping_Slope
    Pipe Insulation Thickness  ||  UT_PipeInsulationThickness
    Pipe Dimension  ||  UT_Pipe_Dimension
    Mass  ||  UT_PipeMass
    Mass per Unit Length  ||  UT_PipeMassPerUnitLength
Structural
    Force  ||  UT_Force
    Linear Force  ||  UT_LinearForce
    Area Force  ||  UT_AreaForce
    Moment  ||  UT_Moment
    Linear Moment  ||  UT_LinearMoment
    Force Scale  ||  UT_ForceScale
    Linear Force Scale  ||  UT_LinearForceScale
    Area Force Scale  ||  UT_AreaForceScale
    Moment Scale  ||  UT_MomentScale
    Linear Moment Scale  ||  UT_LinearMomentScale
    Stress  ||  UT_Stress
    Unit Weight  ||  UT_UnitWeight
    Weight  ||  UT_Weight
    Mass  ||  UT_Mass
    Mass per Unit Area  ||  UT_MassPerUnitArea
    Thermal Expansion Coefficient  ||  UT_ThermalExpansion
    Point Spring Coefficient  ||  UT_ForcePerLength
    Line Spring Coefficient  ||  UT_LinearForcePerLength
    Area Spring Coefficient  ||  UT_AreaForcePerLength
    Rotational Point Spring Coefficient  ||  UT_ForceLengthPerAngle
    Rotational Line Spring Coefficient  ||  UT_LinearForceLengthPerAngle
    Displacement/Deflection  ||  UT_Displacement_Deflection
    Rotation  ||  UT_Rotation
    Period  ||  UT_Period
    Frequency  ||  UT_Structural_Frequency
    Pulsation  ||  UT_Pulsation
    Velocity  ||  UT_Structural_Velocity
    Acceleration  ||  UT_Acceleration
    Energy  ||  UT_Energy
    Reinforcement Volume  ||  UT_Reinforcement_Volume
    Reinforcement Length  ||  UT_Reinforcement_Length
    Reinforcement Area  ||  UT_Reinforcement_Area
    Reinforcement Area per Unit Length  ||  UT_Reinforcement_Area_per_Unit_Length
    Reinforcement Spacing  ||  UT_Reinforcement_Spacing
    Reinforcement Cover  ||  UT_Reinforcement_Cover
    Bar Diameter  ||  UT_Bar_Diameter
    Crack Width  ||  UT_Crack_Width
    Section Dimension  ||  UT_Section_Dimension
    Section Property  ||  UT_Section_Property
    Section Area  ||  UT_Section_Area
    Section Modulus  ||  UT_Section_Modulus
    Moment of Inertia  ||  UT_Moment_of_Inertia
    Warping Constant  ||  UT_Warping_Constant
    Mass per Unit Length  ||  UT_Mass_per_Unit_Length
    Weight per Unit Length  ||  UT_Weight_per_Unit_Length
    Surface Area per Unit Length  ||  UT_Surface_Area

Revit Addin Wizard (RevitAddinWizard) provides various wizards, coders and widgets to help program Revit addins. It can be downloaded from the Download link at the bottom of the blog index page.

Viewing all 872 articles
Browse latest View live