added Revit 2022 SDK minus except *rvt and *rfa

This commit is contained in:
Jeremy Tammik
2021-04-20 11:36:21 +02:00
parent 1133a82dc5
commit 7e327986e8
3034 changed files with 1245318 additions and 0 deletions
@@ -0,0 +1,57 @@
//
// (C) Copyright 2003-2019 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
// provided that the above copyright notice appears in all copies and
// that both that copyright notice and the limited warranty and
// restricted rights notice below appear in all supporting
// documentation.
//
// AUTODESK PROVIDES THIS PROGRAM "AS IS" AND WITH ALL FAULTS.
// AUTODESK SPECIFICALLY DISCLAIMS ANY IMPLIED WARRANTY OF
// MERCHANTABILITY OR FITNESS FOR A PARTICULAR USE. AUTODESK, INC.
// DOES NOT WARRANT THAT THE OPERATION OF THE PROGRAM WILL BE
// UNINTERRUPTED OR ERROR FREE.
//
// Use, duplication, or disclosure by the U.S. Government is subject to
// restrictions set forth in FAR 52.227-19 (Commercial Computer
// Software - Restricted Rights) and DFAR 252.227-7013(c)(1)(ii)
// (Rights in Technical Data and Computer Software), as applicable.
//
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("PowerCircuit")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("PowerCircuit")]
[assembly: AssemblyCopyright("Copyright © Autodesk, Inc. 2009")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("51f5319f-4c22-4478-95fc-9276ef99ffef")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,313 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.42000
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace Revit.SDK.Samples.PowerCircuit.CS.Properties {
using System;
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources() {
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Revit.SDK.Samples.PowerCircuit.CS.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture {
get {
return resourceCulture;
}
set {
resourceCulture = value;
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap AddToCircuit {
get {
object obj = ResourceManager.GetObject("AddToCircuit", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap Cancel {
get {
object obj = ResourceManager.GetObject("Cancel", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Information.
/// </summary>
internal static string CaptionInformation {
get {
return ResourceManager.GetString("CaptionInformation", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap CreateCircuit {
get {
object obj = ResourceManager.GetObject("CreateCircuit", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap DisconnectPanel {
get {
object obj = ResourceManager.GetObject("DisconnectPanel", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap EditCircuit {
get {
object obj = ResourceManager.GetObject("EditCircuit", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Selected element has already been included in the circuit!.
/// </summary>
internal static string ElementInCircuit {
get {
return ResourceManager.GetString("ElementInCircuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to The circuit does not include the selected element!.
/// </summary>
internal static string ElementNotInCircuit {
get {
return ResourceManager.GetString("ElementNotInCircuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to add the selected element to Circuit. Please verify that The Number of Poles and Voltage for the selected element match the Number of Poles and Voltage for the Circuit..
/// </summary>
internal static string FailedToAddElement {
get {
return ResourceManager.GetString("FailedToAddElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to create circuit with selected elements. Please verify that The Number of Poles and Voltage for selected elements match with each other..
/// </summary>
internal static string FailedToCreateCircuit {
get {
return ResourceManager.GetString("FailedToCreateCircuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to disconnect panel from the power circuit!.
/// </summary>
internal static string FailedToDisconnectPanel {
get {
return ResourceManager.GetString("FailedToDisconnectPanel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to remove selected element from the power circuit!.
/// </summary>
internal static string FailedToRemoveElement {
get {
return ResourceManager.GetString("FailedToRemoveElement", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Failed to assign the selected element to the circuit. Please verify that The Number of Poles and Voltage for the selected element match the Number of Poles and Voltage for the Circuit..
/// </summary>
internal static string FailedToSelectPanel {
get {
return ResourceManager.GetString("FailedToSelectPanel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Selected element has no unused electrical connector!.
/// </summary>
internal static string NoUsableConnector {
get {
return ResourceManager.GetString("NoUsableConnector", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Active document is null..
/// </summary>
internal static string NullActiveDocument {
get {
return ResourceManager.GetString("NullActiveDocument", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Operation Failed.
/// </summary>
internal static string OperationFailed {
get {
return ResourceManager.GetString("OperationFailed", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap RemoveFromCircuit {
get {
object obj = ResourceManager.GetObject("RemoveFromCircuit", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Selected element is not electrical!.
/// </summary>
internal static string SelectElectricalComponent {
get {
return ResourceManager.GetString("SelectElectricalComponent", resourceCulture);
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap SelectPanel {
get {
object obj = ResourceManager.GetObject("SelectPanel", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized string similar to Please select elements first!.
/// </summary>
internal static string SelectPowerElements {
get {
return ResourceManager.GetString("SelectPowerElements", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Add to Circuit.
/// </summary>
internal static string tipAddToCircuit {
get {
return ResourceManager.GetString("tipAddToCircuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Cancel.
/// </summary>
internal static string tipCancel {
get {
return ResourceManager.GetString("tipCancel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Create Power Circuit.
/// </summary>
internal static string tipCreateCircuit {
get {
return ResourceManager.GetString("tipCreateCircuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Disconnect Panel from Circuit.
/// </summary>
internal static string tipDisconnectPanel {
get {
return ResourceManager.GetString("tipDisconnectPanel", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Edit Circuit.
/// </summary>
internal static string tipEditCircuit {
get {
return ResourceManager.GetString("tipEditCircuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Remove from circuit.
/// </summary>
internal static string tipRemoveFromCircuit {
get {
return ResourceManager.GetString("tipRemoveFromCircuit", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Select a Panel for the Circuit.
/// </summary>
internal static string tipSelectPanel {
get {
return ResourceManager.GetString("tipSelectPanel", resourceCulture);
}
}
}
}
@@ -0,0 +1,202 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="DisconnectPanel" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\DisconnectPanel.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="CaptionInformation" xml:space="preserve">
<value>Information</value>
</data>
<data name="EditCircuit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\EditCircuit.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SelectPowerElements" xml:space="preserve">
<value>Please select elements first!</value>
</data>
<data name="CreateCircuit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\CreateCircuit.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="SelectPanel" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\SelectPanel.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="AddToCircuit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\AddToCircuit.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="Cancel" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\Cancel.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="RemoveFromCircuit" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\RemoveFromCircuit.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="FailedToAddElement" xml:space="preserve">
<value>Failed to add the selected element to Circuit. Please verify that The Number of Poles and Voltage for the selected element match the Number of Poles and Voltage for the Circuit.</value>
</data>
<data name="FailedToCreateCircuit" xml:space="preserve">
<value>Failed to create circuit with selected elements. Please verify that The Number of Poles and Voltage for selected elements match with each other.</value>
</data>
<data name="FailedToSelectPanel" xml:space="preserve">
<value>Failed to assign the selected element to the circuit. Please verify that The Number of Poles and Voltage for the selected element match the Number of Poles and Voltage for the Circuit.</value>
</data>
<data name="OperationFailed" xml:space="preserve">
<value>Operation Failed</value>
</data>
<data name="FailedToDisconnectPanel" xml:space="preserve">
<value>Failed to disconnect panel from the power circuit!</value>
</data>
<data name="FailedToRemoveElement" xml:space="preserve">
<value>Failed to remove selected element from the power circuit!</value>
</data>
<data name="ElementInCircuit" xml:space="preserve">
<value>Selected element has already been included in the circuit!</value>
</data>
<data name="ElementNotInCircuit" xml:space="preserve">
<value> The circuit does not include the selected element!</value>
</data>
<data name="NoUsableConnector" xml:space="preserve">
<value>Selected element has no unused electrical connector!</value>
</data>
<data name="SelectElectricalComponent" xml:space="preserve">
<value>Selected element is not electrical!</value>
</data>
<data name="tipAddToCircuit" xml:space="preserve">
<value>Add to Circuit</value>
</data>
<data name="tipCancel" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="tipCreateCircuit" xml:space="preserve">
<value>Create Power Circuit</value>
</data>
<data name="tipDisconnectPanel" xml:space="preserve">
<value>Disconnect Panel from Circuit</value>
</data>
<data name="tipEditCircuit" xml:space="preserve">
<value>Edit Circuit</value>
</data>
<data name="tipRemoveFromCircuit" xml:space="preserve">
<value>Remove from circuit</value>
</data>
<data name="tipSelectPanel" xml:space="preserve">
<value>Select a Panel for the Circuit</value>
</data>
<data name="NullActiveDocument" xml:space="preserve">
<value>Active document is null.</value>
</data>
</root>