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,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ContentGeneratorWPF", "ContentGeneratorWPF\ContentGeneratorWPF.csproj", "{F8801879-5494-40CD-833E-E497391037D1}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{F8801879-5494-40CD-833E-E497391037D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F8801879-5494-40CD-833E-E497391037D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
{F8801879-5494-40CD-833E-E497391037D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F8801879-5494-40CD-833E-E497391037D1}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,136 @@
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="3.5">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{8F7B8416-87C0-40E4-8256-77A624DBA940}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>REX.Start</RootNamespace>
<AssemblyName>AREXStart</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>2.0</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
</PropertyGroup>
<ItemGroup>
<Reference Include="Autodesk.REX.Framework, Version=2018.0.0.0, Culture=neutral, PublicKeyToken=51e16e3b26b42eda, processorArchitecture=MSIL">
<SpecificVersion>True</SpecificVersion>
<HintPath>Autodesk.REX.Framework.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Design" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<ItemGroup>
<COMReference Include="stdole">
<Guid>{00020430-0000-0000-C000-000000000046}</Guid>
<VersionMajor>2</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
</COMReference>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
@@ -0,0 +1,52 @@
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using Autodesk.REX.Framework;
namespace REX.Start
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.AssemblyResolve += new ResolveEventHandler(currentDomain_AssemblyResolve);
RunExtension(@"c:\my documents\visual studio 2015\Projects\ContentGeneratorWPF\ContentGeneratorWPF\bin\Debug\ContentGeneratorWPF.dll", "2018");
}
static System.Reflection.Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
return Autodesk.REX.Framework.REXAssemblies.Resolve(sender, args, System.Reflection.Assembly.GetExecutingAssembly());
}
static void RunExtension(string FullPath, string VersionName)
{
REXApplicationInstance applicationInstance = new REXApplicationInstance();
if (applicationInstance.LoadExtension(FullPath, "REX.ContentGeneratorWPF.Application"))
{
REXContext context = new REXContext();
context.Control.Mode = REXMode.Dialog;
context.Control.ControlMode = REXControlMode.ModalDialog;
context.Product.Type = REXInterfaceType.Common;
context.Control.Parent = null;
REXEnvironment environment = new REXEnvironment(VersionName);
if (environment.LoadEngine(ref context))
{
if (applicationInstance.Extension.Create(ref context))
applicationInstance.Extension.Show();
}
}
}
}
}
@@ -0,0 +1,33 @@
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("AREXStart")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AREXStart")]
[assembly: AssemblyCopyright("")]
[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("97ee349a-32da-4f6e-a2a0-c4b8cf3eff80")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
@@ -0,0 +1,72 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4952
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace StandaloneLauncher1.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", "2.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("StandaloneLauncher1.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;
}
}
}
}
@@ -0,0 +1,117 @@
<?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.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: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" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</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" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</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>
</root>
@@ -0,0 +1,60 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:2.0.50727.4952
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace StandaloneLauncher1.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string Assembly
{
get
{
return ((string)(this["Assembly"]));
}
set
{
this["Assembly"] = value;
}
}
[global::System.Configuration.UserScopedSettingAttribute()]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Configuration.DefaultSettingValueAttribute("")]
public string Namespace
{
get
{
return ((string)(this["Namespace"]));
}
set
{
this["Namespace"] = value;
}
}
}
}
@@ -0,0 +1,12 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)" GeneratedClassNamespace="StandaloneLauncher1.Properties" GeneratedClassName="Settings">
<Profiles />
<Settings>
<Setting Name="Assembly" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
<Setting Name="Namespace" Type="System.String" Scope="User">
<Value Profile="(Default)" />
</Setting>
</Settings>
</SettingsFile>
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<configuration>
<configSections>
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" >
<section name="REX.Start.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
</sectionGroup>
</configSections>
<userSettings>
<REX.Start.Properties.Settings>
<setting name="Assembly" serializeAs="String">
<value />
</setting>
<setting name="Namespace" serializeAs="String">
<value />
</setting>
</REX.Start.Properties.Settings>
</userSettings>
</configuration>
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Command">
<Assembly>P:\ContentGeneratorWPF\ContentGeneratorWPF\bin\Debug\ContentGeneratorWPF.dll</Assembly>
<ClientId>fa27b977-f7a1-4601-bce0-e5b93ba8a371</ClientId>
<FullClassName>REX.ContentGeneratorWPF.DirectRevitAccess</FullClassName>
<Text>ContentGeneratorWPF</Text>
<Description>ContentGeneratorWPF</Description>
<VendorId>ADSK</VendorId>
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
</AddIn>
</RevitAddIns>
@@ -0,0 +1,10 @@
set SOURCE_PATH=
set DESTINATION_PATH=
if not exist "%DESTINATION_PATH%\ContentGeneratorWPF\ContentGeneratorWPF.dll" goto end
if not exist "%SOURCE_PATH%\ContentGeneratorWPF\ContentGeneratorWPF\bin\Debug\ContentGeneratorWPF.dll" goto end
copy "%SOURCE_PATH%\ContentGeneratorWPF\ContentGeneratorWPF\bin\Debug\ContentGeneratorWPF.dll" "%DESTINATION_PATH%\ContentGeneratorWPF\ContentGeneratorWPF.dll"
copy "%SOURCE_PATH%\ContentGeneratorWPF\ContentGeneratorWPF\bin\Debug\ContentGeneratorWPF.pdb" "%DESTINATION_PATH%\ContentGeneratorWPF\ContentGeneratorWPF.pdb"
:end
Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<options product="REX" name="REX">
<option name="SDK" description="SDK" description_full="SDK" version="" domain="" date="">
<option name="ContentGeneratorWPF" description="ContentGeneratorWPF" description_full="ContentGeneratorWPF" version="0.5" domain="" date="" type="">
<data>
<data.run type="ASSEMBLY" path="ContentGeneratorWPF" file="ContentGeneratorWPF.dll" class="REX.ContentGeneratorWPF.Application" direct_revit_class="REX.ContentGeneratorWPF.DirectRevitAccess"/>
</data>
</option>
</option>
</options>
Binary file not shown.

After

Width:  |  Height:  |  Size: 940 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="utf-8"?>
<ROXML version="1.0">
<header>
<contents type="configuration" version="1.5"/>
<product type="component" category="library" technology=".net" name="REX" />
</header>
<settings>
<control>
<!--
version name
name = "", "2010", ....
-->
<version name="2012"/>
<!--
multi language architecture
suported = "true", "false"
-->
<languages supported="false"/>
<!--
user interface
supported = "true", "false"
-->
<userinterface supported="true" form="modal"/>
<!--
context settings
suported = "true", "false"
version = "", "2010", ....
optionlist = "subscription;..."
architecture = "x86", "x64"
parameters = "true", "false"
subname = "", some sub-product name
form = "modal" (""), "control", "non-modal"
-->
<context name="Civil3D" supported="false" form="non-modal" version="" optionlist="" architecture="" parameters="false"/>
<context name="Robot" supported="false" form="non-modal" version="" optionlist="" architecture="" parameters="false"/>
<context name="RCad" supported="false" form="non-modal" version="" optionlist="" architecture="" parameters="false"/>
<context name="Revit" subname="Structure" optionlist="" supported="true" version="" parameters="true"/>
<context name="Revit" subname="Architecture" optionlist="" supported="true" version="" parameters="true"/>
<context name="Revit" subname="MEP" optionlist="" supported="true" version="" parameters="true"/>
<context name="Revit" supported="true" form="modal" version="" optionlist="" architecture="" parameters="true"/>
</control>
</settings>
</ROXML>
@@ -0,0 +1,340 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{F8801879-5494-40CD-833E-E497391037D1}</ProjectGuid>
<OutputType>library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>REX.ContentGeneratorWPF</RootNamespace>
<AssemblyName>ContentGeneratorWPF</AssemblyName>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<ProjectTypeGuids>{60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
<WarningLevel>4</WarningLevel>
<FileUpgradeFlags>
</FileUpgradeFlags>
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation />
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;TV2_0;TV1_5;REXUI;REXUIL2;REXEI;REVIT;$(AssemblyName)</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>
</DocumentationFile>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;TV2_0;TV1_5;REXUI;REXUIL2;REXEI;REVIT;$(AssemblyName)</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Autodesk.Common.AResourcesControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ff3304d4f320ee59, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>a:\references\Autodesk.Common.AResourcesControl.dll</HintPath>
</Reference>
<Reference Include="Autodesk.REX.Framework, Version=2018.0.0.0, Culture=neutral, PublicKeyToken=51e16e3b26b42eda, processorArchitecture=MSIL">
<SpecificVersion>True</SpecificVersion>
<HintPath>Autodesk.REX.Framework.dll</HintPath>
</Reference>
<Reference Include="Interop.ROHTMLLib">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Interop\Interop.ROHTMLLib.dll</HintPath>
<EmbedInteropTypes>True</EmbedInteropTypes>
</Reference>
<Reference Include="PresentationCore">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="PresentationFramework">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="RevitAPI">
<HintPath>q:\Ref\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>q:\Ref\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.API">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Foundation\REX.API.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.ContentGeneratorLT">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Components\AREXContentGenerator\REX.ContentGeneratorLT.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Controls">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Engine\REX.Controls.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Controls.WPF">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Engine\REX.Controls.WPF.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Foundation">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Foundation\REX.Foundation.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Foundation.WPF">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Foundation\REX.Foundation.WPF.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Geometry">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Foundation\REX.Geometry.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Runtime.Remoting" />
<Reference Include="System.Windows.Presentation">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Xaml" />
<Reference Include="System.Xml" />
<Reference Include="UIAutomationProvider">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
<Reference Include="WindowsBase">
<RequiredTargetFramework>3.0</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Main\PropertyItem.cs" />
<Compile Include="Main\Triangle.cs" />
<Compile Include="Module\Application.cs" />
<Compile Include="Module\DirectAccess.cs" />
<Compile Include="Module\Foundation.cs" />
<Compile Include="Main\Data.cs" />
<Compile Include="Main\Revit\ExtensionRevit.cs" />
<Compile Include="Main\Extension.cs" />
<Compile Include="Main\Settings.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\Dialogs\ContentGeneratorCreateControl.xaml.cs">
<DependentUpon>ContentGeneratorCreateControl.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\ContentGeneratorReadControl.xaml.cs">
<DependentUpon>ContentGeneratorReadControl.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\MainControl.xaml.cs">
<DependentUpon>MainControl.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\MainWindow.xaml.cs">
<DependentUpon>MainWindow.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\PolygonViewer.xaml.cs">
<DependentUpon>PolygonViewer.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\PropertiesControl.xaml.cs">
<DependentUpon>PropertiesControl.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\PropertyControl.xaml.cs">
<DependentUpon>PropertyControl.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\SelectedElementControl.xaml.cs">
<DependentUpon>SelectedElementControl.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\UserControlView.xaml.cs">
<DependentUpon>UserControlView.xaml</DependentUpon>
</Compile>
<Compile Include="Resources\Strings\Texts.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Texts.resx</DependentUpon>
</Compile>
<Compile Include="Main\Results.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Resources\Strings\Texts.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Texts.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Other\Images\TOOLBAR_help.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Other\Images\TOOLBAR_info.png" />
</ItemGroup>
<ItemGroup>
<Resource Include="Resources\Other\Images\bmp_I.png" />
<Resource Include="Resources\Other\Images\bmp_L.png" />
<Resource Include="Resources\Other\Images\bmp_RECT.png" />
<None Include="Additional\AREXStart\AREXStart.csproj" />
<None Include="Additional\AREXStart\app.config" />
<None Include="Additional\AREXStart\Program.cs" />
<None Include="Additional\AREXStart\Properties\AssemblyInfo.cs" />
<None Include="Additional\AREXStart\Properties\Resources.Designer.cs" />
<None Include="Additional\AREXStart\Properties\Settings.Designer.cs" />
<None Include="Additional\AREXStart\Properties\Resources.resx" />
<None Include="Additional\AREXStart\Properties\Settings.settings" />
<None Include="Additional\buildevents.bat" />
<EmbeddedResource Include="Resources\Other\Images\REX.ico" />
<Resource Include="Resources\Other\Images\REX_logo.png" />
<Resource Include="Resources\Other\Images\TOOLBAR_calculate.png" />
<Resource Include="Resources\Other\Images\TOOLBAR_close.png" />
<Resource Include="Resources\Other\Images\TOOLBAR_open.png" />
<Resource Include="Resources\Other\Images\TOOLBAR_print.png" />
<Resource Include="Resources\Other\Images\TOOLBAR_save.png" />
<Resource Include="Resources\Other\Images\TOOLBAR_save_as.png" />
<Content Include="Additional\ContentGeneratorWPF.addin" />
<Content Include="Configuration\REX.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\REX_small.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\REX_tooltip.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\REX_revit.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\settings.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\REX_revit.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="pl-PL\REX_revit.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Resource Include="Resources\Other\Images\TOOLBAR_rs.png" />
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<ItemGroup>
<Page Include="Resources\Dialogs\ContentGeneratorCreateControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\ContentGeneratorReadControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\MainControl.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\MainWindow.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\PolygonViewer.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\PropertiesControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\PropertyControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\SelectedElementControl.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
<Page Include="Resources\Dialogs\UserControlView.xaml">
<Generator>MSBuild:Compile</Generator>
<SubType>Designer</SubType>
</Page>
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>
if not exist "q:\exe.$(ConfigurationName)" goto InstalledSDK
md "q:\exe.$(ConfigurationName)"
md "q:\exe.$(ConfigurationName)\Modules"
md "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)"
del "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)\$(TargetFileName)"
copy "$(TargetPath)" "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)\$(TargetFileName)"
copy "$(TargetDir)Interop.*.dll" "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)\"
goto END
:InstalledSDK
:END
if exist "$(ProjectDir)Additional\buildevents.bat" call "$(ProjectDir)Additional\buildevents.bat"
xcopy "$(ProjectDir)Additional\*.addin" "R:\Autodesk\Revit\Addins\2018" /S /R /K /V /I /F /C /Y
</PostBuildEvent>
</PropertyGroup>
</Project>
@@ -0,0 +1,331 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
using System.IO;
using Autodesk.REX.Framework;
using REX.Common;
namespace REX.ContentGeneratorWPF
{
[Serializable]
internal class DataSerializable : REXExtensionDataSerializable
{
/// <summary>
/// Initializes a new instance of the <see cref="DataSerializable"/> class.
/// </summary>
public DataSerializable()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="REXExtensionDataSerializable"/> class.
/// A required constructor by ISerializable to deserialize the object. It is important to implement
/// this required constructor. Note that no warning will be given if this constructor is absent and
/// an exception will be thrown if you attempt to deserialize this object.
/// It is a good idea to make the constructor protected unless the class was sealed, in which case
/// the constructor should be marked as private. Making the constructor protected ensures that users
/// cannot explicitly call this constructor while still allowing derived classes to call it. The same
/// logic applies if this class was sealed except that there will be no derived classes.
/// </summary>
/// <example>
/// <code>
/// protected REXExtensionDataSerializable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
/// {
/// strPrivate = info.GetString( "s1" );
/// strPublic = info.GetString( "s2" );
/// obMyClass = (SomeClass) info.GetValue( "ob", typeof(SomeClass) ); // deserializing an object
/// }
/// </code>
/// </example>
/// <param name="info">The info.</param>
/// <param name="ctx">The CTX.</param>
protected DataSerializable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
{
}
/// <summary>
/// A required method by ISerializable to serialize the object. Simply add variables to be serialized
/// as name/value pairs to SerializationInfo object. Here you decide which member variables to serialize.
/// Note that any name can be used to identify each serialized field
/// </summary>
/// <example>
/// <code>
/// public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
/// {
/// info.AddValue("s1", strPrivate);
/// info.AddValue("s2", strPublic);
/// into.AddValue("ob", obMyClass); // Serializing an object
/// }
/// </code>
/// </example>
/// <param name="info">The info.</param>
/// <param name="ctx">The CTX.</param>
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
{
}
/// <summary>
/// Sets the data reference.
/// </summary>
/// <param name="data">The data.</param>
public void SetDataReference(Data data)
{
DataRef = data;
}
private Data DataRef;
}
/// <summary>
/// Main data class to store all data in REX base units.
/// </summary>
internal class Data : REXData
{
#region members
/// <summary>
/// Gets or sets the selected element.
/// </summary>
/// <value>The selected element.</value>
public Autodesk.Revit.DB.FamilyInstance SelectedElement { get; set; }
/// <summary>
/// Gets or sets the selected element properties.
/// </summary>
/// <value>The selected element properties.</value>
public List<Main.PropertyItem> SelectedElementProperties { get; set; }
/// <summary>
/// Gets or sets the selected elements geometry.
/// </summary>
/// <value>The selected elements geometry.</value>
public List<Main.Triangle> SelectedElementGeometry { get; set; }
/// <summary>
/// Gets or sets the database section representation.
/// </summary>
/// <value>The database section.</value>
public REX.ContentGenerator.Families.REXFamilyType_DBSection DatabaseSection { get; set; }
/// <summary>
/// Gets or sets the database records (where the DatabaseSection was found).
/// </summary>
/// <value>The database records.</value>
public List<REX.ContentGenerator.Families.REXDBDescription> DatabaseRecords { get; set; }
/// <summary>
/// Gets or sets the parametric section representation.
/// </summary>
/// <value>The parametric section.</value>
public REX.ContentGenerator.Families.REXFamilyType_ParamSection ParametricSection { get; set; }
/// <summary>
/// Gets or sets the section which will be applied to the selected element.
/// </summary>
/// <value>The new section.</value>
public REX.ContentGenerator.Families.REXFamilyType_Section NewSection { get; set; }
/// <summary>
/// Gets or sets the FamilySymbol which will be applied to the selected element (created based on NewSection).
/// </summary>
/// <value>The new family symbol.</value>
public Autodesk.Revit.DB.FamilySymbol NewFamilySymbol { get; set; }
#endregion
/// <summary>
/// Initializes a new instance of a <see cref="Data"/> class.
/// </summary>
/// <param name="Ext">The reference to REXExtension object.</param>
public Data(REXExtension Ext)
: base(Ext)
{
VersionCurrent = 1;
DataSerializableRef = new DataSerializable();
}
/// <summary>
/// Get the main extension.
/// </summary>
/// <value>The main extension.</value>
public Extension ThisMainExtension
{
get
{
return (Extension)ThisExtension;
}
}
/// <summary>
/// Called when set defaults.
/// </summary>
/// <param name="UnitsSystem">The units system.</param>
/// <example>
/// <code>
/// #region Structures
/// public double A;
/// public double B;
/// public double C;
/// #endregion
///
/// protected override void OnSetDefaults(REXUnitsSystemType UnitsSystem)
/// {
/// if (UnitsSystem == REXUnitsSystemType.Imperial)
/// {
/// A = 10;
/// B = 10;
/// C = 10;
/// }
/// else if (UnitsSystem == REXUnitsSystemType.Metric)
/// {
/// A = ThisExtension.Units.BaseFromInterface(20, REXUnits.EnumUnits.Dimensions_SectionDim);
/// B = ThisExtension.Units.BaseFromInterface(20, REXUnits.EnumUnits.Dimensions_ConnectionDim);
/// C = ThisExtension.Units.BaseFromInterface(20, REXUnits.EnumUnits.Forces_Force);
/// }
/// }
/// </code>
/// </example>
protected override void OnSetDefaults(REXUnitsSystemType UnitsSystem)
{
if (UnitsSystem == REXUnitsSystemType.Imperial)
{
}
else if (UnitsSystem == REXUnitsSystemType.Metric)
{
}
}
/// <summary>
/// Called when save data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
/// <example>
/// <code>
///protected override bool OnSave(ref BinaryWriter Data)
///{
/// if (Mode == DataMode.ModeFile)
/// {
/// }
/// if (Mode == DataMode.ModeProject)
/// {
/// }
/// if (Mode == DataMode.ModeObject)
/// {
/// }
///
/// Data.Write(A);
/// Data.Write(B);
/// Data.Write(C);
///
/// return true;
///}
/// </code>
/// </example>
protected override bool OnSave(ref BinaryWriter Data)
{
if (Mode == DataMode.ModeFile)
{
}
if (Mode == DataMode.ModeProject)
{
}
if (Mode == DataMode.ModeObject)
{
}
return true;
}
/// <summary>
/// Called when load data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
/// <example>
/// <code>
/// protected override bool OnLoad(ref BinaryReader Data)
/// {
/// if (Mode == DataMode.ModeFile)
/// {
/// }
/// if (Mode == DataMode.ModeProject)
/// {
/// }
/// if (Mode == DataMode.ModeObject)
/// {
/// }
///
/// if (VersionLoaded >= 1)
/// {
/// A = Data.ReadDouble();
/// B = Data.ReadDouble();
/// C = Data.ReadDouble();
/// }
///
/// return true;
/// }
/// </code>
/// </example>
protected override bool OnLoad(ref BinaryReader Data)
{
if (Mode == DataMode.ModeFile)
{
}
if (Mode == DataMode.ModeProject)
{
}
if (Mode == DataMode.ModeObject)
{
}
if (VersionLoaded >= 1)
{
}
return true;
}
/// <summary>
/// Called when save data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
protected override bool OnSave(ref Stream DataStream, ref System.Runtime.Serialization.IFormatter DataFormater)
{
if (DataSerializableRef != null)
DataFormater.Serialize(DataStream, DataSerializableRef);
return true;
}
/// <summary>
/// Called when load data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
protected override bool OnLoad(ref Stream DataStream, ref System.Runtime.Serialization.IFormatter DataFormater)
{
DataSerializableRef = (DataSerializable)DataFormater.Deserialize(DataStream);
return true;
}
internal DataSerializable DataSerializableRef;
}
}
@@ -0,0 +1,594 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Threading;
using System.Reflection;
using REX.Common;
using Autodesk.REX.Framework;
namespace REX.ContentGeneratorWPF
{
/// <summary>
/// Main class for development.
/// </summary>
internal class Extension : REXExtension
{
/// <summary>
/// Initializes a new instance of the <see cref="Extension"/> class.
/// </summary>
/// <param name="App">The reference to REXApplication object.</param>
public Extension(REXApplication App)
: base(App)
{
DataRef = new Data(this);
ResultsRef = new Results(this);
}
/// <summary>
/// For standard funcionality fill following methods.
/// </summary>
#region Public overrided methods for develeopment
/// <summary>
/// Called when Initialize.
/// Creates dedicated extension class according main context.
/// </summary>
/// <returns>Returns true if succeeded.</returns>
public override bool OnInitialize()
{
if (ThisApplication.Context2.Product.Type == REXInterfaceType.Revit)
ExtensionRef = new Main.Revit.ExtensionRevit(this);
if (ExtensionRef != null)
{
if (!ExtensionRef.OnInitialize())
return false;
}
Converter = new REX.ContentGenerator.Converters.REXFamilyConverter();
return base.OnInitialize();
}
/// <summary>
/// Creates needed structures and verify needs.
/// </summary>
public override void OnCreate()
{
base.OnCreate();
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnCreate();
}
/// <summary>
/// Creates sub dialog.
/// </summary>
public override void OnCreateDialogs()
{
base.OnCreateDialogs();
SelectedElementControlRef = new REX.ContentGeneratorWPF.Resources.Dialogs.SelectedElementControl(this);
CGReadControlRef = new REX.ContentGeneratorWPF.Resources.ContentGeneratorReadControl(this);
CGCreateControlRef = new REX.ContentGeneratorWPF.Resources.Dialogs.ContentGeneratorCreateControl(this);
if (ExtensionRef != null)
ExtensionRef.OnCreateDialogs();
}
/// <summary>
/// Creates layout items and setups layout.
/// </summary>
public override void OnCreateLayout()
{
base.OnCreateLayout();
System.SetCaption();
global::System.Windows.Media.Imaging.BitmapImage logoImage = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/REX_logo.png");
// UI.SetLogo(logoImage);
Layout.ConstOptions = (long)REXUI.SetupOptions.HSplitFixed
| (long)REXUI.SetupOptions.VSplitFixed
| (long)REXUI.SetupOptions.TabDialog
| (long)REXUI.SetupOptions.List
| (long)REXUI.SetupOptions.FormFixed;
Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Element", "", "Element", (long)0, SelectedElementControlRef, null, logoImage));
Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Recognition", "", "Recognition", (long)0, CGReadControlRef, null, logoImage));
Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, "Creation", "", "Creation", (long)0, CGCreateControlRef, null, logoImage));
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnCreateLayout();
SelectedElementControlRef.SetDialog();
CGReadControlRef.SetDialog();
CGCreateControlRef.SetDialog();
}
/// <summary>
/// Set data on dialogs.
/// </summary>
public override void OnSetDialogs()
{
base.OnSetDialogs();
// insert code here.
Layout.SelectLayout("L1");
if (ExtensionRef != null)
ExtensionRef.OnSetDialogs();
}
/// <summary>
/// Get data from dialogs and sets Data's strucutres.
/// </summary>
public override void OnSetData()
{
base.OnSetData();
CGCreateControlRef.SetData();
if (ExtensionRef != null)
ExtensionRef.OnSetData();
}
/// <summary>
/// Called when data are loaded.
/// </summary>
/// <returns>Returns true if succeeded.</returns>
public override bool OnDataLoad()
{
return true;
}
/// <summary>
/// Called when data loaded.
/// </summary>
/// <param name="Result">If set to <c>true</c> operation succeeded; Otherwise some errors found.</param>
public override void OnDataLoaded(bool Result)
{
}
/// <summary>
/// Called when data are saved.
/// </summary>
/// <returns>Returns true if succeeded.</returns>
public override bool OnDataSave()
{
return true;
}
/// <summary>
/// Called when data are saved.
/// </summary>
/// <param name="Result">If set to <c>true</c> operation succeeded; Otherwise some errors found.</param>
public override void OnDataSaved(bool Result)
{
}
/// <summary>
/// Called when data are cleared.
/// </summary>
/// <param name="Implemented">If returns <c>true</c> method was implemented.</param>
/// <returns>Returns result of clear operation.</returns>
public override bool OnClear(out bool Implemented)
{
Implemented = false;
return true;
}
/// <summary>
/// Called when template is loaded.
/// Only if <c>ExtensionContext.Control.StandardRunContext</c> is equals to <c>REXExtensionContext.REXStandardRunContext.OperationEditTemplate</c>.
/// </summary>
/// <param name="Result">If set to <c>true</c> operation succeeded; Otherwise some errors found.</param>
public override bool OnLoadTemplate()
{
return true;
}
/// <summary>
/// Called when template is saved.
/// </summary>
/// <param name="Result">If set to <c>true</c> operation succeeded; Otherwise some errors found.</param>
public override bool OnSaveTemplate()
{
return true;
}
/// <summary>
/// Checks status of module and shows some information for user if module can't excecute action.
/// </summary>
/// <returns>Returns true if module can do some action in OnRun method; otherwise false.</returns>
public override bool OnCanRun()
{
bool result = true;
if (ExtensionRef != null)
result &= ExtensionRef.OnCanRun();
// insert code here.
return result;
}
/// <summary>
/// Runs process calculations or other operations.
/// </summary>
public override void OnRun()
{
base.OnRun();
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnRun();
}
/// <summary>
/// Shows results.
/// </summary>
public override void OnShowResults()
{
base.OnShowResults();
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnShowResults();
}
/// <summary>
/// If returns true dialog will close after OK button is clicked.
/// </summary>
/// <param name="Type">The closing type. See <see cref="REXCanCloseType"/> enum.</param>
/// <returns>Returns true if module can be closed.</returns>
public override bool OnCanClose(REXCanCloseType Type)
{
bool result = true;
if (ExtensionRef != null)
result &= ExtensionRef.OnCanClose(Type);
return result;
}
/// <summary>
/// Called during closing module.
/// </summary>
public override void OnClose()
{
base.OnClose();
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnClose();
}
/// <summary>
/// Activates or deactivates layout - module can modify layout before or after activation.
/// </summary>
/// <param name="LItem">The layout item.</param>
/// <param name="Activate">If set to <c>true</c> activate.</param>
public override void OnActivateLayout(REXLayoutItem LItem, bool Activate)
{
base.OnActivateLayout(LItem, Activate);
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnActivateLayout(LItem, Activate);
}
/// <summary>
/// Called when an error is selected on errors list dialog.
/// Raises the <see cref="ErrorSelected"/> event.
/// </summary>
/// <param name="e">The <see cref="Autodesk.REX.Framework.REXErrorsEventArgs"/> instance containing the event data.</param>
public override void OnErrorSelected(REXErrorsEventArgs e)
{
base.OnErrorSelected(e);
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnErrorSelected(e);
}
/// <summary>
/// Called when preferences changed.
/// </summary>
public override void OnPreferencesChanged()
{
DFM.BeforeParamsChange();
base.OnPreferencesChanged();
// insert code here.
if (ExtensionRef != null)
ExtensionRef.OnPreferencesChanged();
DFM.AfterParamsChange();
}
/// <summary>
/// Get specified text from resources. Needed for obfuscated strings tables.
/// </summary>
/// <param name="Name">The name of string.</param>
/// <returns>Returns specified text.</returns>
public override string OnGetText(string Name)
{
if (Name == REXConst.ENG_ResModuleDescription)
return Resources.Strings.Texts.REX_ModuleDescription;
if (Name == REXConst.ENG_ResVersionInfo)
return Resources.Strings.Texts.REX_VersionInfo;
// insert code here.
if (ExtensionRef != null)
{
string result = ExtensionRef.OnGetText(Name);
if (!string.IsNullOrEmpty(result))
return result;
}
return Resources.Strings.Texts.ResourceManager.GetString(Name);
}
/// <summary>
/// Commands the specified command struct.
/// </summary>
/// <param name="CommandStruct">The command struct.</param>
/// <returns>Returns result of event operation.</returns>
public override object OnCommand(ref REXCommand CommandStruct)
{
object result = null;
if (ExtensionRef != null)
result = ExtensionRef.OnCommand(ref CommandStruct);
// insert code here.
if (result == null)
return base.OnCommand(ref CommandStruct);
else
return result;
}
/// <summary>
/// Called when event.
/// </summary>
/// <param name="EventStruct">The event struct.</param>
/// <returns>Returns result of event operation.</returns>
public override object OnEvent(ref REXEvent EventStruct)
{
object result = null;
if (ExtensionRef != null)
result = ExtensionRef.OnEvent(ref EventStruct);
// insert code here.
if (result == null)
return base.OnEvent(ref EventStruct);
else
return result;
}
/// <summary>
/// Commands the specified command struct.
/// </summary>
/// <param name="CommandStruct">The command struct.</param>
/// <returns>Returns result of event operation.</returns>
public override object Command(ref REXCommand CommandStruct)
{
// insert code here.
return base.Command(ref CommandStruct);
}
/// <summary>
/// Events the specified event struct.
/// </summary>
/// <param name="EventStruct">The event struct.</param>
/// <returns>Returns result of event operation.</returns>
public override object Event(ref REXEvent EventStruct)
{
// insert code here.
return base.Event(ref EventStruct);
}
#endregion
/// <summary>
/// For non standard funcionality fill following methods.
/// </summary>
#region Public overrided methods for develeopment
/// <summary>
/// Create all needed objects
/// </summary>
public override bool Create()
{
bool result = base.Create();
// insert code here.
return result;
}
/// <summary>
/// Creates all needed references and data.
/// </summary>
public override void Setup()
{
base.Setup();
// insert code here.
}
#endregion
#region Public overrided UI methods - Form and Control reference
/// <summary>
/// Get reference to main control which will be embedded on MainForm.
/// </summary>
/// <returns>Returns reference to MainControl object based on REXExtensionControl.</returns>
public Resources.Dialogs.MainControl MainControl()
{
if (object.ReferenceEquals(ControlRef, null))
ControlRef = new Resources.Dialogs.MainControl(this);
return ControlRef;
}
/// <summary>
/// Get reference to main form.
/// </summary>
/// <returns>Returns reference to MainForm object based on REXExtensionForm.</returns>
public override REXExtensionWindow GetWindow()
{
if (object.ReferenceEquals(WindowRef, null))
WindowRef = new Resources.Dialogs.MainWindow(this);
return (REXExtensionWindow)WindowRef;
}
/// <summary>
/// Get the main control. Internally calls <see cref="MainControl()"/> method.
/// </summary>
/// <returns>Returns reference to MainControl object based on REXExtensionControl.</returns>
public override REXExtensionControl GetControl()
{
return MainControl();
}
#endregion
#region Public overrided data and results
/// <summary>
/// Get the data.
/// </summary>
/// <value>The data.</value>
public Data Data
{
get
{
return DataRef;
}
}
/// <summary>
/// Get the results.
/// </summary>
/// <value>The results.</value>
public Results Results
{
get
{
return ResultsRef;
}
}
/// <summary>
/// Get the API.
/// </summary>
/// <returns>Returns reference to main API object.</returns>
public override Object GetAPI()
{
return null;
}
/// <summary>
/// Get the results.
/// </summary>
/// <returns>Returns reference to object based on REXResults object.</returns>
public override REXResults GetResults()
{
return ResultsRef;
}
/// <summary>
/// Gets the data.
/// </summary>
/// <returns>Returns reference to object based on REXData object.</returns>
public override REXData GetData()
{
return DataRef;
}
/// <summary>
/// Get the settings.
/// </summary>
/// <returns>Returns reference to object based on REXExtensionSettings object.</returns>
public override REXExtensionSettings GetSettings()
{
if (ExtensionSettingsRef == null)
ExtensionSettingsRef = new ExtensionSettings(this);
return ExtensionSettingsRef;
}
#endregion
//DOM-IGNORE-BEGIN
#region Private members
private Data DataRef;
private Results ResultsRef;
private Resources.Dialogs.MainWindow WindowRef;
private Resources.Dialogs.MainControl ControlRef;
private Resources.Dialogs.SelectedElementControl SelectedElementControlRef;
private REX.ContentGeneratorWPF.Resources.ContentGeneratorReadControl CGReadControlRef;
private REX.ContentGeneratorWPF.Resources.Dialogs.ContentGeneratorCreateControl CGCreateControlRef;
private ExtensionSettings ExtensionSettingsRef;
private IREXExtension ExtensionRef;
#endregion
#region public members
public REX.ContentGenerator.Converters.REXFamilyConverter Converter { get; set; }
#endregion
//DOM-IGNORE-END
}
}
@@ -0,0 +1,44 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace REX.ContentGeneratorWPF.Main
{
/// <summary>
/// Represents the property of any type characterized by Name and Value.
/// </summary>
public class PropertyItem
{
/// <summary>
/// Gets or sets the name.
/// </summary>
/// <value>The name.</value>
public string Name { get; set; }
/// <summary>
/// Gets or sets the value.
/// </summary>
/// <value>The value.</value>
public string Value { get; set; }
}
}
@@ -0,0 +1,288 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.IO;
using Autodesk.REX.Framework;
using REX.Common;
namespace REX.ContentGeneratorWPF
{
[Serializable]
internal class ResultsSerializable : REXExtensionDataSerializable
{
/// <summary>
/// Initializes a new instance of the <see cref="ResultsSerializable"/> class.
/// </summary>
public ResultsSerializable()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="REXExtensionDataSerializable"/> class.
/// A required constructor by ISerializable to deserialize the object. It is important to implement
/// this required constructor. Note that no warning will be given if this constructor is absent and
/// an exception will be thrown if you attempt to deserialize this object.
/// It is a good idea to make the constructor protected unless the class was sealed, in which case
/// the constructor should be marked as private. Making the constructor protected ensures that users
/// cannot explicitly call this constructor while still allowing derived classes to call it. The same
/// logic applies if this class was sealed except that there will be no derived classes.
/// </summary>
/// <example>
/// <code>
/// protected REXExtensionDataSerializable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
/// {
/// strPrivate = info.GetString( "s1" );
/// strPublic = info.GetString( "s2" );
/// obMyClass = (SomeClass) info.GetValue( "ob", typeof(SomeClass) ); // deserializing an object
/// }
/// </code>
/// </example>
/// <param name="info">The info.</param>
/// <param name="ctx">The CTX.</param>
protected ResultsSerializable(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
{
}
/// <summary>
/// A required method by ISerializable to serialize the object. Simply add variables to be serialized
/// as name/value pairs to SerializationInfo object. Here you decide which member variables to serialize.
/// Note that any name can be used to identify each serialized field
/// </summary>
/// <example>
/// <code>
/// public virtual void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
/// {
/// info.AddValue("s1", strPrivate);
/// info.AddValue("s2", strPublic);
/// into.AddValue("ob", obMyClass); // Serializing an object
/// }
/// </code>
/// </example>
/// <param name="info">The info.</param>
/// <param name="ctx">The CTX.</param>
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext ctx)
{
}
/// <summary>
/// Sets the results reference.
/// </summary>
/// <param name="results">The results.</param>
internal void SetResultsReference(Results results)
{
ResultsRef = results;
}
private Results ResultsRef;
}
/// <summary>
/// Main data class to store all results in REX base units.
/// </summary>
internal class Results : REXResults
{
/// <summary>
/// Initializes a new instance of a <see cref="Results"/> class.
/// </summary>
/// <param name="Ext">The reference to REXExtension object.</param>
public Results(REXExtension Ext)
: base(Ext)
{
VersionCurrent = 1;
ResultsSerializableRef = new ResultsSerializable();
}
/// <summary>
/// Get the main extension.
/// </summary>
/// <value>The main extension.</value>
internal Extension ThisMainExtension
{
get
{
return (Extension)ThisExtension;
}
}
/// <summary>
/// Called when [set defaults].
/// </summary>
/// <param name="UnitsSystem">The units system.</param>
/// <summary>
/// Called when set defaults.
/// </summary>
/// <param name="UnitsSystem">The units system.</param>
/// <example>
/// <code>
/// #region Structures
/// public double C;
/// public double D;
/// #endregion
///
/// protected override void OnSetDefaults(REXUnitsSystemType UnitsSystem)
/// {
/// if (UnitsSystem == REXUnitsSystemType.Imperial)
/// {
/// C = 0;
/// D = 0;
/// }
/// else if (UnitsSystem == REXUnitsSystemType.Metric)
/// {
/// C = 0;
/// D = 0;
/// }
/// }
/// </code>
/// </example>
protected override void OnSetDefaults(REXUnitsSystemType UnitsSystem)
{
if (UnitsSystem == REXUnitsSystemType.Imperial)
{
}
else if (UnitsSystem == REXUnitsSystemType.Metric)
{
}
}
/// <summary>
/// Called when save data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
/// <example>
/// <code>
///protected override bool OnSave(ref BinaryWriter Data)
///{
/// if (Mode == DataMode.ModeFile)
/// {
/// }
/// if (Mode == DataMode.ModeProject)
/// {
/// }
/// if (Mode == DataMode.ModeObject)
/// {
/// }
///
/// Data.Write(C);
/// Data.Write(D);
///
/// return true;
///}
/// </code>
/// </example>
protected override bool OnSave(ref BinaryWriter Data)
{
if (Mode == DataMode.ModeFile)
{
}
if (Mode == DataMode.ModeProject)
{
}
if (Mode == DataMode.ModeObject)
{
}
return true;
}
/// <summary>
/// Called when load data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
/// <example>
/// <code>
/// protected override bool OnLoad(ref BinaryReader Data)
/// {
/// if (Mode == DataMode.ModeFile)
/// {
/// }
/// if (Mode == DataMode.ModeProject)
/// {
/// }
/// if (Mode == DataMode.ModeObject)
/// {
/// }
///
/// if (VersionLoaded >= 1)
/// {
/// C = Data.ReadDouble();
/// D = Data.ReadDouble();
/// }
///
/// return true;
/// }
/// </code>
/// </example>
protected override bool OnLoad(ref BinaryReader Data)
{
if (Mode == DataMode.ModeFile)
{
}
if (Mode == DataMode.ModeProject)
{
}
if (Mode == DataMode.ModeObject)
{
}
if (VersionLoaded >= 1)
{
}
return true;
}
/// <summary>
/// Called when save data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
protected override bool OnSave(ref Stream DataStream, ref System.Runtime.Serialization.IFormatter DataFormater)
{
if (ResultsSerializableRef != null)
DataFormater.Serialize(DataStream, ResultsSerializableRef);
return true;
}
/// <summary>
/// Called when load data.
/// </summary>
/// <param name="Data">The data.</param>
/// <returns>Returns true if succeeded.</returns>
protected override bool OnLoad(ref Stream DataStream, ref System.Runtime.Serialization.IFormatter DataFormater)
{
ResultsSerializableRef = (ResultsSerializable)DataFormater.Deserialize(DataStream);
return true;
}
internal ResultsSerializable ResultsSerializableRef;
}
}
@@ -0,0 +1,335 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Text;
using Autodesk.REX.Framework;
using REX.Common;
using Autodesk.Revit.DB;
using REX.ContentGenerator.Families;
namespace REX.ContentGeneratorWPF.Main.Revit
{
internal class ExtensionRevit : REX.Common.REXExtensionProduct
{
#region properties
/// <summary>
/// The instance of Revit family converter.
/// </summary>
REX.ContentGenerator.Converters.RVTFamilyConverter RVTConverter;
/// <summary>
/// Get the main extension.
/// </summary>
/// <value>The main extension.</value>
internal Extension ThisMainExtension
{
get
{
return (Extension)ThisExtension;
}
}
#endregion
#region<constructor>
public ExtensionRevit(REX.Common.REXExtension Ext)
: base(Ext)
{
RVTConverter = new REX.ContentGenerator.Converters.RVTFamilyConverter(ThisExtension.Revit.ActiveDocument, true);
}
#endregion
#region IREXExtension methods - filled
public override void OnCreate()
{
string error;
if (ReadSelectedElementFromRevit(out error))
{
ReadParamAndDBDescription();
}
else
{
ThisExtension.System.SystemBase.Errors.AddError("Error2", error, null);
}
}
public override void OnSetData()
{
if (ThisMainExtension.Data.NewSection == null)
{
ThisMainExtension.System.SystemBase.Errors.AddError("Error", "The section was not defined.", null);
}
}
public override void OnRun()
{
ThisMainExtension.Progress.Steps = 2;
ThisMainExtension.Progress.Position = 1;
ThisMainExtension.Progress.Header = "Element creation";
ThisMainExtension.Progress.Text = "...";
ThisMainExtension.Progress.Show(ThisMainExtension.GetWindowForParent());
CreateNewFamilySymbol();
if (ThisMainExtension.Data.NewFamilySymbol == null)
{
ThisExtension.System.SystemBase.Errors.AddError("Error", "Creation of the new family failed.", null);
}
else
{
if (!ApplyFamilySymbolToSelectedElement())
{
ThisExtension.System.SystemBase.Errors.AddError("Error", "Setting the new family to the selected element failed.", null);
}
else
{
ThisExtension.System.SystemBase.Errors.AddError("Error2", "The new family was applied to the selected element", null, REXErrorLevel.Info);
}
}
RVTConverter.Close();
ThisMainExtension.Progress.Hide();
}
#endregion
#region Private methods
/// <summary>
/// Reads the current selection of Revit.
/// </summary>
/// <param name="errorMessage">The error message.</param>
/// <returns>True if reading succeed; otherwise, false.</returns>
private bool ReadSelectedElementFromRevit(out string errorMessage)
{
errorMessage = string.Empty;
if (ThisExtension.Revit.ActiveUIDocument.Selection.GetElementIds().Count == 0)
{
errorMessage = "The selection is empty";
return false;
}
if (ThisExtension.Revit.ActiveUIDocument.Selection.GetElementIds().Count > 1)
{
errorMessage = "The selection contains more than one element";
return false;
}
IEnumerator<ElementId> enumerator = ThisExtension.Revit.ActiveUIDocument.Selection.GetElementIds().GetEnumerator();
enumerator.Reset();
enumerator.MoveNext();
Element el = ThisExtension.Revit.ActiveUIDocument.Document.GetElement(enumerator.Current);
FamilyInstance familyInstance = el as FamilyInstance;
if (familyInstance == null)
{
errorMessage = "Selected element is not a FamilyInstance";
return false;
}
if (familyInstance.StructuralType == Autodesk.Revit.DB.Structure.StructuralType.Beam ||
familyInstance.StructuralType == Autodesk.Revit.DB.Structure.StructuralType.Column ||
familyInstance.StructuralType == Autodesk.Revit.DB.Structure.StructuralType.Brace)
{
ThisMainExtension.Data.SelectedElement = familyInstance;
FillPropertiesOfSelectedElement();
FillGeometryOfSelectedElement();
return true;
}
else
{
errorMessage = "Selected element is not a beam nor a column";
return false;
}
}
/// <summary>
/// Fills the properties based on the selected element.
/// </summary>
private void FillPropertiesOfSelectedElement()
{
List<PropertyItem> properties = new List<PropertyItem>();
properties.Add(new PropertyItem() { Name = "Name", Value = ThisMainExtension.Data.SelectedElement.Name });
properties.Add(new PropertyItem() { Name = "Id", Value = ThisMainExtension.Data.SelectedElement.Id.IntegerValue.ToString() });
properties.Add(new PropertyItem() { Name = "Structural usage", Value = ThisMainExtension.Data.SelectedElement.StructuralUsage.ToString() });
properties.Add(new PropertyItem() { Name = "Structural type", Value = ThisMainExtension.Data.SelectedElement.StructuralType.ToString() });
properties.Add(new PropertyItem() { Name = "Structural material type", Value = ThisMainExtension.Data.SelectedElement.StructuralMaterialType.ToString() });
foreach (Parameter param in ThisMainExtension.Data.SelectedElement.Parameters)
{
string valueString = "";
if (param.StorageType == StorageType.Double)
valueString = param.AsValueString();
else if (param.StorageType == StorageType.String)
valueString = param.AsString();
else if (param.StorageType == StorageType.ElementId)
{
ElementId id = param.AsElementId();
Element elem = ThisMainExtension.Revit.ActiveDocument.GetElement(id);
if (elem != null)
valueString = elem.Name;
}
if (!string.IsNullOrEmpty(valueString))
properties.Add(new PropertyItem() { Name = param.Definition.Name, Value = valueString });
}
ThisMainExtension.Data.SelectedElementProperties = properties;
}
/// <summary>
/// Builds the geometry based on the selected element.
/// </summary>
private void FillGeometryOfSelectedElement()
{
List<Triangle> triangles = new List<Triangle>();
Options opt = ThisMainExtension.Revit.ActiveDocument.Application.Create.NewGeometryOptions();
opt.DetailLevel = ViewDetailLevel.Fine;
GeometryElement gel = ThisMainExtension.Data.SelectedElement.get_Geometry(opt);
foreach (GeometryObject geoObject in gel)
{
Solid s = geoObject as Solid;
if (null != s)
{
foreach (Face f in s.Faces)
{
Mesh m = f.Triangulate();
for (int i = 0; i < m.NumTriangles; i++)
{
MeshTriangle mt = m.get_Triangle(i);
XYZ pt1 = mt.get_Vertex(0);
XYZ pt2 = mt.get_Vertex(1);
XYZ pt3 = mt.get_Vertex(2);
triangles.Add(new Triangle(new REX.Common.Geometry.REXxyz(pt1.X, pt1.Y, pt1.Z),
new REX.Common.Geometry.REXxyz(pt2.X, pt2.Y, pt2.Z),
new REX.Common.Geometry.REXxyz(pt3.X, pt3.Y, pt3.Z)));
}
}
continue;
}
GeometryInstance inst = geoObject as GeometryInstance;
if (null != inst)
{
foreach (GeometryObject o in inst.SymbolGeometry)
{
s = o as Solid;
if (s != null)
{
foreach (Face f in s.Faces)
{
Mesh m = f.Triangulate();
m = m.get_Transformed(inst.Transform);
for (int i = 0; i < m.NumTriangles; i++)
{
MeshTriangle mt = m.get_Triangle(i);
XYZ pt1 = mt.get_Vertex(0);
XYZ pt2 = mt.get_Vertex(1);
XYZ pt3 = mt.get_Vertex(2);
triangles.Add(new Triangle(new REX.Common.Geometry.REXxyz(pt1.X, pt1.Y, pt1.Z),
new REX.Common.Geometry.REXxyz(pt2.X, pt2.Y, pt2.Z),
new REX.Common.Geometry.REXxyz(pt3.X, pt3.Y, pt3.Z)));
}
}
}
}
}
}
ThisMainExtension.Data.SelectedElementGeometry = triangles;
}
/// <summary>
/// Initializes the instances of database and parametric sections in Data based on the selected element.
/// </summary>
private void ReadParamAndDBDescription()
{
ThisMainExtension.Progress.Steps = 2;
ThisMainExtension.Progress.Position = 1;
ThisMainExtension.Progress.Header = "Element reading";
ThisMainExtension.Progress.Text = "...";
ThisMainExtension.Progress.Show(ThisMainExtension.GetWindowForParent());
ThisMainExtension.Data.DatabaseSection = RVTConverter.GetFamily(ThisMainExtension.Data.SelectedElement, ECategoryType.SECTION_DB) as REXFamilyType_DBSection;
ThisMainExtension.Data.ParametricSection = RVTConverter.GetFamily(ThisMainExtension.Data.SelectedElement, ECategoryType.SECTION_PARAM) as REXFamilyType_ParamSection;
if (ThisMainExtension.Data.DatabaseSection != null)
{
//Getting all records where the specified element exists.
ThisMainExtension.Data.DatabaseRecords = ThisMainExtension.Converter.GetDBList(ThisMainExtension.Data.DatabaseSection,
ThisMainExtension.Converter.GetDatabaseDirectory(REX.ContentGenerator.Families.ECategoryType.SECTION_DB), REX.ContentGenerator.Families.ECategoryType.SECTION_DB);
}
ThisMainExtension.Progress.Hide();
}
/// <summary>
/// Creates the new FamilySymbol.
/// </summary>
private void CreateNewFamilySymbol()
{
if (ThisMainExtension.Data.NewSection != null)
{
if (ThisMainExtension.Data.SelectedElement.StructuralType == Autodesk.Revit.DB.Structure.StructuralType.Column)
ThisMainExtension.Data.NewSection.ElementType = EElementType.COLUMN;
else
ThisMainExtension.Data.NewSection.ElementType = EElementType.BEAM;
ThisMainExtension.Data.NewSection.Material = EMaterial.STEEL;
ThisMainExtension.Data.NewFamilySymbol = RVTConverter.GetElement(ThisMainExtension.Data.NewSection) as Autodesk.Revit.DB.FamilySymbol;
}
}
/// <summary>
/// Applies the new FamilySymbol to the selected element.
/// </summary>
/// <returns></returns>
private bool ApplyFamilySymbolToSelectedElement()
{
try
{
ThisMainExtension.Data.SelectedElement.Symbol = ThisMainExtension.Data.NewFamilySymbol;
return true;
}
catch
{
}
return false;
}
#endregion
}
}
@@ -0,0 +1,79 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Threading;
using System.Reflection;
using REX.Common;
using Autodesk.REX.Framework;
namespace REX.ContentGeneratorWPF
{
/// <summary>
/// Allows parsing module settings located in Configuration/settings.xml file.
/// </summary>
internal class ExtensionSettings : REXExtensionSettings
{
/// <summary>
/// Initializes a new instance of the <see cref="ExtensionSettings"/> class.
/// </summary>
/// <param name="Ext">The reference to REXExtension object.</param>
public ExtensionSettings(REXExtension Ext)
: base(Ext)
{
}
/// <summary>
/// Gets the main extension.
/// </summary>
/// <value>The main extension.</value>
internal Extension ThisMainExtension
{
get
{
return (Extension)ThisExtension;
}
}
/// <summary>
/// Called when parsing Configuration / settings.xml
/// file. Concerns only tags which is not supported by the
/// class.
/// </summary>
/// <param name="Node">The XML node.</param>
/// <returns>
/// <c>true</c>If is successfully; otherwise, <c>false</c> -
/// reserved only for exceptions.
/// </returns>
public override bool OnParse(System.Xml.XmlNode Node)
{
return true;
}
}
}
@@ -0,0 +1,68 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using REX.Common.Geometry;
namespace REX.ContentGeneratorWPF.Main
{
/// <summary>
/// Represents the geometry of triangle.
/// </summary>
public class Triangle
{
/// <summary>
/// Gets or sets the first point.
/// </summary>
/// <value>The point.</value>
public REXxyz Pt1 { get; set; }
/// <summary>
/// Gets or sets the second point.
/// </summary>
/// <value>The point.</value>
public REXxyz Pt2 { get; set; }
/// <summary>
/// Gets or sets the third point.
/// </summary>
/// <value>The point.</value>
public REXxyz Pt3 { get; set; }
/// <summary>
/// Initializes a new instance of the <see cref="Triangle"/> class.
/// </summary>
public Triangle()
{
}
/// <summary>
/// Initializes a new instance of the <see cref="Triangle"/> class.
/// </summary>
/// <param name="pt1">The first point.</param>
/// <param name="pt2">The second point.</param>
/// <param name="pt3">The third point.</param>
public Triangle(REXxyz pt1, REXxyz pt2, REXxyz pt3)
{
Pt1 = pt1;
Pt2 = pt2;
Pt3 = pt3;
}
}
}
@@ -0,0 +1,136 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Reflection;
using System.Runtime.InteropServices;
using Autodesk.REX.Framework;
using REX.Common;
namespace REX.ContentGeneratorWPF
{
/// <summary>
/// Main class for REX manager and interactions with system.
/// </summary>
public class Application : REXFoundationApplication
{
protected override void OnCreateApplication()
{
base.OnCreateApplication();
ApplicationRef = new FoundationApplication();
}
}
/// <summary>
/// Main class for REX manager and interactions with system
/// </summary>
/// <remarks></remarks>
public class FoundationApplication : REXApplication
{
/// <summary>
/// Initializes a new instance of the <see cref="Application"/> class.
/// Creates Extension class.
/// </summary>
public FoundationApplication()
{
AppExtension = new Extension(this);
}
/// <summary>
/// Called when create. Set ExtensionContext structure and enable or disable some functionalities.
/// </summary>
/// <returns>Returns true if succeeded.</returns>
/// <example>
/// <code>
///public override bool OnCreate()
///{
/// AppExtension.ExtensionContext.Control.LanguagesSupport = true; // switches off languages support.
/// AppExtension.ExtensionContext.Control.UserInterface = false; // module will work similar to run in context mode.
/// //...
/// return true;
///}
/// </code>
/// </example>
public override bool OnCreate()
{
// insert code here
return true;
}
/// <summary>
/// Get the extension.
/// </summary>
/// <returns>Returns reference to Extension object.</returns>
public override REXExtension GetExtension()
{
// insert code here
return AppExtension;
}
/// <summary>
/// Get the minimum required version of specified engine's component.
/// </summary>
/// <param name="Version">The version.</param>
/// <returns>Returns version string - "Major.Minor".</returns>
public override string GetVersion(REXVersionType Version)
{
switch (Version)
{
case REXVersionType.Common:
case REXVersionType.Controls:
case REXVersionType.Math:
return "1.0";
case REXVersionType.Engine:
return "2.3";
case REXVersionType.CommercialEngine:
return "2.3";
}
return "";
}
/// <summary>
/// Get the text. See <see cref="Extension.GetText()"/> method.
/// </summary>
/// <param name="Name">The name.</param>
/// <returns>Returns specified text.</returns>
public override string GetText(string Name)
{
return AppExtension.OnGetText(Name);
}
#region Private members
private Extension AppExtension;
#endregion
}
}
@@ -0,0 +1,191 @@
//
// (C) Copyright 2007-2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
using Autodesk.REX.Framework;
#if (REVIT)
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
#endif
namespace REX.ContentGeneratorWPF
{
#if (REVIT)
/// <summary>
/// The class enables direct connection between Revit and extension.
/// </summary>
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
public class DirectRevitAccess : IExternalCommand
#else
/// <summary>
/// The class enables direct connection between application and extension.
/// </summary>
public class DirectAccess
#endif
{
#if (REVIT)
/// <summary>
/// Executes the extension.
/// </summary>
/// <param name="commandData">The command data.</param>
/// <param name="message">The message.</param>
/// <param name="elements">The elements.</param>
/// <returns>Returns execution result.</returns>
public Result Execute(Autodesk.Revit.UI.ExternalCommandData commandData, ref string message, ElementSet elements)
#else
/// <summary>
/// Executes the extension.
/// </summary>
public bool Run()
#endif
{
AppDomain currentDomain = AppDomain.CurrentDomain;
if (currentDomain != null)
currentDomain.AssemblyResolve += new ResolveEventHandler(currentDomain_AssemblyResolve);
#if (REVIT)
return Proxy.Execute(commandData, ref message, elements);
#else
return Proxy.Run();
#endif
}
System.Reflection.Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
Autodesk.REX.Framework.REXConfiguration.Initialize(System.Reflection.Assembly.GetExecutingAssembly());
return Autodesk.REX.Framework.REXAssemblies.Resolve(sender, args, System.Reflection.Assembly.GetExecutingAssembly());
}
private static class Proxy
{
#if (REVIT)
public static Result Execute(Autodesk.Revit.UI.ExternalCommandData commandData, ref string message, ElementSet elements)
{
ExtensionDirectRevitAccess extensionDirectRevitAccess = new ExtensionDirectRevitAccess();
return extensionDirectRevitAccess.Execute(commandData, ref message, elements);
}
#else
public static bool Run()
{
ExtensionDirectAccess extensionDirectAccess = new ExtensionDirectAccess();
return extensionDirectAccess.Run();
}
#endif
}
}
#if (REVIT)
/// <summary>
/// The class enables direct connection between Revit and extension.
/// </summary>
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
public class ExtensionDirectRevitAccess : REX.Common.REXDirectRevitAccess, IExternalCommand
#else
/// <summary>
/// The class enables direct connection between application and extension.
/// </summary>
public class ExtensionDirectAccess
#endif
{
#if (REVIT)
/// <summary>
/// Executes the extension.
/// </summary>
/// <param name="commandData">The command data.</param>
/// <param name="message">The message.</param>
/// <param name="elements">The elements.</param>
/// <returns>Returns execution result.</returns>
public Result Execute(Autodesk.Revit.UI.ExternalCommandData commandData, ref string message, ElementSet elements)
#else
/// <summary>
/// Executes the extension.
/// </summary>
public bool Run()
#endif
{
try
{
AppRef = new Application();
REXContext context = new REXContext();
context.Control.Mode = REXMode.Dialog;
context.Control.ControlMode = REXControlMode.ModalDialog;
#if (REVIT)
PresetContext(ref commandData, ref message, ref elements, ref context);
#else
context.Product.Type = REXInterfaceType.None;
#endif
Transaction tran = new Transaction(commandData.Application.ActiveUIDocument.Document, "REX.ContentGeneratorWPF transaction");
tran.Start();
REXEnvironment Env = new REXEnvironment(REX.Common.REXConst.ENG_DedicatedVersionName);
if (Env.LoadEngine(ref context))
{
if (AppRef.Create(ref context))
{
AppRef.Show();
#if (REVIT)
}
}
tran.Commit();
if (context.Extension.Result == REXResultType.None || context.Extension.Result == REXResultType.Succeeded)
return Result.Succeeded;
else if (context.Extension.Result == REXResultType.Cancelled)
return Result.Cancelled;
else
return Result.Failed;
#else
return true;
}
}
return false;
#endif
}
catch (Exception ex)
{
#if (REVIT)
message = ex.Message;
return Result.Failed;
#else
return false;
#endif
}
}
private Application AppRef;
}
}
@@ -0,0 +1,165 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
namespace REX.Common
{
/// <summary>
/// Foundation class for REX.Foundation usage.
/// </summary>
public class REXFoundationApplication : Autodesk.REX.Framework.IREXApplication2
{
protected Autodesk.REX.Framework.IREXApplication2 ApplicationRef;
/// <summary>
/// Initializes a new instance of the <see cref="REXApplication"/> class.
/// </summary>
public REXFoundationApplication()
{
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.AssemblyResolve += new ResolveEventHandler(currentDomain_AssemblyResolve);
OnCreateApplication();
}
protected virtual void OnCreateApplication()
{
}
/// <summary>
/// Handles the AssemblyResolve event of the currentDomain control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="args">The <see cref="System.ResolveEventArgs"/> instance containing the event data.</param>
/// <returns></returns>
System.Reflection.Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
Autodesk.REX.Framework.REXConfiguration.Initialize(System.Reflection.Assembly.GetExecutingAssembly());
return Autodesk.REX.Framework.REXAssemblies.Resolve(sender, args, Autodesk.REX.Framework.REXConfiguration.Control.VersionName, System.Reflection.Assembly.GetExecutingAssembly());
}
#region IREXApplication2 Members
/// <summary>
/// Create module.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if succeeded.</returns>
public bool Create(ref Autodesk.REX.Framework.REXContext AppContext)
{
if (AppContext.Extension.Name == null || AppContext.Extension.Name == "")
AppContext.Extension.Name = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
return ApplicationRef.Create(ref AppContext);
}
/// <summary>
/// Creates and shows module as modal dialog.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if suceeded.</returns>
public bool Modal(ref Autodesk.REX.Framework.REXContext AppContext)
{
if (AppContext.Extension.Name == null || AppContext.Extension.Name == "")
AppContext.Extension.Name = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
return ApplicationRef.Modal(ref AppContext);
}
#endregion
#region IREXApplication Members
/// <summary>
/// Closes this instance.
/// </summary>
public void Close()
{
ApplicationRef.Close();
}
/// <summary>
/// Commands the specified command struct.
/// </summary>
/// <param name="CommandStruct">The command struct.</param>
/// <returns></returns>
public object Command(ref Autodesk.REX.Framework.REXCommand CommandStruct)
{
return ApplicationRef.Command(ref CommandStruct);
}
/// <summary>
/// Controls this instance.
/// </summary>
/// <returns></returns>
public object Control()
{
return ApplicationRef.Control();
}
/// <summary>
/// Creates and shows module as modal dialog.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if suceeded.</returns>
public bool Create(ref Autodesk.REX.Framework.REXApplicationContext AppContext)
{
return ApplicationRef.Create(ref AppContext);
}
/// <summary>
/// Called when event.
/// </summary>
/// <param name="EventStruct">The event structure.</param>
/// <returns>Returns result of event operation.</returns>
public object Event(ref Autodesk.REX.Framework.REXEvent EventStruct)
{
return ApplicationRef.Event(ref EventStruct);
}
/// <summary>
/// Creates and shows module as modal dialog.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if suceeded.</returns>
public bool Modal(ref Autodesk.REX.Framework.REXApplicationContext AppContext)
{
return ApplicationRef.Modal(ref AppContext);
}
/// <summary>
/// Shows this module.
/// </summary>
/// <returns>Returns true if succeeded.</returns>
public bool Show()
{
return ApplicationRef.Show();
}
#endregion
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Windows;
// 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("ContentGeneratorWPF")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("ContentGeneratorWPF")]
[assembly: AssemblyCopyright("")]
[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("1ac8c585-bc98-4e45-9bb6-5ac81a98d286")]
// 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,92 @@
<rexf:REXExtensionControl x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.ContentGeneratorCreateControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rexf="clr-namespace:REX.Common;assembly=REX.Foundation.WPF"
xmlns:rexc="clr-namespace:REX.Controls.WPF;assembly=REX.Controls.WPF"
xmlns:local="clr-namespace:REX.ContentGeneratorWPF.Resources.Dialogs"
Height="454" Width="638">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="20"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<RadioButton Name="radioParametric" VerticalAlignment="Center" Grid.Column="0" Grid.Row="0" Content="Parametric" Checked="radioParametric_Checked" Unchecked="radioParametric_Checked" IsChecked="True"></RadioButton>
<RadioButton Name="radioDatabase" VerticalAlignment="Center" Grid.Column="1" Grid.Row="0" Content="Database" Checked="radioParametric_Checked" Unchecked="radioParametric_Checked" IsChecked="False"></RadioButton>
<Border Margin="2" Name="paramGroupBox" Grid.Column="0" Grid.Row="1" BorderThickness="1" BorderBrush="Gray">
<Grid Name="gridParam">
<Grid.RowDefinitions>
<RowDefinition Height="*"></RowDefinition>
<RowDefinition Height="2*"></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<local:PolygonViewer x:Name="viewer" Grid.Column="0" Grid.Row="0"></local:PolygonViewer>
<Grid x:Name="gridParametric" Grid.Row="1">
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<StackPanel Grid.Row="1">
<Grid Height="74">
<TextBlock Margin="19,39.001,0,0" Name="textBlock1" Text="Type=" HorizontalAlignment="Left" Width="56" Height="16.12" VerticalAlignment="Top" />
<rexc:REXImageComboBox Name="comboParametricTypes" Margin="81,2,6,0" Height="69.12" VerticalAlignment="Top" SelectionChanged="comboParametricTypes_SelectionChanged"></rexc:REXImageComboBox>
</Grid>
<Grid Height="28">
<TextBlock HorizontalAlignment="Left" Margin="19,6,0,8" Name="textBlock2" Text="h=" Width="72" />
<rexc:REXUnitEditBox Margin="0,3,6,1" Name="editBoxH" Power="1" UnitType="Dimensions_SectionDim" RememberCorrect="True" HorizontalAlignment="Right" Width="142" OnDisableAction="eHIDE_FOREGROUND" LostKeyboardFocus="editBoxH_LostKeyboardFocus" />
</Grid>
<Grid Height="28">
<TextBlock Height="15" HorizontalAlignment="Left" Margin="19,6,0,8" Name="textBlock3" Text="b=" VerticalAlignment="Top" Width="72" />
<rexc:REXUnitEditBox Margin="0,2,6,2" Name="editBoxB" Power="1" UnitType="Dimensions_SectionDim" RememberCorrect="True" HorizontalAlignment="Right" Width="142" OnDisableAction="eHIDE_FOREGROUND" LostKeyboardFocus="editBoxH_LostKeyboardFocus"/>
</Grid>
<Grid Height="28">
<rexc:REXIndexLabel Height="15" HorizontalAlignment="Left" Margin="19,6,0,8" Name="textBlock4" Text="t{f}=" VerticalAlignment="Bottom" Width="72" />
<rexc:REXUnitEditBox Margin="0,2,6,2" Name="editBoxTW" Power="1" UnitType="Dimensions_SectionDim" RememberCorrect="True" HorizontalAlignment="Right" Width="142" OnDisableAction="eHIDE_FOREGROUND" LostKeyboardFocus="editBoxH_LostKeyboardFocus"/>
</Grid>
<Grid Height="28">
<rexc:REXIndexLabel HorizontalAlignment="Left" Margin="19,6,0,8" Name="textBlock5" Text="t{w}=" Width="72" Height="15" VerticalAlignment="Bottom" />
<rexc:REXUnitEditBox Margin="0,2,6,2" Name="editBoxTF" Power="1" UnitType="Dimensions_SectionDim" RememberCorrect="True" HorizontalAlignment="Right" Width="142" OnDisableAction="eHIDE_FOREGROUND" LostKeyboardFocus="editBoxH_LostKeyboardFocus"/>
</Grid>
<Grid Height="28">
<rexc:REXIndexLabel Height="15" HorizontalAlignment="Left" Margin="19,6,0,8" Name="rEXIndexLabel1" Text="A=" VerticalAlignment="Bottom" Width="72" />
<rexc:REXUnitEditBox Margin="0,2,6,2" Name="editBoxA" Power="2" RememberCorrect="True" UnitType="Dimensions_SectionDim" IsEnabled="False" BackgroundDisabledStandard="White" HorizontalAlignment="Right" Width="142" />
</Grid>
<Grid Height="28">
<rexc:REXIndexLabel Height="15" HorizontalAlignment="Left" Margin="19,6,0,8" Text="I{y}=" VerticalAlignment="Bottom" Width="72" />
<rexc:REXUnitEditBox Margin="0,2,6,2" Name="editBoxIy" Power="4" RememberCorrect="True" UnitType="Dimensions_SectionDim" IsEnabled="False" BackgroundDisabledStandard="White" HorizontalAlignment="Right" Width="142" />
</Grid>
<Grid Height="28">
<rexc:REXIndexLabel Height="15" HorizontalAlignment="Left" Margin="19,6,0,8" Text="I{z}=" VerticalAlignment="Bottom" Width="72" />
<rexc:REXUnitEditBox Margin="0,2,6,2" Name="editBoxIz" Power="4" RememberCorrect="True" UnitType="Dimensions_SectionDim" IsEnabled="False" BackgroundDisabledStandard="White" HorizontalAlignment="Right" Width="142" />
</Grid>
</StackPanel>
</Grid>
</Grid>
</Border>
<Border Margin="2" Name="dbGroupBox" Grid.Column="1" Grid.Row="1" BorderThickness="1" BorderBrush="Gray">
<Grid Name="gridDB" Visibility="Hidden">
<Grid.RowDefinitions>
<RowDefinition Height="30"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<Button Name="buttonDBSelect" Content="Select" Width="100" Height="24" VerticalAlignment="Center" HorizontalAlignment="Left" Click="buttonDBSelect_Click"></Button>
<TextBlock Name="textDBSelected" Margin="103,1,1,1" VerticalAlignment="Center" Height="20"></TextBlock>
<local:PropertiesControl x:Name="databasesProperties" Grid.Column="0" Grid.Row="1"></local:PropertiesControl>
</Grid>
</Border>
</Grid>
</rexf:REXExtensionControl>
@@ -0,0 +1,358 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using REX.Common;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Represents the control which allows the user to select a new type which will be applied to the selected element in Revit.
/// </summary>
public partial class ContentGeneratorCreateControl : REX.Common.REXExtensionControl
{
/// <summary>
/// Help flag to freeze events.
/// </summary>
bool Freeze = false;
/// <summary>
/// The parametric section.
/// </summary>
REX.ContentGenerator.Families.REXFamilyType_ParamSection ParametricSection;
/// <summary>
/// The database section.
/// </summary>
REX.ContentGenerator.Families.REXFamilyType_DBSection DatabaseSection;
/// <summary>
/// The object which manages the database browser dialog.
/// </summary>
REX.ContentGenerator.Dialog.REXContentDialogManager DBExplorerDialogManager;
/// <summary>
/// The settings of the database browser dialog.
/// </summary>
REX.ContentGenerator.Dialog.REXContentDialogSettings DBExplorerSettings;
/// <summary>
/// Gets the main extension.
/// </summary>
/// <value>The main extension.</value>
internal Extension ThisMainExtension
{
get
{
return (Extension)ThisExtension;
}
}
/// <summary>
/// Gets the parametric description.
/// </summary>
/// <value>The parametric description.</value>
REX.ContentGenerator.Families.REXSectionParamDescription ParametricDescription
{
get
{
return ParametricSection.Parameters;
}
}
/// <summary>
/// Initializes a new instance of the <see cref="ContentGeneratorCreateControl"/> class.
/// </summary>
public ContentGeneratorCreateControl()
{
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the <see cref="ContentGeneratorCreateControl"/> class.
/// </summary>
/// <param name="extension">The extension object.</param>
public ContentGeneratorCreateControl(REX.Common.REXExtension extension)
: base(extension)
{
InitializeComponent();
SetDefaultParamDescription();
}
/// <summary>
/// Initializes the dialog with current settings.
/// </summary>
public void SetDialog()
{
//combo box
comboParametricTypes.Items.Add(new REX.Controls.WPF.REXImageComboBoxItem()
{ Image = REXLibrary.GetResourceImage(GetType().Assembly,"Resources/Other/Images/bmp_I.png")
, Text = "I"});
comboParametricTypes.Items.Add(new REX.Controls.WPF.REXImageComboBoxItem() { Image = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/bmp_L.png")
, Text = "Angle"});
comboParametricTypes.Items.Add(new REX.Controls.WPF.REXImageComboBoxItem() { Image = REXLibrary.GetResourceImage(GetType().Assembly, "Resources/Other/Images/bmp_RECT.png")
, Text = "Rectangle"});
//edit boxes
editBoxB.UnitEngine = ThisExtension.System.Units.UnitsBase;
editBoxH.UnitEngine = ThisExtension.System.Units.UnitsBase;
editBoxTF.UnitEngine = ThisExtension.System.Units.UnitsBase;
editBoxTW.UnitEngine = ThisExtension.System.Units.UnitsBase;
editBoxA.UnitEngine = ThisExtension.System.Units.UnitsBase;
editBoxIy.UnitEngine = ThisExtension.System.Units.UnitsBase;
editBoxIz.UnitEngine = ThisExtension.System.Units.UnitsBase;
editBoxB.RangeMinCheck = true;
editBoxB.SetBaseMinValue(0.001);//1mm
editBoxH.RangeMinCheck = true;
editBoxH.SetBaseMinValue(0.001);//1mm
editBoxTF.RangeMinCheck = true;
editBoxTF.SetBaseMinValue(0.001);//1mm
editBoxTW.RangeMinCheck = true;
editBoxTW.SetBaseMinValue(0.001);//1mm
UpdateParamControls();
UpdateParamViewer();
SetDBBrowser();
}
/// <summary>
/// Updates data based on current settings.
/// </summary>
public void SetData()
{
if (radioDatabase.IsChecked.Value)
ThisMainExtension.Data.NewSection = DatabaseSection;
else
ThisMainExtension.Data.NewSection = ParametricSection;
}
/// <summary>
/// Initializes the database browser.
/// </summary>
private void SetDBBrowser()
{
DBExplorerDialogManager = new REX.ContentGenerator.Dialog.REXContentDialogManager(ThisExtension.Context);
DBExplorerSettings = new REX.ContentGenerator.Dialog.REXContentDialogSettings();
REX.ContentGenerator.Dialog.REXContentDialogCategorySettings catSet = DBExplorerSettings.SectionDBSettings;
DBExplorerSettings.DialogMode = REX.ContentGenerator.Dialog.EContentDialogMode.Selection;
DBExplorerSettings.SetOneCategoryVisible(REX.ContentGenerator.Families.ECategoryType.SECTION_DB);
DBExplorerSettings.RegionalSettings = true;
catSet.SelectedElement = DatabaseSection;
DBExplorerSettings.Caption = "Selection";
DBExplorerSettings.ValidateTypes = false;
//In order to omit long initialization of the browser when it is first launched (after first button click)
//the browser is initialized when module starts. It doesn't make it faster but it is not so annoying for
//the final user.
DBExplorerDialogManager.SetApplicationInstance(DBExplorerSettings);
}
/// <summary>
/// Initializes the default parametric description.
/// </summary>
private void SetDefaultParamDescription()
{
ParametricSection = new REX.ContentGenerator.Families.REXFamilyType_ParamSection();
ParametricDescription.Dimensions.b = 0.3;//300mm
ParametricDescription.Dimensions.h = 0.3;//300mm
ParametricDescription.Dimensions.tw = 0.01;//10mm
ParametricDescription.Dimensions.tf = 0.01;//10mm
ParametricDescription.SectionType = REX.ContentGenerator.Families.ESectionType.I;
ParametricDescription.CalculataMainAxisAndCharacteristics();
}
/// <summary>
/// Updates the parametric controls.
/// </summary>
private void UpdateParamControls()
{
if (!Freeze)
{
Freeze = true;
if (ParametricDescription.SectionType == REX.ContentGenerator.Families.ESectionType.I)
comboParametricTypes.SelectedIndex = 0;
else if (ParametricDescription.SectionType == REX.ContentGenerator.Families.ESectionType.L)
comboParametricTypes.SelectedIndex = 1;
else if (ParametricDescription.SectionType == REX.ContentGenerator.Families.ESectionType.RECT)
comboParametricTypes.SelectedIndex = 2;
editBoxB.SetDataBaseValue(ParametricDescription.Dimensions.b);
editBoxH.SetDataBaseValue(ParametricDescription.Dimensions.h);
editBoxTF.SetDataBaseValue(ParametricDescription.Dimensions.tf);
editBoxTW.SetDataBaseValue(ParametricDescription.Dimensions.tw);
editBoxA.SetDataBaseValue(ParametricDescription.Characteristics.A);
editBoxIy.SetDataBaseValue(ParametricDescription.Characteristics.IY);
editBoxIz.SetDataBaseValue(ParametricDescription.Characteristics.IZ);
editBoxTF.IsEnabled = (ParametricDescription.SectionType != REX.ContentGenerator.Families.ESectionType.RECT);
editBoxTW.IsEnabled = (ParametricDescription.SectionType != REX.ContentGenerator.Families.ESectionType.RECT);
Freeze = false;
}
}
/// <summary>
/// Updates the parametric description.
/// </summary>
private void UpdateParamDescription()
{
ParametricDescription.Dimensions.b = editBoxB.GetDataBaseValue();
ParametricDescription.Dimensions.h = editBoxH.GetDataBaseValue();
ParametricDescription.Dimensions.tw = editBoxTW.GetDataBaseValue();
ParametricDescription.Dimensions.tf = editBoxTF.GetDataBaseValue();
switch(comboParametricTypes.SelectedIndex)
{
case 0:
ParametricDescription.SectionType = REX.ContentGenerator.Families.ESectionType.I;
break;
case 1:
ParametricDescription.SectionType = REX.ContentGenerator.Families.ESectionType.L;
break;
case 2:
ParametricDescription.SectionType = REX.ContentGenerator.Families.ESectionType.RECT;
break;
}
ParametricDescription.CalculataMainAxisAndCharacteristics();
}
/// <summary>
/// Updates the parametric viewer.
/// </summary>
private void UpdateParamViewer()
{
REX.ContentGenerator.Geometry.Contour_Section section = ParametricDescription.GetContour(true);
if (section.Shape.Count > 0)
{
List<REX.Common.Geometry.REXxyz> points = section.Shape[0].GetPointList(true);
viewer.DrawPolygon(points);
}
}
/// <summary>
/// Updates the database section properties.
/// </summary>
private void UpdateDatabaseSectionProperties()
{
if (DatabaseSection != null)
{
databasesProperties.ClearProperties();
foreach (System.Reflection.PropertyInfo pi in DatabaseSection.Parameters.Description)
{
object val = DatabaseSection.Parameters.Description.GetValue(pi.Name);
if (val != null && pi.Name != "Names")
databasesProperties.AddProperty(pi.Name, val.ToString());
}
foreach (System.Reflection.PropertyInfo pi in DatabaseSection.Parameters.Dimensions)
{
object val = DatabaseSection.Parameters.Dimensions.GetValue(pi.Name);
AddFieldToDatabaseProperty(pi, val);
}
foreach (System.Reflection.PropertyInfo pi in DatabaseSection.Parameters.Characteristics)
{
object val = DatabaseSection.Parameters.Characteristics.GetValue(pi.Name);
AddFieldToDatabaseProperty(pi, val);
}
}
}
/// <summary>
/// Adds the field to the database property list.
/// </summary>
/// <param name="pi">The pi.</param>
/// <param name="val">The val.</param>
private void AddFieldToDatabaseProperty(System.Reflection.PropertyInfo pi, object val)
{
REX.ContentGenerator.Converters.FieldParams fieldParams = ThisMainExtension.Converter.Settings.GetParamsForField(pi.Name, REX.ContentGenerator.Families.ECategoryType.SECTION_DB);
if (val != null && fieldParams != null)
{
double valDbl = Convert.ToDouble(val);
string txt = ThisMainExtension.System.Units.DisplayTextFromBase(valDbl, fieldParams.unitName, fieldParams.power, true);
databasesProperties.AddProperty(pi.Name, txt);
}
}
/// <summary>
/// Handles the LostKeyboardFocus event of the editBoxH control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.Input.KeyboardFocusChangedEventArgs"/> instance containing the event data.</param>
private void editBoxH_LostKeyboardFocus(object sender, KeyboardFocusChangedEventArgs e)
{
if (!Freeze)
{
UpdateParamDescription();
UpdateParamViewer();
}
}
/// <summary>
/// Handles the SelectionChanged event of the comboParametricTypes control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.Controls.SelectionChangedEventArgs"/> instance containing the event data.</param>
private void comboParametricTypes_SelectionChanged(object sender, SelectionChangedEventArgs e)
{
if (!Freeze)
{
UpdateParamDescription();
UpdateParamControls();
UpdateParamViewer();
}
}
/// <summary>
/// Handles the Checked event of the radioParametric control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
private void radioParametric_Checked(object sender, RoutedEventArgs e)
{
if (paramGroupBox != null && dbGroupBox != null)
{
gridParam.Visibility = radioParametric.IsChecked.Value? Visibility.Visible:Visibility.Hidden;
gridDB.Visibility = radioDatabase.IsChecked.Value?Visibility.Visible:Visibility.Hidden;
}
}
/// <summary>
/// Handles the Click event of the buttonDBSelect control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.Windows.RoutedEventArgs"/> instance containing the event data.</param>
private void buttonDBSelect_Click(object sender, RoutedEventArgs e)
{
System.Windows.Interop.WindowInteropHelper helper = new System.Windows.Interop.WindowInteropHelper(ThisExtension.GetWindowForParent());
if (DBExplorerDialogManager.ShowContentDialogParentIntPtr(DBExplorerSettings, helper.Handle))
{
this.DatabaseSection = DBExplorerSettings.SectionDBSettings.SelectedElement as REX.ContentGenerator.Families.REXFamilyType_DBSection;
UpdateDatabaseSectionProperties();
}
}
}
}
@@ -0,0 +1,46 @@
<rexf:REXExtensionControl x:Class="REX.ContentGeneratorWPF.Resources.ContentGeneratorReadControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rexf="clr-namespace:REX.Common;assembly=REX.Foundation.WPF"
xmlns:rexc="clr-namespace:REX.Controls.WPF;assembly=REX.Controls.WPF"
xmlns:local="clr-namespace:REX.ContentGeneratorWPF.Resources.Dialogs"
Height="414" Width="638">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<GroupBox Header="Parametric" Margin="2" Name="paramGroupBox1" Grid.Column="0" Grid.Row="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<local:PolygonViewer x:Name="viewer" Grid.Column="0" Grid.Row="0"></local:PolygonViewer>
<local:PropertiesControl x:Name="parametricProperties" Grid.Column="0" Grid.Row="1"></local:PropertiesControl>
</Grid>
</GroupBox>
<GroupBox Header="Database" Margin="2" Name="dbGroupBox1" Grid.Column="1" Grid.Row="0">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
<RowDefinition Height="20"></RowDefinition>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<local:PropertiesControl x:Name="databasesProperties" Grid.Column="0" Grid.Row="0"></local:PropertiesControl>
<TextBlock Grid.Column="0" Grid.Row="1" >List of Databases:</TextBlock>
<ListBox x:Name="dabasesListBox" Margin="2" Grid.Column="0" Grid.Row="2">
</ListBox>
</Grid>
</GroupBox>
</Grid>
</rexf:REXExtensionControl>
@@ -0,0 +1,195 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace REX.ContentGeneratorWPF.Resources
{
/// <summary>
/// Represents the control which allows user to observe what kind of shape he has selected. There are two
/// representations presented: database and parametric.
/// </summary>
public partial class ContentGeneratorReadControl : REX.Common.REXExtensionControl
{
/// <summary>
/// Gets the main extension.
/// </summary>
/// <value>The main extension.</value>
internal Extension ThisMainExtension
{
get
{
return (Extension)ThisExtension;
}
}
/// <summary>
/// Initializes a new instance of the <see cref="ContentGeneratorReadControl"/> class.
/// </summary>
public ContentGeneratorReadControl()
{
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the <see cref="ContentGeneratorReadControl"/> class.
/// </summary>
/// <param name="extension">The extension.</param>
public ContentGeneratorReadControl(REX.Common.REXExtension extension)
: base(extension)
{
InitializeComponent();
}
/// <summary>
/// Initializes the dialog with current settings.
/// </summary>
public void SetDialog()
{
SetParametricDescription();
SetDatabasesDescription();
}
/// <summary>
/// Initializes the parametric description.
/// </summary>
private void SetParametricDescription()
{
SetParametricViewer();
SetParametricProperties();
}
/// <summary>
/// Initializes the databases description.
/// </summary>
private void SetDatabasesDescription()
{
SetDatabasesProperties();
SetDatabasesList();
}
/// <summary>
/// Draws the parametric section on the viewer.
/// </summary>
private void SetParametricViewer()
{
if (ThisMainExtension.Data.ParametricSection != null)
{
REX.ContentGenerator.Geometry.Contour_Section section = ThisMainExtension.Data.ParametricSection.Parameters.GetContour(true);
if (section.Shape.Count > 0)
{
List<REX.Common.Geometry.REXxyz> points = section.Shape[0].GetPointList(true);
viewer.DrawPolygon(points);
}
}
}
/// <summary>
/// Fill the parametric property control with data.
/// </summary>
private void SetParametricProperties()
{
if (ThisMainExtension.Data.ParametricSection != null)
{
REX.ContentGenerator.Families.REXFamilyType_ParamSection section = ThisMainExtension.Data.ParametricSection;
parametricProperties.ClearProperties();
parametricProperties.AddProperty("Certified",section.Certified.ToString());
parametricProperties.AddProperty("Shape", section.Parameters.SectionType.ToString());
parametricProperties.AddProperty("Material",section.Material.ToString());
parametricProperties.AddProperty("Tapered",section.Parameters.Tapered.ToString());
string angle = ThisMainExtension.System.Units.DisplayTextFromBase(section.Parameters.Angle, Autodesk.REX.Framework.EUnitType.Dimensions_Angle,true);
parametricProperties.AddProperty("Angle",angle);
string add2name = "";
if (section.Parameters.Tapered)
{
parametricProperties.AddCategory("Dimensions on the start");
add2name = "Start ";
}
else
{
parametricProperties.AddCategory("Dimensions");
}
foreach (System.Reflection.PropertyInfo property in section.Parameters.Dimensions)
{
object valObj = property.GetValue(section.Parameters.Dimensions, null);
double val = (valObj != null)?Convert.ToDouble(valObj):0;
string valStr = ThisMainExtension.System.Units.DisplayTextFromBase(val, Autodesk.REX.Framework.EUnitType.Dimensions_SectionDim,true);
parametricProperties.AddProperty(add2name + property.Name, valStr);
}
if (section.Parameters.Tapered)
{
parametricProperties.AddCategory("Dimensions on the end");
add2name = "End ";
foreach (System.Reflection.PropertyInfo property in section.Parameters.DimensionsEnd)
{
object valObj = property.GetValue(section.Parameters.DimensionsEnd, null);
double val = (valObj != null) ? Convert.ToDouble(valObj) : 0;
string valStr = ThisMainExtension.System.Units.DisplayTextFromBase(val, Autodesk.REX.Framework.EUnitType.Dimensions_SectionDim, true);
parametricProperties.AddProperty(add2name + property.Name, valStr);
}
}
}
}
/// <summary>
/// Fill the parametric property control with data.
/// </summary>
private void SetDatabasesProperties()
{
if (ThisMainExtension.Data.DatabaseSection != null)
{
REX.ContentGenerator.Families.REXFamilyType_DBSection section = ThisMainExtension.Data.DatabaseSection;
databasesProperties.ClearProperties();
databasesProperties.AddProperty("Certified", section.Certified.ToString());
databasesProperties.AddProperty("Material", section.Material.ToString());
databasesProperties.AddProperty("Database", section.Parameters.DBName);
databasesProperties.AddProperty("Alias name", section.Parameters.Description.NAME_REVIT);
}
}
/// <summary>
/// Fills the databases list.
/// </summary>
private void SetDatabasesList()
{
if (ThisMainExtension.Data.DatabaseSection != null)
{
foreach (REX.ContentGenerator.Families.REXDBDescription dbdesc in ThisMainExtension.Data.DatabaseRecords)
{
dabasesListBox.Items.Add(dbdesc.DBName);
}
}
}
}
}
@@ -0,0 +1,245 @@
<rexf:REXExtensionMainControl x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.MainControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rexf="clr-namespace:REX.Common;assembly=REX.Foundation.WPF"
xmlns:rexc="clr-namespace:REX.Controls.WPF;assembly=REX.Controls.WPF"
Height="512" Width="720" SnapsToDevicePixels="True">
<rexf:REXExtensionMainControl.Resources>
<rexf:REXRoutedUICommand x:Key="CommandOpen" Name="Open"/>
<rexf:REXRoutedUICommand x:Key="CommandSave" Name="Save"/>
<rexf:REXRoutedUICommand x:Key="CommandSaveAs" Name="SaveAs"/>
<rexf:REXRoutedUICommand x:Key="CommandPreferences" Name="Preferences"/>
<rexf:REXRoutedUICommand x:Key="CommandPrint" Name="Print"/>
<rexf:REXRoutedUICommand x:Key="CommandClose" Name="Close"/>
<rexf:REXRoutedUICommand x:Key="CommandCalculate" Name="Calculate"/>
<rexf:REXRoutedUICommand x:Key="CommandHelp" Name="Help"/>
<rexf:REXRoutedUICommand x:Key="CommandAbout" Name="About"/>
</rexf:REXExtensionMainControl.Resources>
<rexf:REXExtensionMainControl.CommandBindings>
<CommandBinding Command="{StaticResource CommandOpen}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandSave}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandSaveAs}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandPreferences}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandPrint}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandClose}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandCalculate}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandHelp}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
<CommandBinding Command="{StaticResource CommandAbout}" Executed="CommandBinding_Executed" CanExecute="CommandBinding_CanExecute"/>
</rexf:REXExtensionMainControl.CommandBindings>
<rexf:REXExtensionMainControl.InputBindings>
<KeyBinding Key="O" Modifiers="Control" Gesture="Ctrl+O" Command="{StaticResource CommandOpen}"/>
<KeyBinding Key="S" Modifiers="Control" Gesture="Ctrl+S" Command="{StaticResource CommandSave}"/>
<KeyBinding Key="P" Modifiers="Control" Gesture="Ctrl+P" Command="{StaticResource CommandPrint}"/>
<KeyBinding Key="F9" Modifiers="" Gesture="F9" Command="{StaticResource CommandCalculate}"/>
<KeyBinding Key="F1" Modifiers="" Gesture="F1" Command="{StaticResource CommandHelp}"/>
</rexf:REXExtensionMainControl.InputBindings>
<DockPanel LastChildFill="True">
<ToolBarPanel DockPanel.Dock="Top">
<StackPanel Orientation="Vertical">
<Menu Name="Menu" Style="{DynamicResource REXMenu}">
<MenuItem Name="MenuItemFile" Header="_File" StaysOpenOnClick="True">
<MenuItem Name="MenuItemOpen" Header="_Open ..." Command="{StaticResource CommandOpen}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_open.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="MenuItemSave" Header="_Save" Command="{StaticResource CommandSave}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_save.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="MenuItemSaveAs" Header="Save _As ..." Command="{StaticResource CommandSaveAs}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_save_as.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<Separator Name="MenuSeparatorPreferencesTop"/>
<MenuItem Name="MenuItemPreferences" Header="_Preferences ..." Command="{StaticResource CommandPreferences}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_save_as.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<Separator Name="MenuSeparatorPreferencesBottom"/>
<MenuItem Name="MenuItemPrint" Header="Print ..." Command="{StaticResource CommandPrint}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_print.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<Separator Name="MenuSeparatorCloseTop"/>
<MenuItem Name="MenuItemClose" Header="Close" Command="{StaticResource CommandClose}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_close.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Name="MenuItemCalculations" Header="_Calculations">
<MenuItem Name="MenuItemCalc" Header="_Calculate" Command="{StaticResource CommandCalculate}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_calculate.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Name="MenuItemHelp" Header="_Help">
<MenuItem Name="MenuItemHelpIndex" Header="_Help ..." Command="{StaticResource CommandHelp}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_help.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<Separator Name="ToolStripSeparatorBeforeAbout"/>
<MenuItem Name="MenuItemAbout" Header="_About ..." Command="{StaticResource CommandAbout}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_info.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
<StackPanel Orientation="Horizontal">
<ToolBar ToolBarTray.IsLocked="True" Name="ToolMenu">
<Menu Style="{DynamicResource REXMenu}">
<MenuItem Name="ToolStripMenuItemFile" Header="_File" StaysOpenOnClick="True">
<MenuItem Name="ToolStripMenuItemOpen" Header="_Open ..." Command="{StaticResource CommandOpen}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_open.png" Stretch="None" />
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="ToolStripMenuItemSave" Header="_Save" Command="{StaticResource CommandSave}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_save.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<MenuItem Name="ToolStripMenuItemSaveAs" Header="Save _As ..." Command="{StaticResource CommandSaveAs}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_save_as.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<Separator Name="ToolStripMenuSeparatorPreferencesTop"/>
<MenuItem Name="ToolStripMenuItemPreferences" Header="_Preferences ..." Command="{StaticResource CommandPreferences}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_save_as.png" Stretch="None" />
</MenuItem.Icon>
</MenuItem>
<Separator Name="ToolStripMenuSeparatorPreferencesBottom"/>
<MenuItem Name="ToolStripMenuItemPrint" Header="Print ..." Command="{StaticResource CommandPrint}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_print.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<Separator Name="ToolStripMenuSeparatorCloseTop"/>
<MenuItem Name="ToolStripMenuItemClose" Header="Close" Command="{StaticResource CommandClose}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_close.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Name="ToolStripMenuItemCalculations" Header="_Calculations">
<MenuItem Name="ToolStripMenuItemCalc" Header="_Calculate" Command="{StaticResource CommandCalculate}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_calculate.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
<MenuItem Name="ToolStripMenuItemHelp" Header="_Help">
<MenuItem Name="ToolStripMenuItemHelpIndex" Header="_Help ..." Command="{StaticResource CommandHelp}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_help.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
<Separator Name="ToolStripMenuSeparatorBeforeAbout"/>
<MenuItem Name="ToolStripMenuItemAbout" Header="_About ..." Command="{StaticResource CommandAbout}">
<MenuItem.Icon>
<Image Source="..\other\images\toolbar_info.png" Stretch="None"/>
</MenuItem.Icon>
</MenuItem>
</MenuItem>
</Menu>
</ToolBar>
<ToolBar ToolBarTray.IsLocked="True" Name="ToolBar">
<Button Name="ToolStripButtonOpen" Command="{StaticResource CommandOpen}">
<Image Source="..\other\images\toolbar_open.png" Stretch="None"/>
<Button.ToolTip>
<Label>Open</Label>
</Button.ToolTip>
</Button>
<Button Name="ToolStripButtonSave" Command="{StaticResource CommandSave}">
<Image Source="..\other\images\toolbar_save.png" Stretch="None"/>
<Button.ToolTip>
<Label>Save</Label>
</Button.ToolTip>
</Button>
<Separator Name="ToolStripSeparatorPreferencesLeft"/>
<Button Name="ToolStripPreferences" Command="{StaticResource CommandCalculate}">
<Image Source="..\other\images\toolbar_rs.png" Stretch="None"/>
<Button.ToolTip>
<Label>Save As</Label>
</Button.ToolTip>
</Button>
<Separator Name="ToolStripSeparatorPreferencesRight"/>
<Button Name="ToolStripCalculate" Command="{StaticResource CommandCalculate}">
<Image Source="..\other\images\toolbar_calculate.png" Stretch="None"/>
<Button.ToolTip>
<Label>Calculate</Label>
</Button.ToolTip>
</Button>
<Separator Name="ToolStripSeparatorAC"/>
<Button Name="ToolStripButtonHelp" Command="{StaticResource CommandHelp}">
<Image Source="..\other\images\toolbar_help.png" Stretch="None"/>
<Button.ToolTip>
<Label>Help</Label>
</Button.ToolTip>
</Button>
</ToolBar>
</StackPanel>
</StackPanel>
</ToolBarPanel>
<Grid Name="HSplitGrid">
<Grid.RowDefinitions>
<RowDefinition Height="350*" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
</Grid.RowDefinitions>
<GridSplitter Name="HSplit" Grid.Row="0" Height="2" HorizontalAlignment="Stretch" VerticalAlignment="Bottom"/>
<Grid Name="HSplitGridTop" Grid.Row="0">
<DockPanel Name="VSplitGrid" LastChildFill="True" Grid.Row="0">
<Grid Name="VSplitGridLeft">
<rexc:REXToolbox Width="200" MinWidth="200" Name="Toolbox" BorderThickness="1" Background="{x:Static SystemColors.WindowBrush}" SelectedItemChanged="Toolbox_SelectedItemChanged" BorderBrush="{x:Static SystemColors.ControlDarkBrush}" ItemBorderThickness="1" IsItemsHost="False">
</rexc:REXToolbox>
</Grid>
<GridSplitter Name="VSplit" Width="2" HorizontalAlignment="Right" VerticalAlignment="Stretch"/>
<Grid Name="VSplitGridRight">
<Grid Name="DialogContainer" Visibility="Hidden">
</Grid>
<Grid Name="ViewContainer" Visibility="Hidden">
</Grid>
<Grid Name="NoteContainer" Visibility="Hidden">
</Grid>
<TabControl Name="TabControl" Visibility="Hidden" Background="Transparent">
<TabItem Name="TabDialog" Header="Properties" Visibility="Hidden" ></TabItem>
<TabItem Name="TabView" Header="View" Visibility="Hidden"></TabItem>
<TabItem Name="TabNote" Header="Note" Visibility="Hidden"></TabItem>
</TabControl>
</Grid>
</DockPanel>
</Grid>
<Grid Name="HSplitGridBottom" Grid.Row="1">
</Grid>
<StatusBar Name="Status" Grid.Row="2" Height="30">
<StatusBarItem HorizontalContentAlignment="Left">
<Label Name="StatusHeaderLabel"></Label>
</StatusBarItem>
<StatusBarItem HorizontalContentAlignment="Left">
<Label Name="StatusLabel"></Label>
</StatusBarItem>
<StatusBarItem HorizontalContentAlignment="Right">
<ProgressBar Name="StatusProgress" Width="100" Height="16" Grid.Column="1"/>
</StatusBarItem>
</StatusBar>
</Grid>
</DockPanel>
</rexf:REXExtensionMainControl>
@@ -0,0 +1,96 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using Autodesk.REX.Framework;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Interaction logic for MainControl.xaml
/// </summary>
public partial class MainControl : REX.Common.REXExtensionMainControl
{
public MainControl()
{
InitializeComponent();
}
public MainControl(REX.Common.REXExtension extension)
: base(extension)
{
InitializeComponent();
}
protected override void OnRender(DrawingContext drawingContext)
{
base.OnRender(drawingContext);
}
private void Toolbox_SelectedItemChanged(object sender, REX.Controls.WPF.REXToolboxItem item)
{
base.Toolbox_SelectItem(sender, item);
}
private void CommandBinding_Executed(object sender, ExecutedRoutedEventArgs e)
{
if (e.Command is REX.Common.REXRoutedUICommand)
RunCommand((e.Command as REX.Common.REXRoutedUICommand).Name);
}
private void CommandBinding_CanExecute(object sender, CanExecuteRoutedEventArgs e)
{
if (e.Command is REX.Common.REXRoutedUICommand)
e.CanExecute = CanRunCommand((e.Command as REX.Common.REXRoutedUICommand).Name);
else
e.CanExecute = true;
}
private bool CanRunCommand(string Name)
{
return true;
}
private void RunCommand(string Name)
{
REXCommand Cmd = null;
switch (Name)
{
case "Open":
ThisExtension.System.LoadFromFile(true);
return;
case "Save":
ThisExtension.System.SaveToFile(false, true);
return;
case "SaveAs":
ThisExtension.System.SaveToFile(true);
return;
case "Calculate":
Cmd = new REXCommand(REXCommandType.Run);
break;
case "Help":
Cmd = new REXCommand(REXCommandType.Help);
break;
case "Close":
Cmd = new REXCommand(REXCommandType.Close);
break;
case "About":
Cmd = new REXCommand(REXCommandType.About);
break;
case "Preferences":
ThisExtension.ShowPreferencesDialog();
break;
}
if (Cmd != null)
ThisExtension.Command(ref Cmd);
}
}
}
@@ -0,0 +1,26 @@
<rexf:REXExtensionWindow x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rexf="clr-namespace:REX.Common;assembly=REX.Foundation.WPF"
Title="ContentGeneratorWPF" Height="527" Width="791" MinWidth="500" MinHeight="200" Background="{x:Static SystemColors.ControlBrush}" ShowInTaskbar="False" WindowStartupLocation="CenterOwner" SnapsToDevicePixels="True"
Closing="REXExtensionWindow_Closing">
<Grid>
<Grid Height="45" Name="Buttons" VerticalAlignment="Bottom">
<TextBlock Name="Help" Margin="6,13,0,9" HorizontalAlignment="Left" Width="111.5">
<Hyperlink Click="HyperlinkHelp_Click">
Help
</Hyperlink>
</TextBlock>
<TextBlock Name="About" Margin="132,13,0,9" HorizontalAlignment="Left" Width="146">
<Hyperlink Click="HyperlinkAbout_Click">
About
</Hyperlink>
</TextBlock>
<Button Margin="0,13,87,9" Name="ButtonApply" HorizontalAlignment="Right" Width="75" Click="ButtonApply_Click">OK</Button>
<Button Margin="0,13,6,9" Name="ButtonClose" HorizontalAlignment="Right" Width="75" Click="ButtonClose_Click">Cancel</Button>
<Image Margin="310,2,258,2" Name="Logo" Stretch="None" MinWidth="50" />
</Grid>
<Grid Name="MainPanel" Margin="0,0,0,43" />
</Grid>
</rexf:REXExtensionWindow>
@@ -0,0 +1,68 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using Autodesk.REX.Framework;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Interaction logic for MainWindow.xaml
/// </summary>
public partial class MainWindow : REX.Common.REXExtensionWindow
{
public MainWindow()
{
InitializeComponent();
}
public MainWindow(REX.Common.REXExtension extension)
: base(extension)
{
InitializeComponent();
}
private void ButtonApply_Click(object sender, RoutedEventArgs e)
{
REXCommand Cmd = new REXCommand(REXCommandType.OK);
ThisExtension.Command(ref Cmd);
}
private void ButtonClose_Click(object sender, RoutedEventArgs e)
{
REXCommand Cmd = new REXCommand(REXCommandType.Close);
Cmd.CommandObject = false;
ThisExtension.Command(ref Cmd);
}
private void REXExtensionWindow_Closing(object sender, System.ComponentModel.CancelEventArgs e)
{
REXCommand Cmd = new REXCommand(REXCommandType.Close);
Cmd.CommandObject = true;
if (((bool)ThisExtension.Command(ref Cmd)) == true)
e.Cancel = false;
else
e.Cancel = true;
}
private void HyperlinkHelp_Click(object sender, RoutedEventArgs e)
{
REXCommand Cmd = new REXCommand(REXCommandType.Help);
ThisExtension.Command(ref Cmd);
}
private void HyperlinkAbout_Click(object sender, RoutedEventArgs e)
{
REXCommand Cmd = new REXCommand(REXCommandType.About);
ThisExtension.Command(ref Cmd);
}
}
}
@@ -0,0 +1,22 @@
<UserControl x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.PolygonViewer"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Grid>
<Border BorderThickness="1" BorderBrush="Gray" Background="White">
<Path Stroke="Black" StrokeThickness="1">
<Path.Fill>
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
<GradientStop Color="White" Offset="0"/>
<GradientStop Color="Gray" Offset="1"/>
</LinearGradientBrush>
</Path.Fill>
<Path.Data>
<PathGeometry x:Name="pathGeometry" FillRule="Nonzero">
</PathGeometry>
</Path.Data>
</Path>
</Border>
</Grid>
</UserControl>
@@ -0,0 +1,140 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using REX.Common.Geometry;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Represents control which allows the user to draw polygons.
/// </summary>
public partial class PolygonViewer : UserControl
{
/// <summary>
/// The bounding box of the polygon.
/// </summary>
BoundingBoxREXxyz BoundBox;
/// <summary>
/// The shape of the polygon.
/// </summary>
List<REXxyz> Points;
/// <summary>
/// Initializes a new instance of the <see cref="PolygonViewer"/> class.
/// </summary>
public PolygonViewer()
{
InitializeComponent();
}
/// <summary>
/// Draws the specified polygon.
/// </summary>
/// <param name="points">The points.</param>
public void DrawPolygon(List<REXxyz> points)
{
Points = points;
SetBoundingBox();
DrawPolygon();
}
/// <summary>
/// Initializes the bounding box of the polygon.
/// </summary>
private void SetBoundingBox()
{
BoundBox = new BoundingBoxREXxyz();
foreach (REXxyz pt in Points)
BoundBox.AddPoint(pt);
}
/// <summary>
/// Draws the polygon based on the saved point list.
/// </summary>
private void DrawPolygon()
{
//In order to draw the whole drawing in the center of the viewer some additional
//calculation is required.
if (Points != null && BoundBox != null)
{
REXxyz dx = BoundBox.Max - BoundBox.Min;
PolyLineSegment polyline = new PolyLineSegment();
//The assumption is that there will be empty frame of 0.1*Max(width,height) around
//the drawing. To get the most extreme case the coefficients in x any y direction are
//calculated.
double coeffX = 0.8 * this.ActualWidth / dx.x;
double coeffY = 0.8 * this.ActualHeight / dx.y;
double coeff;
double xstart;
double ystart;
if (coeffX < coeffY)
{
coeff = coeffX;
xstart = 0.1 * this.ActualWidth;
ystart = 0.1 * this.ActualHeight + (0.8*this.ActualHeight -(coeffX * dx.y)) / 2;
}
else
{
coeff = coeffY;
ystart = 0.1 * this.ActualHeight;
xstart = 0.1 * this.ActualWidth + (0.8 * this.ActualWidth - (coeffY * dx.x)) / 2;
}
for (int i = 0; i < Points.Count; i++ )
{
REXxyz pt = Points[i];
polyline.Points.Add(new Point(xstart + (pt.x - BoundBox.Min.x) * coeff,this.ActualHeight - (ystart + (pt.y - BoundBox.Min.y) * coeff)));
}
pathGeometry.Figures.Clear();
REXxyz startPt = Points[0];
PathFigure pathFigure = new PathFigure(new Point(xstart + (startPt.x - BoundBox.Min.x) * coeff,this.ActualHeight - (ystart + (startPt.y - BoundBox.Min.y) * coeff)),new List<PathSegment>(){polyline},true);
pathFigure.Segments.Add(polyline);
pathGeometry.Figures.Add(pathFigure);
}
}
/// <summary>
/// Raises the <see cref="E:System.Windows.FrameworkElement.SizeChanged"/> event, using the specified information as part of the eventual event data.
/// </summary>
/// <param name="sizeInfo">Details of the old and new size involved in the change.</param>
protected override void OnRenderSizeChanged(SizeChangedInfo sizeInfo)
{
base.OnRenderSizeChanged(sizeInfo);
DrawPolygon();
}
}
}
@@ -0,0 +1,14 @@
<UserControl x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.PropertiesControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<Grid>
<Border BorderThickness="1" BorderBrush="Gray">
<ScrollViewer VerticalScrollBarVisibility="Auto" >
<StackPanel Name="stackPanel1">
</StackPanel>
</ScrollViewer>
</Border>
</Grid>
</UserControl>
@@ -0,0 +1,90 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using REX.ContentGeneratorWPF.Main;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Represents the control which allows the user to present the list of properties.
/// </summary>
public partial class PropertiesControl : UserControl
{
/// <summary>
/// Initializes a new instance of the <see cref="PropertiesControl"/> class.
/// </summary>
public PropertiesControl()
{
InitializeComponent();
}
/// <summary>
/// Adds the property to the list.
/// </summary>
/// <param name="item">The item.</param>
public void AddProperty(PropertyItem item)
{
stackPanel1.Children.Add(new PropertyControl(item));
}
/// <summary>
/// Adds the property to the list.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="value">The value.</param>
public void AddProperty(string name, string value)
{
stackPanel1.Children.Add(new PropertyControl(name, value));
}
/// <summary>
/// Adds the category to the list.
/// </summary>
/// <param name="name">The name.</param>
public void AddCategory(string name)
{
TextBlock block = new TextBlock();
block.FontWeight = FontWeights.Bold;
block.Text = name;
block.Margin = new Thickness(3,6,3,3);
stackPanel1.Children.Add(block);
Separator separator = new Separator();
stackPanel1.Children.Add(separator);
}
/// <summary>
/// Clears the property list.
/// </summary>
public void ClearProperties()
{
stackPanel1.Children.Clear();
}
}
}
@@ -0,0 +1,20 @@
<UserControl x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.PropertyControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
>
<DockPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition/>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="*"/>
<ColumnDefinition Width="*"/>
</Grid.ColumnDefinitions>
<TextBlock Margin="2" Grid.Row="0" Grid.Column="0" Text="{Binding Name}" Padding="2"/>
<Border Margin="2" BorderThickness="1" BorderBrush="Gray" Grid.Row="0" Grid.Column="1">
<TextBlock Background="White" Padding="2" Text="{Binding Value}"/>
</Border>
</Grid>
</DockPanel>
</UserControl>
@@ -0,0 +1,66 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using REX.ContentGeneratorWPF.Main;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Interaction logic for PropertyControl.xaml
/// </summary>
public partial class PropertyControl : UserControl
{
public PropertyItem PropertyItem { get; private set; }
public PropertyControl(PropertyItem item)
{
InitializeComponent();
PropertyItem = item;
DataContext = PropertyItem;
}
public PropertyControl(string name, string value)
{
InitializeComponent();
PropertyItem = new PropertyItem() { Name = name, Value = value };
DataContext = PropertyItem;
}
public PropertyControl()
{
InitializeComponent();
PropertyItem = new PropertyItem();
DataContext = PropertyItem;
}
}
}
@@ -0,0 +1,19 @@
<rexf:REXExtensionControl x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.SelectedElementControl"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rexf="clr-namespace:REX.Common;assembly=REX.Foundation.WPF"
xmlns:rexc="clr-namespace:REX.Controls.WPF;assembly=REX.Controls.WPF"
xmlns:local="clr-namespace:REX.ContentGeneratorWPF.Resources.Dialogs"
Height="315" Width="431">
<Grid>
<Grid.RowDefinitions>
<RowDefinition></RowDefinition>
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition></ColumnDefinition>
<ColumnDefinition></ColumnDefinition>
</Grid.ColumnDefinitions>
<local:PropertiesControl x:Name="propertiesControl" Grid.Column="0" Grid.Row="0"></local:PropertiesControl>
<local:UserControlView x:Name="viewer" Grid.Column="1" Grid.Row="0"></local:UserControlView>
</Grid>
</rexf:REXExtensionControl>
@@ -0,0 +1,82 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Represents the control which allows the user to see the properties of the selected element.
/// </summary>
public partial class SelectedElementControl : REX.Common.REXExtensionControl
{
/// <summary>
/// Gets the main extension.
/// </summary>
/// <value>The main extension.</value>
internal Extension ThisMainExtension
{
get
{
return (Extension)ThisExtension;
}
}
/// <summary>
/// Initializes a new instance of the <see cref="SelectedElementControl"/> class.
/// </summary>
public SelectedElementControl()
{
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the <see cref="SelectedElementControl"/> class.
/// </summary>
/// <param name="extension">The extension.</param>
public SelectedElementControl(REX.Common.REXExtension extension)
: base(extension)
{
InitializeComponent();
}
/// <summary>
/// Initializes the dialog with current settings.
/// </summary>
public void SetDialog()
{
propertiesControl.ClearProperties();
foreach (Main.PropertyItem item in ThisMainExtension.Data.SelectedElementProperties)
propertiesControl.AddProperty(item);
viewer.DrawGeometry(ThisMainExtension.Data.SelectedElementGeometry);
}
}
}
@@ -0,0 +1,53 @@
<rexf:REXExtensionControl x:Class="REX.ContentGeneratorWPF.Resources.Dialogs.UserControlView"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:rexf="clr-namespace:REX.Common;assembly=REX.Foundation.WPF"
xmlns:rexc="clr-namespace:REX.Controls.WPF;assembly=REX.Controls.WPF">
<UserControl.Triggers>
<EventTrigger RoutedEvent="UserControl.Loaded" >
<BeginStoryboard>
<Storyboard Name="storyBoardZ">
<DoubleAnimation
Storyboard.TargetName="rotationZ"
Storyboard.TargetProperty="Angle"
From="0" To="360" Duration="0:0:15" RepeatBehavior="Forever"/>
</Storyboard>
</BeginStoryboard>
</EventTrigger>
</UserControl.Triggers>
<Grid Background="White">
<Border BorderThickness="1" BorderBrush="Gray">
<Viewport3D x:Name="viewport">
<ModelVisual3D x:Name="model">
<ModelVisual3D.Content>
<Model3DGroup x:Name="group">
<GeometryModel3D>
<GeometryModel3D.Transform>
<RotateTransform3D>
<RotateTransform3D.Rotation>
<AxisAngleRotation3D x:Name="rotationZ"
Angle="0" Axis="0,0,1"/>
</RotateTransform3D.Rotation>
</RotateTransform3D>
</GeometryModel3D.Transform>
<GeometryModel3D.Geometry>
<MeshGeometry3D x:Name="geometry"/>
</GeometryModel3D.Geometry>
<GeometryModel3D.Material>
<DiffuseMaterial Brush="Gray" />
</GeometryModel3D.Material>
</GeometryModel3D>
<Model3DGroup>
<DirectionalLight x:Name="directionLight" Color="White" Direction="2,0,0" />
<DirectionalLight x:Name="directionLight2" Color="White" Direction="2,0,0" />
</Model3DGroup>
</Model3DGroup>
</ModelVisual3D.Content>
</ModelVisual3D>
<Viewport3D.Camera>
<OrthographicCamera x:Name="camera" Position="50,50,-100" UpDirection="1,1,0" LookDirection="-0,-0,1" />
</Viewport3D.Camera>
</Viewport3D>
</Border>
</Grid>
</rexf:REXExtensionControl>
@@ -0,0 +1,177 @@
//
// (C) Copyright 2007-2011 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using REX.Common.Geometry;
using System.Windows.Media.Media3D;
namespace REX.ContentGeneratorWPF.Resources.Dialogs
{
/// <summary>
/// Interaction logic for SubControl.xaml
/// </summary>
public partial class UserControlView : REX.Common.REXExtensionControl
{
/// <summary>
/// Represents the bounding box of the whole element.
/// </summary>
BoundingBoxREXxyz BoundBox;
/// <summary>
/// The current geometry.
/// </summary>
List<Main.Triangle> Triangles;
/// <summary>
/// Initializes a new instance of the <see cref="UserControlView"/> class.
/// </summary>
public UserControlView()
{
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the <see cref="UserControlView"/> class.
/// </summary>
/// <param name="extension">The extension.</param>
public UserControlView(REX.Common.REXExtension extension)
: base(extension)
{
InitializeComponent();
}
/// <summary>
/// Draws the specified geometry described by the list of triangles.
/// </summary>
/// <param name="triangles">The triangles.</param>
public void DrawGeometry(List<Main.Triangle> triangles)
{
Triangles = triangles;
SetBoundingBox();
DrawTriangles();
SetCameraPosition();
}
/// <summary>
/// Sets the bounding box based on the current list of triangles.
/// </summary>
void SetBoundingBox()
{
BoundingBoxREXxyz boundBox = new BoundingBoxREXxyz();
foreach (Main.Triangle tr in Triangles)
{
boundBox.AddPoint(tr.Pt1);
boundBox.AddPoint(tr.Pt2);
boundBox.AddPoint(tr.Pt3);
}
BoundBox = boundBox;
}
/// <summary>
/// Draws all triangles.
/// </summary>
void DrawTriangles()
{
geometry.TriangleIndices.Clear();
geometry.Positions.Clear();
foreach (Main.Triangle triangle in Triangles)
DrawTriangle(triangle, geometry);
}
/// <summary>
/// Draws the specified triangle.
/// </summary>
/// <param name="triangle">The triangle.</param>
/// <param name="geometry">The geometry.</param>
void DrawTriangle(Main.Triangle triangle, MeshGeometry3D geometry)
{
int count = geometry.Positions.Count;
REXxyz centerBoundBox = BoundBox.GetCenter();
//All points are translated in this way to obtain the center of the bounding box in (0,0,0).
geometry.Positions.Add(GetPoint3D(triangle.Pt1 - centerBoundBox));
geometry.Positions.Add(GetPoint3D(triangle.Pt2 - centerBoundBox));
geometry.Positions.Add(GetPoint3D(triangle.Pt3 - centerBoundBox));
geometry.TriangleIndices.Add(count);
geometry.TriangleIndices.Add(count+1);
geometry.TriangleIndices.Add(count+2);
}
/// <summary>
/// Sets the camera position.
/// </summary>
void SetCameraPosition()
{
//The 0,0,0 point is the center of the scene.
//Animation rotates the object about Z axis.
REXxyz boundBoxDX = BoundBox.Max - BoundBox.Min;
REXxyz centerBox = BoundBox.GetCenter();
//The start LookDirection is calculated based on the center and the maximum point
//of the bounding box.
REXxyz dx = centerBox - BoundBox.Max;
//The camera used in this sample is an OrthographicCamera and to be sure that all
//content is visible on the viewer the appropriate width is calculated based on
//the diagonal of the bounding box
double width = dx.GetLength() * 2.2;
//In order to have better view of the element some modification of the LookDirection
//is required
//for horizontal elements - to see them more from the top
if (boundBoxDX.x > boundBoxDX.z || boundBoxDX.y > boundBoxDX.z)
{
dx.z *= 10;
}
else//for vertical elements - to see them more from the side
{
dx.z /= 10;
}
REXxyz dxUnit = dx.GetUnitVector();
//The position of the camera is calculated based on the center of the bounding box
//(which is in 0,0,0) and some default distance - here 100
camera.Position = new Point3D( - dxUnit.x * 100, - dxUnit.y * 100, - dxUnit.z * 100);
camera.LookDirection = new Vector3D(dxUnit.x, dxUnit.y, dxUnit.z);
directionLight.Direction = camera.LookDirection;
directionLight2.Direction = new Vector3D(dxUnit.x, dxUnit.y, 0);
REXxyz upDir = dxUnit.CrossProduct(new REXxyz(0, 0, 1)).CrossProduct(new REXxyz(dxUnit));
camera.UpDirection = new Vector3D(upDir.x, upDir.y, upDir.z);
camera.Width = width;
}
Point3D GetPoint3D(REXxyz pt)
{
return new Point3D(pt.x, pt.y, pt.z);
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 421 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 611 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 757 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 679 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 444 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 474 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 340 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 714 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.3 KiB

@@ -0,0 +1,117 @@
//------------------------------------------------------------------------------
// <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 REX.ContentGeneratorWPF.Resources.Strings {
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 Texts {
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Texts() {
}
/// <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("REX.ContentGeneratorWPF.Resources.Strings.Texts", typeof(Texts).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 string similar to Data.
/// </summary>
internal static string LIST_Data {
get {
return ResourceManager.GetString("LIST_Data", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Results.
/// </summary>
internal static string LIST_Results {
get {
return ResourceManager.GetString("LIST_Results", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Question.
/// </summary>
internal static string MessageBox_CaptionQuestion {
get {
return ResourceManager.GetString("MessageBox_CaptionQuestion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to Errors occurred! Do you want to continue?.
/// </summary>
internal static string MessageBox_ErrorQuestion {
get {
return ResourceManager.GetString("MessageBox_ErrorQuestion", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to My extension (ContentGeneratorWPF).
/// </summary>
internal static string REX_ModuleDescription {
get {
return ResourceManager.GetString("REX_ModuleDescription", resourceCulture);
}
}
/// <summary>
/// Looks up a localized string similar to To launch this extension, Extensions Engine at least version %vern should be installed.\nThe current version is: %verc.
/// </summary>
internal static string REX_VersionInfo {
get {
return ResourceManager.GetString("REX_VersionInfo", resourceCulture);
}
}
}
}
@@ -0,0 +1,138 @@
<?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>
<data name="LIST_Data" xml:space="preserve">
<value>Data</value>
</data>
<data name="LIST_Results" xml:space="preserve">
<value>Results</value>
</data>
<data name="MessageBox_CaptionQuestion" xml:space="preserve">
<value>Question</value>
</data>
<data name="MessageBox_ErrorQuestion" xml:space="preserve">
<value>Errors occurred! Do you want to continue?</value>
</data>
<data name="REX_ModuleDescription" xml:space="preserve">
<value>My extension (ContentGeneratorWPF)</value>
</data>
<data name="REX_VersionInfo" xml:space="preserve">
<value>To launch this extension, Extensions Engine at least version %vern should be installed.\nThe current version is: %verc</value>
</data>
</root>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<options product="REX" name="REX">
<option name="SDK" description="SDK" description_full="SDK" version="" domain="" date="">
<option name="ContentGeneratorWPF" description="ContentGeneratorWPF" description_full="ContentGeneratorWPF" version="0.5" domain="" date="" type="">
<data>
<data.run type="ASSEMBLY" path="ContentGeneratorWPF" file="ContentGeneratorWPF.dll" class="REX.ContentGeneratorWPF.Application" direct_revit_class="REX.ContentGeneratorWPF.DirectRevitAccess"/>
</data>
</option>
</option>
</options>
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="utf-8"?>
<options product="REX" name="REX">
<option name="SDK" description="SDK" description_full="SDK" version="" domain="" date="">
<option name="ContentGeneratorWPF" description="ContentGeneratorWPF" description_full="ContentGeneratorWPF" version="0.5" domain="" date="" type="">
<data>
<data.run type="ASSEMBLY" path="ContentGeneratorWPF" file="ContentGeneratorWPF.dll" class="REX.ContentGeneratorWPF.Application" direct_revit_class="REX.ContentGeneratorWPF.DirectRevitAccess"/>
</data>
</option>
</option>
</options>
@@ -0,0 +1,384 @@
{\rtf1\adeflang1025\ansi\ansicpg1252\uc1\adeff0\deff0\stshfdbch31505\stshfloch31506\stshfhich31506\stshfbi0\deflang1033\deflangfe1033\themelang1033\themelangfe0\themelangcs0{\fonttbl{\f0\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f1\fbidi \fswiss\fcharset0\fprq2{\*\panose 020b0604020202020204}Arial;}
{\f2\fbidi \fmodern\fcharset0\fprq1{\*\panose 02070309020205020404}Courier New;}{\f3\fbidi \froman\fcharset2\fprq2{\*\panose 05050102010706020507}Symbol;}{\f10\fbidi \fnil\fcharset2\fprq2{\*\panose 05000000000000000000}Wingdings;}
{\f34\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria Math;}{\f39\fbidi \fnil\fcharset134\fprq1{\*\panose 00000000000000000000}Fixedsys{\*\falt Arial Unicode MS};}
{\f40\fbidi \fnil\fcharset134\fprq1{\*\panose 00000000000000000000}@Fixedsys;}{\flomajor\f31500\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
{\fdbmajor\f31501\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fhimajor\f31502\fbidi \froman\fcharset0\fprq2{\*\panose 02040503050406030204}Cambria;}
{\fbimajor\f31503\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\flominor\f31504\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}
{\fdbminor\f31505\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\fhiminor\f31506\fbidi \fswiss\fcharset0\fprq2{\*\panose 020f0502020204030204}Calibri;}
{\fbiminor\f31507\fbidi \froman\fcharset0\fprq2{\*\panose 02020603050405020304}Times New Roman;}{\f389\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\f390\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
{\f392\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\f393\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\f394\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\f395\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
{\f396\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\f397\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\f399\fbidi \fswiss\fcharset238\fprq2 Arial CE;}{\f400\fbidi \fswiss\fcharset204\fprq2 Arial Cyr;}
{\f402\fbidi \fswiss\fcharset161\fprq2 Arial Greek;}{\f403\fbidi \fswiss\fcharset162\fprq2 Arial Tur;}{\f404\fbidi \fswiss\fcharset177\fprq2 Arial (Hebrew);}{\f405\fbidi \fswiss\fcharset178\fprq2 Arial (Arabic);}
{\f406\fbidi \fswiss\fcharset186\fprq2 Arial Baltic;}{\f407\fbidi \fswiss\fcharset163\fprq2 Arial (Vietnamese);}{\f409\fbidi \fmodern\fcharset238\fprq1 Courier New CE;}{\f410\fbidi \fmodern\fcharset204\fprq1 Courier New Cyr;}
{\f412\fbidi \fmodern\fcharset161\fprq1 Courier New Greek;}{\f413\fbidi \fmodern\fcharset162\fprq1 Courier New Tur;}{\f414\fbidi \fmodern\fcharset177\fprq1 Courier New (Hebrew);}{\f415\fbidi \fmodern\fcharset178\fprq1 Courier New (Arabic);}
{\f416\fbidi \fmodern\fcharset186\fprq1 Courier New Baltic;}{\f417\fbidi \fmodern\fcharset163\fprq1 Courier New (Vietnamese);}{\f729\fbidi \froman\fcharset238\fprq2 Cambria Math CE;}{\f730\fbidi \froman\fcharset204\fprq2 Cambria Math Cyr;}
{\f732\fbidi \froman\fcharset161\fprq2 Cambria Math Greek;}{\f733\fbidi \froman\fcharset162\fprq2 Cambria Math Tur;}{\f736\fbidi \froman\fcharset186\fprq2 Cambria Math Baltic;}{\f737\fbidi \froman\fcharset163\fprq2 Cambria Math (Vietnamese);}
{\flomajor\f31508\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\flomajor\f31509\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\flomajor\f31511\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}
{\flomajor\f31512\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\flomajor\f31513\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\flomajor\f31514\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
{\flomajor\f31515\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\flomajor\f31516\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fdbmajor\f31518\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
{\fdbmajor\f31519\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fdbmajor\f31521\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fdbmajor\f31522\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}
{\fdbmajor\f31523\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fdbmajor\f31524\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fdbmajor\f31525\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}
{\fdbmajor\f31526\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fhimajor\f31528\fbidi \froman\fcharset238\fprq2 Cambria CE;}{\fhimajor\f31529\fbidi \froman\fcharset204\fprq2 Cambria Cyr;}
{\fhimajor\f31531\fbidi \froman\fcharset161\fprq2 Cambria Greek;}{\fhimajor\f31532\fbidi \froman\fcharset162\fprq2 Cambria Tur;}{\fhimajor\f31535\fbidi \froman\fcharset186\fprq2 Cambria Baltic;}
{\fhimajor\f31536\fbidi \froman\fcharset163\fprq2 Cambria (Vietnamese);}{\fbimajor\f31538\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fbimajor\f31539\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
{\fbimajor\f31541\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fbimajor\f31542\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fbimajor\f31543\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
{\fbimajor\f31544\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fbimajor\f31545\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fbimajor\f31546\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}
{\flominor\f31548\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\flominor\f31549\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\flominor\f31551\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}
{\flominor\f31552\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\flominor\f31553\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\flominor\f31554\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}
{\flominor\f31555\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\flominor\f31556\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fdbminor\f31558\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}
{\fdbminor\f31559\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}{\fdbminor\f31561\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fdbminor\f31562\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}
{\fdbminor\f31563\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}{\fdbminor\f31564\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fdbminor\f31565\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}
{\fdbminor\f31566\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}{\fhiminor\f31568\fbidi \fswiss\fcharset238\fprq2 Calibri CE;}{\fhiminor\f31569\fbidi \fswiss\fcharset204\fprq2 Calibri Cyr;}
{\fhiminor\f31571\fbidi \fswiss\fcharset161\fprq2 Calibri Greek;}{\fhiminor\f31572\fbidi \fswiss\fcharset162\fprq2 Calibri Tur;}{\fhiminor\f31575\fbidi \fswiss\fcharset186\fprq2 Calibri Baltic;}
{\fhiminor\f31576\fbidi \fswiss\fcharset163\fprq2 Calibri (Vietnamese);}{\fbiminor\f31578\fbidi \froman\fcharset238\fprq2 Times New Roman CE;}{\fbiminor\f31579\fbidi \froman\fcharset204\fprq2 Times New Roman Cyr;}
{\fbiminor\f31581\fbidi \froman\fcharset161\fprq2 Times New Roman Greek;}{\fbiminor\f31582\fbidi \froman\fcharset162\fprq2 Times New Roman Tur;}{\fbiminor\f31583\fbidi \froman\fcharset177\fprq2 Times New Roman (Hebrew);}
{\fbiminor\f31584\fbidi \froman\fcharset178\fprq2 Times New Roman (Arabic);}{\fbiminor\f31585\fbidi \froman\fcharset186\fprq2 Times New Roman Baltic;}{\fbiminor\f31586\fbidi \froman\fcharset163\fprq2 Times New Roman (Vietnamese);}}
{\colortbl;\red0\green0\blue0;\red0\green0\blue255;\red0\green255\blue255;\red0\green255\blue0;\red255\green0\blue255;\red255\green0\blue0;\red255\green255\blue0;\red255\green255\blue255;\red0\green0\blue128;\red0\green128\blue128;\red0\green128\blue0;
\red128\green0\blue128;\red128\green0\blue0;\red128\green128\blue0;\red128\green128\blue128;\red192\green192\blue192;}{\*\defchp \fs22\loch\af31506\hich\af31506\dbch\af31505 }{\*\defpap \ql \li0\ri0\sa200\sl276\slmult1
\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 }\noqfpromote {\stylesheet{\ql \li0\ri0\sa200\sl276\slmult1\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs22\alang1025 \ltrch\fcs0
\fs22\lang1033\langfe1033\loch\f31506\hich\af31506\dbch\af31505\cgrid\langnp1033\langfenp1033 \snext0 \sqformat \spriority0 Normal;}{\*\cs10 \additive \ssemihidden \sunhideused \spriority1 Default Paragraph Font;}{\*
\ts11\tsrowd\trftsWidthB3\trpaddl108\trpaddr108\trpaddfl3\trpaddft3\trpaddfb3\trpaddfr3\trcbpat1\trcfpat1\tblind0\tblindtype3\tsvertalt\tsbrdrt\tsbrdrl\tsbrdrb\tsbrdrr\tsbrdrdgl\tsbrdrdgr\tsbrdrh\tsbrdrv \ql \li0\ri0\sa200\sl276\slmult1
\widctlpar\wrapdefault\aspalpha\aspnum\faauto\adjustright\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs22\alang1025 \ltrch\fcs0 \fs22\lang1033\langfe1033\loch\f31506\hich\af31506\dbch\af31505\cgrid\langnp1033\langfenp1033 \snext11 \ssemihidden \sunhideused
Normal Table;}}{\*\listtable{\list\listtemplateid154578118\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\leveltemplateid-1311219408\'01-;}{\levelnumbers;}
\loch\af1\hich\af1\dbch\af39\fbias0 \fi-360\li1080\lin1080 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0
\fi-360\li1800\lin1800 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li2520\lin2520 }{\listlevel
\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698689\'01\u-3913 ?;}{\levelnumbers;}\f3\fbias0 \fi-360\li3240\lin3240 }{\listlevel\levelnfc23\levelnfcn23\leveljc0
\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0 \fi-360\li3960\lin3960 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1
\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li4680\lin4680 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0
\levelindent0{\leveltext\leveltemplateid67698689\'01\u-3913 ?;}{\levelnumbers;}\f3\fbias0 \fi-360\li5400\lin5400 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0 \fi-360\li6120\lin6120 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698693
\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li6840\lin6840 }{\listname ;}\listid670180154}{\list\listtemplateid-1687893750\listhybrid{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\levelspace360\levelindent0
{\leveltext\leveltemplateid67698703\'02\'00.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fbias0 \fi-360\li720\lin720 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698713\'02\'01.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li1440\lin1440 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698715\'02\'02.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li2160\lin2160 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698703\'02\'03.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li2880\lin2880 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698713\'02\'04.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li3600\lin3600 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698715\'02\'05.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li4320\lin4320 }{\listlevel\levelnfc0\levelnfcn0\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698703\'02\'06.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li5040\lin5040 }{\listlevel\levelnfc4\levelnfcn4\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698713\'02\'07.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-360\li5760\lin5760 }{\listlevel\levelnfc2\levelnfcn2\leveljc2\leveljcn2\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext
\leveltemplateid67698715\'02\'08.;}{\levelnumbers\'01;}\rtlch\fcs1 \af0 \ltrch\fcs0 \fi-180\li6480\lin6480 }{\listname ;}\listid982462950}{\list\listtemplateid1085811748\listhybrid{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0
\levelstartat0\levelspace360\levelindent0{\leveltext\leveltemplateid664539694\'01-;}{\levelnumbers;}\loch\af1\hich\af1\dbch\af39\fbias0 \fi-360\li720\lin720 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative
\levelspace360\levelindent0{\leveltext\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0 \fi-360\li1440\lin1440 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext
\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li2160\lin2160 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698689
\'01\u-3913 ?;}{\levelnumbers;}\f3\fbias0 \fi-360\li2880\lin2880 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0
\fi-360\li3600\lin3600 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li4320\lin4320 }
{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698689\'01\u-3913 ?;}{\levelnumbers;}\f3\fbias0 \fi-360\li5040\lin5040 }{\listlevel\levelnfc23\levelnfcn23
\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0 \fi-360\li5760\lin5760 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0
\levelstartat1\lvltentative\levelspace360\levelindent0{\leveltext\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li6480\lin6480 }{\listname ;}\listid1677884127}{\list\listtemplateid-597548598\listhybrid{\listlevel\levelnfc23
\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat0\levelspace0\levelindent0{\leveltext\leveltemplateid664539694\'01-;}{\levelnumbers;}\loch\af1\hich\af1\dbch\af39\fbias0 \fi-360\li720\lin720 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0
\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0 \fi-360\li1440\lin1440 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative
\levelspace0\levelindent0{\leveltext\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li2160\lin2160 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0
{\leveltext\leveltemplateid67698689\'01\u-3913 ?;}{\levelnumbers;}\f3\fbias0 \fi-360\li2880\lin2880 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698691
\'01o;}{\levelnumbers;}\f2\fbias0 \fi-360\li3600\lin3600 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0
\fi-360\li4320\lin4320 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698689\'01\u-3913 ?;}{\levelnumbers;}\f3\fbias0 \fi-360\li5040\lin5040 }{\listlevel
\levelnfc23\levelnfcn23\leveljc0\leveljcn0\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698691\'01o;}{\levelnumbers;}\f2\fbias0 \fi-360\li5760\lin5760 }{\listlevel\levelnfc23\levelnfcn23\leveljc0\leveljcn0
\levelfollow0\levelstartat1\lvltentative\levelspace0\levelindent0{\leveltext\leveltemplateid67698693\'01\u-3929 ?;}{\levelnumbers;}\f10\fbias0 \fi-360\li6480\lin6480 }{\listname ;}\listid1811971856}}{\*\listoverridetable{\listoverride\listid670180154
\listoverridecount0\ls1}{\listoverride\listid1811971856\listoverridecount0\ls2}{\listoverride\listid982462950\listoverridecount0\ls3}{\listoverride\listid1677884127\listoverridecount0\ls4}}{\*\rsidtbl \rsid85718\rsid144132\rsid466955\rsid538525
\rsid1000914\rsid2307087\rsid2313257\rsid2495712\rsid2847634\rsid3892547\rsid5141369\rsid5986209\rsid6180407\rsid6187565\rsid6453515\rsid7355889\rsid7436494\rsid7627231\rsid7747325\rsid8611418\rsid10180232\rsid10189020\rsid10497927\rsid10511401
\rsid11483614\rsid12855747\rsid12985103\rsid13466782\rsid14251038\rsid14645320\rsid14760119\rsid15734330\rsid15753286\rsid15813555\rsid15992273\rsid16201153\rsid16269875}{\mmathPr\mmathFont34\mbrkBin0\mbrkBinSub0\msmallFrac0\mdispDef1\mlMargin0\mrMargin0
\mdefJc1\mwrapIndent1440\mintLim0\mnaryLim1}{\info{\author wolskip}{\operator Pawel Madej}{\creatim\yr2010\mo12\dy14\hr8\min22}{\revtim\yr2017\mo1\dy12\hr17\min21}{\version46}{\edmins340}{\nofpages3}{\nofwords811}{\nofchars4628}{\nofcharsws5429}
{\vern57441}}{\*\xmlnstbl {\xmlns1 http://schemas.microsoft.com/office/word/2003/wordml}}\paperw12240\paperh15840\margl1440\margr1440\margt1440\margb1440\gutter0\ltrsect
\widowctrl\ftnbj\aenddoc\hyphhotz425\trackmoves0\trackformatting1\donotembedsysfont0\relyonvml0\donotembedlingdata1\grfdocevents0\validatexml0\showplaceholdtext0\ignoremixedcontent0\saveinvalidxml0\showxmlerrors0\horzdoc\dghspace120\dgvspace120
\dghorigin1701\dgvorigin1984\dghshow0\dgvshow3\jcompress\viewkind1\viewscale130\rsidroot15753286 \fet0{\*\wgrffmtfilter 2450}\ilfomacatclnup0\ltrpar \sectd \ltrsect\linex0\headery708\footery708\colsx708\sectdefaultcl\sftnbj {\*\pnseclvl1
\pnucrm\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl2\pnucltr\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl3\pndec\pnstart1\pnindent720\pnhang {\pntxta .}}{\*\pnseclvl4\pnlcltr\pnstart1\pnindent720\pnhang {\pntxta )}}{\*\pnseclvl5
\pndec\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl6\pnlcltr\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl7\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}{\*\pnseclvl8\pnlcltr\pnstart1\pnindent720\pnhang
{\pntxtb (}{\pntxta )}}{\*\pnseclvl9\pnlcrm\pnstart1\pnindent720\pnhang {\pntxtb (}{\pntxta )}}\pard\plain \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 \rtlch\fcs1 \af0\afs22\alang1025 \ltrch\fcs0
\fs22\lang1033\langfe1033\loch\af31506\hich\af31506\dbch\af31505\cgrid\langnp1033\langfenp1033 {\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Application:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\f1\fs20\insrsid6453515 \hich\af1\dbch\af31505\loch\f1 ContentGeneratorWPF}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \line }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 R}{\rtlch\fcs1
\ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid6453515 \hich\af1\dbch\af31505\loch\f1 EXSDK}{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Version:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7747325
\hich\af1\dbch\af31505\loch\f1 201}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid1000914 \hich\af1\dbch\af31505\loch\f1 8}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 .0\line }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0
\b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 First Released For:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6453515 \hich\af1\dbch\af31505\loch\f1 REXSDK 2012}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \line }{
\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Last Modified:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6453515 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\f1\fs20\insrsid7627231 \hich\af1\dbch\af31505\loch\f1 01}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2847634 \hich\af1\dbch\af31505\loch\f1 /}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7627231 \hich\af1\dbch\af31505\loch\f1 07}{
\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2847634 \hich\af1\dbch\af31505\loch\f1 /201}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7627231 \hich\af1\dbch\af31505\loch\f1 6}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \line }
{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Modified By:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Autodesk\line }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0
\b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Programming Language:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 C#\line }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418
\hich\af1\dbch\af31505\loch\f1 Skill Level:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Medium}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid10497927 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1
\af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \line \line }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Subject:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418
\hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2495712 \hich\af1\dbch\af31505\loch\f1
Read properties of the selected element (a column or a beam), examine it by REX.ContentGenerator and replace its type with the new type created by REX.ContentGenerator.
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid15813555 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \line }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1
Summary:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 \line This sample demonstrates how to create}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid85718 \hich\af1\dbch\af31505\loch\f1 a
\hich\af1\dbch\af31505\loch\f1 n Extension module based on WPF technology.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid85718
\hich\af1\dbch\af31505\loch\f1 The module reads properties of the selected beam }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15813555 \hich\af1\dbch\af31505\loch\f1 (}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid85718
\hich\af1\dbch\af31505\loch\f1 or column}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15813555 \hich\af1\dbch\af31505\loch\f1 )}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid85718 \hich\af1\dbch\af31505\loch\f1
and presents them on the first layout. The second layout presents results of REX.ContentGenerator }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15813555 \hich\af1\dbch\af31505\loch\f1 research and the third one allows user to select a ne
\hich\af1\dbch\af31505\loch\f1 w type which will be applied to the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid85718 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15813555 \hich\af1\dbch\af31505\loch\f1
selected element.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid3892547
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid3892547 {\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\fs20\loch\af1\hich\af1\dbch\af39\insrsid3892547 \hich\af1\dbch\af39\loch\f1 REXSDK values:}{\rtlch\fcs1 \af1\afs20
\ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid3892547 \hich\af1\dbch\af39\loch\f1 }{\rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af0\hich\af0\dbch\af39\insrsid3892547
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid3892547 \hich\af1\dbch\af39\loch\f1 -\tab}}\pard \ltrpar\ql \fi-360\li720\ri0\nowidctlpar\wrapdefault\faauto\ls4\rin0\lin720\itap0\pararsid8611418 {
\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid3892547 \hich\af1\dbch\af39\loch\f1 Create the REX extension module in WPF technology with}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 a}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid3892547 \hich\af1\dbch\af39\loch\f1 multi}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid3892547 \hich\af1\dbch\af39\loch\f1 layout dialog.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid7355889
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132 \hich\af1\dbch\af39\loch\f1 -\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 Use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 REXUnit system to present data formatted according Revit settings.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid10511401 \hich\af1\dbch\af39\loch\f1 -\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid10511401
\hich\af1\dbch\af39\loch\f1 Use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid10511401
\hich\af1\dbch\af39\loch\f1 REX Extension Prog\hich\af1\dbch\af39\loch\f1 ress.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132 \hich\af1\dbch\af39\loch\f1 -\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 Use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 REXEditBox for unit dependent data.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid3892547
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid7355889 \hich\af1\dbch\af39\loch\f1 -\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid7355889
\hich\af1\dbch\af39\loch\f1 Use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid7355889
\hich\af1\dbch\af39\loch\f1 REXImageComboBox for image type selection.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132 \hich\af1\dbch\af39\loch\f1 -\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 Use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132
\hich\af1\dbch\af39\loch\f1 REX.ContentGenerator to examine an element.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132 \hich\af1\dbch\af39\loch\f1 -\tab}\hich\af1\dbch\af39\loch\f1 Use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132 \hich\af1\dbch\af39\loch\f1 REX.ContentGenerator to create the new FamilySymbol.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132 \hich\af1\dbch\af39\loch\f1 -\tab}\hich\af1\dbch\af39\loch\f1 Use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid144132 \hich\af1\dbch\af39\loch\f1 REX.ContentGeneraotor da\hich\af1\dbch\af39\loch\f1
tabase browser.}{\rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f0\fs20\insrsid3892547
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \f0\fs20\insrsid8611418
\par }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 Project Files:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af0\afs20 \ltrch\fcs0
\f0\fs20\insrsid8611418
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330
\par \hich\af1\dbch\af31505\loch\f1 Generated by the wizard:
\par
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15992273 \hich\af1\dbch\af31505\loch\f1 Extension.cs:
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid15992273 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15992273 \hich\af1\dbch\af31505\loch\f1
The main class generated by the wizard. It contains definition of the Extension class which is the main class in the REXExtension module. This class is a central point which al}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6187565
\hich\af1\dbch\af31505\loch\f1 lows u\hich\af1\dbch\af31505\loch\f1 ser to manage and customize the module.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15992273
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid6187565 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6187565
\par \hich\af1\dbch\af31505\loch\f1 ExtensionRevit.cs:
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid6187565 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6187565 \hich\af1\dbch\af31505\loch\f1
This file contains an ExtensionRevit class. This class allows to separate general functionality \hich\af1\dbch\af31505\loch\f1
(provided by the Extension class) from functionality characteristic for the Revit context e.g. setting layouts may be done in the Extension class but reading Revit elements should be carried out in the ExtensionRevit class (unless the specific layout is s
\hich\af1\dbch\af31505\loch\f1 e\hich\af1\dbch\af31505\loch\f1 t only in the Revit context).}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407 \hich\af1\dbch\af31505\loch\f1
In the current example the ExtensionRevit class: reads Revits selection, runs analysis of the selected element (by REX.ContentGenerator), creates the new type and applies it to the element.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6187565
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid6187565 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6187565
\par \hich\af1\dbch\af31505\loch\f1 Data.cs
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid15734330 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330 \hich\af1\dbch\af31505\loch\f1 This file contains a Data c\hich\af1\dbch\af31505\loch\f1
lass which is a data container accessible from different places in the module.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7627231 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330
\hich\af1\dbch\af31505\loch\f1 All common objects should be placed in this class.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6187565
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid15734330 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330
\par \hich\af1\dbch\af31505\loch\f1 Application.cs, DirectAccess.cs, Results.cs
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid10189020 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330 \hich\af1\dbch\af31505\loch\f1 These files were generated by the wizard but there is no need to }{
\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid10189020 \hich\af1\dbch\af31505\loch\f1 make any changes\hich\af1\dbch\af31505\loch\f1 in }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407 \hich\af1\dbch\af31505\loch\f1 their}{\rtlch\fcs1
\af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid10189020 \hich\af1\dbch\af31505\loch\f1 content.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15992273
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330 \hich\af1\dbch\af31505\loch\f1 Added manually:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid15734330
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407 \hich\af1\dbch\af31505\loch\f1 SelectedElementControl.xaml,}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7627231 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\f1\fs20\insrsid6180407 \hich\af1\dbch\af31505\loch\f1 SelectedElementControl.xaml.cs
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid7436494 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407 \hich\af1\dbch\af31505\loch\f1 These file}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\f1\fs20\insrsid7436494 \hich\af1\dbch\af31505\loch\f1 s}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407 \hich\af1\dbch\af31505\loch\f1 contain }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 a }{
\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407 \hich\af1\dbch\af31505\loch\f1 definition of the first layout}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494 \hich\af1\dbch\af31505\loch\f1
which presents the properties of the selected element.
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid7436494 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494
\par \hich\af1\dbch\af31505\loch\f1 ContentGeneratorReadControl.xaml,}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494\charrsid7436494 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494
\hich\af1\dbch\af31505\loch\f1 ContentGenerator\hich\af1\dbch\af31505\loch\f1 ReadControl.xaml.cs
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid7436494 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494 \hich\af1\dbch\af31505\loch\f1 These files contain }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 a }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494 \hich\af1\dbch\af31505\loch\f1 definition of the second layout which presents results of REX.ContentGenerator examination. }{\rtlch\fcs1
\af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid6180407 \tab
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid7436494 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494
\par \hich\af1\dbch\af31505\loch\f1 ContentGeneratorCreate}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1 Control.xaml,}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087\charrsid2307087
\hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1 ContentGeneratorCreateControl.xaml.cs
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid2307087 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1 These files contain }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 a }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1 definition of the third\hich\af1\dbch\af31505\loch\f1
layout which allows to define a new type for the selected element. }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid7436494
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid2307087 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1 UserControlView.xaml, UserControlView.xaml.cs
\par \tab \hich\af1\dbch\af31505\loch\f1 These files contain }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 a }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1
definition of the viewer 3D which presents selected element}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 s geometry}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 .
\par
\par \hich\af1\dbch\af31505\loch\f1 PolygonViewer.xaml, PolygonViewer.xaml.cs
\par \tab \hich\af1\dbch\af31505\loch\f1 Th\hich\af1\dbch\af31505\loch\f1 ese files contain}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 a}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087
\hich\af1\dbch\af31505\loch\f1 definition of the viewer 2D which presents the section of the element.
\par
\par \hich\af1\dbch\af31505\loch\f1 PropertiesControl.xaml, PropertiesControl.xaml.cs
\par \tab \hich\af1\dbch\af31505\loch\f1 These files contain}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 a}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1
definition of the control which presents the set of properties.
\par
\par \hich\af1\dbch\af31505\loch\f1 PropertyControl.xaml,}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087\charrsid2307087 \hich\af1\dbch\af31505\loch\f1 }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1
Prop\hich\af1\dbch\af31505\loch\f1 ertyControl.xaml.cs
\par \tab \hich\af1\dbch\af31505\loch\f1 These files contain}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid8611418 \hich\af1\dbch\af31505\loch\f1 a}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1
definition of the control which presents the specified property.
\par
\par \hich\af1\dbch\af31505\loch\f1 PropertyItem.cs
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid2307087 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087 \hich\af1\dbch\af31505\loch\f1
This file contains a PropertyItem class which represents the property of the specified name and the specified value.
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid2307087 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid2307087
\par \hich\af1\dbch\af31505\loch\f1 Triangle.cs
\par \tab \hich\af1\dbch\af31505\loch\f1 This file contains a Triangle class which represents the geometry of the triangle.
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \f1\fs20\insrsid3892547
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af0\hich\af0\dbch\af39\insrsid8611418
\par }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 Description:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 }{
\rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af0\hich\af0\dbch\af39\insrsid8611418
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid16201153 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 This sample }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\fs20\loch\af1\hich\af1\dbch\af39\insrsid10180232 \hich\af1\dbch\af39\loch\f1 examines the }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1 current selected }{\rtlch\fcs1 \af1\afs20
\ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 element which has}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1 to be of column or beam type.
\par \hich\af1\dbch\af39\loch\f1 On the first layout the characteristics of the Revit element are \hich\af1\dbch\af39\loch\f1 presented by:
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1 -\tab}}\pard \ltrpar\ql \fi-360\li720\ri0\nowidctlpar\wrapdefault\faauto\ls2\rin0\lin720\itap0\pararsid16201153 {
\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1 The list of properties
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1 -\tab}\hich\af1\dbch\af39\loch\f1 The geometry of the element (on 3D viewer)
\par }\pard \ltrpar\ql \li720\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin720\itap0\pararsid8611418 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid16201153 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1
On the second layout characteristics of the element according REX.ContentGenerator are presented. There are two types of representation: parametric and database. The param\hich\af1\dbch\af39\loch\f1
etric description is represented by the section view, dimensions and the section type. The database description is }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 re}{\rtlch\fcs1
\af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1 presented by name, default database and the list of databases where the specified element can be found. The module informs also about certi
\hich\af1\dbch\af39\loch\f1 fication of the element (whether the element type was created by REX.ContentGenerator).
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153 \hich\af1\dbch\af39\loch\f1
On the third layout user is able to change the current type applied to the element for a new type created by REX.ContentGenerator. It is possible to generate two types\hich\af1\dbch\af39\loch\f1
of sections: parametric and database. There are three types of parametric sections available:
\par \tab \hich\af1\dbch\af39\loch\f1 Rectangular
\par \tab \hich\af1\dbch\af39\loch\f1 Angle
\par \tab \hich\af1\dbch\af39\loch\f1 I section
\par \hich\af1\dbch\af39\loch\f1 The user defines dimensions of the section. The preview of the section is presented in the upper part of the control}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid10511401
\hich\af1\dbch\af39\loch\f1 and its chara\hich\af1\dbch\af39\loch\f1 cteristics (area and moment of inertia) are presented below. In case of database section the user has to launch the database browser (click }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320 \hich\af1\dbch\af39\loch\f1 the }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid10511401 \hich\af1\dbch\af39\loch\f1 Select button) and choose the appropriate element.}{
\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid16201153
\par }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0\pararsid14645320 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid10511401 \hich\af1\dbch\af39\loch\f1 The use}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320 \hich\af1\dbch\af39\loch\f1 r confirms his changes by clicking the OK button on t\hich\af1\dbch\af39\loch\f1 he main dialog.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\par }\pard \ltrpar\ql \li0\ri0\nowidctlpar\wrapdefault\faauto\rin0\lin0\itap0 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\par }{\rtlch\fcs1 \ab\af1\afs20 \ltrch\fcs0 \b\fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 Instructions:}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\cf2\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 }{
\rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\cf2\loch\af0\hich\af0\dbch\af39\insrsid8611418
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14760119 \hich\af1\dbch\af39\loch\f1 1.\tab}}\pard \ltrpar\ql \fi-360\li720\ri0\nowidctlpar
\tx360\wrapdefault\faauto\ls3\rin0\lin720\itap0\pararsid8611418 {\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14760119 \hich\af1\dbch\af39\loch\f1 \hich\f1 Copy the module to the \'85\loch\f1 Modules/Category directory
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 2.\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\hich\af1\dbch\af39\loch\f1 Open Revit Structure.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320 \hich\af1\dbch\af39\loch\f1 3.\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320
\hich\af1\dbch\af39\loch\f1 Define the beam.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 4.\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\hich\af1\dbch\af39\loch\f1 Select the beam.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 5.\tab}\hich\af1\dbch\af39\loch\f1 Run the }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0
\fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320 \hich\af1\dbch\af39\loch\f1 Extension.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320 \hich\af1\dbch\af39\loch\f1 6.\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320
\hich\af1\dbch\af39\loch\f1 Define the new parametric type.}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320 \hich\af1\dbch\af39\loch\f1 7.\tab}}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320
\hich\af1\dbch\af39\loch\f1 Click}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 the OK button.
\par {\listtext\pard\plain\ltrpar \rtlch\fcs1 \af0\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 8.\tab}}\pard \ltrpar\ql \fi-360\li720\ri0\nowidctlpar\wrapdefault\faauto\ls3\rin0\lin720\itap0\pararsid8611418 {
\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 \hich\af1\dbch\af39\loch\f1 A\hich\af1\dbch\af39\loch\f1 pplication will create }{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid14645320
\hich\af1\dbch\af39\loch\f1 a new FamilySymbol and apply it to the element}{\rtlch\fcs1 \af1\afs20 \ltrch\fcs0 \fs20\loch\af1\hich\af1\dbch\af39\insrsid8611418 .
\par }{\*\themedata 504b030414000600080000002100e9de0fbfff0000001c020000130000005b436f6e74656e745f54797065735d2e786d6cac91cb4ec3301045f748fc83e52d4a
9cb2400825e982c78ec7a27cc0c8992416c9d8b2a755fbf74cd25442a820166c2cd933f79e3be372bd1f07b5c3989ca74aaff2422b24eb1b475da5df374fd9ad
5689811a183c61a50f98f4babebc2837878049899a52a57be670674cb23d8e90721f90a4d2fa3802cb35762680fd800ecd7551dc18eb899138e3c943d7e503b6
b01d583deee5f99824e290b4ba3f364eac4a430883b3c092d4eca8f946c916422ecab927f52ea42b89a1cd59c254f919b0e85e6535d135a8de20f20b8c12c3b0
0c895fcf6720192de6bf3b9e89ecdbd6596cbcdd8eb28e7c365ecc4ec1ff1460f53fe813d3cc7f5b7f020000ffff0300504b030414000600080000002100a5d6
a7e7c0000000360100000b0000005f72656c732f2e72656c73848fcf6ac3300c87ef85bd83d17d51d2c31825762fa590432fa37d00e1287f68221bdb1bebdb4f
c7060abb0884a4eff7a93dfeae8bf9e194e720169aaa06c3e2433fcb68e1763dbf7f82c985a4a725085b787086a37bdbb55fbc50d1a33ccd311ba548b6309512
0f88d94fbc52ae4264d1c910d24a45db3462247fa791715fd71f989e19e0364cd3f51652d73760ae8fa8c9ffb3c330cc9e4fc17faf2ce545046e37944c69e462
a1a82fe353bd90a865aad41ed0b5b8f9d6fd010000ffff0300504b0304140006000800000021006b799616830000008a0000001c0000007468656d652f746865
6d652f7468656d654d616e616765722e786d6c0ccc4d0ac3201040e17da17790d93763bb284562b2cbaebbf600439c1a41c7a0d29fdbd7e5e38337cedf14d59b
4b0d592c9c070d8a65cd2e88b7f07c2ca71ba8da481cc52c6ce1c715e6e97818c9b48d13df49c873517d23d59085adb5dd20d6b52bd521ef2cdd5eb9246a3d8b
4757e8d3f729e245eb2b260a0238fd010000ffff0300504b03041400060008000000210096b5ade296060000501b0000160000007468656d652f7468656d652f
7468656d65312e786d6cec594f6fdb3614bf0fd87720746f6327761a07758ad8b19b2d4d1bc46e871e698996d850a240d2497d1bdae38001c3ba618715d86d87
615b8116d8a5fb34d93a6c1dd0afb0475292c5585e9236d88aad3e2412f9e3fbff1e1fa9abd7eec70c1d1221294fda5efd72cd4324f1794093b0eddd1ef62fad
79482a9c0498f184b4bd2991deb58df7dfbb8ad755446282607d22d771db8b944ad79796a40fc3585ee62949606ecc458c15bc8a702910f808e8c66c69b9565b
5d8a314d3c94e018c8de1a8fa94fd05093f43672e23d06af89927ac06762a049136785c10607758d9053d965021d62d6f6804fc08f86e4bef210c352c144dbab
999fb7b4717509af678b985ab0b6b4ae6f7ed9ba6c4170b06c788a705430adf71bad2b5b057d03606a1ed7ebf5babd7a41cf00b0ef83a6569632cd467faddec9
699640f6719e76b7d6ac355c7c89feca9cccad4ea7d36c65b258a206641f1b73f8b5da6a6373d9c11b90c537e7f08dce66b7bbeae00dc8e257e7f0fd2badd586
8b37a088d1e4600ead1ddaef67d40bc898b3ed4af81ac0d76a197c86826828a24bb318f3442d8ab518dfe3a20f000d6458d104a9694ac6d88728eee2782428d6
0cf03ac1a5193be4cbb921cd0b495fd054b5bd0f530c1931a3f7eaf9f7af9e3f45c70f9e1d3ff8e9f8e1c3e3073f5a42ceaa6d9c84e5552fbffdeccfc71fa33f
9e7ef3f2d117d57859c6fffac327bffcfc793510d26726ce8b2f9ffcf6ecc98baf3efdfdbb4715f04d814765f890c644a29be408edf3181433567125272371be
15c308d3f28acd249438c19a4b05fd9e8a1cf4cd296699771c393ac4b5e01d01e5a30a787d72cf1178108989a2159c77a2d801ee72ce3a5c545a6147f32a9979
3849c26ae66252c6ed637c58c5bb8b13c7bfbd490a75330f4b47f16e441c31f7184e140e494214d273fc80900aedee52ead87597fa824b3e56e82e451d4c2b4d
32a423279a668bb6690c7e9956e90cfe766cb37b077538abd27a8b1cba48c80acc2a841f12e698f13a9e281c57911ce298950d7e03aba84ac8c154f8655c4f2a
f074481847bd804859b5e696007d4b4edfc150b12addbecba6b18b148a1e54d1bc81392f23b7f84137c2715a851dd0242a633f900710a218ed715505dfe56e86
e877f0034e16bafb0e258ebb4faf06b769e888340b103d3311da9750aa9d0a1cd3e4efca31a3508f6d0c5c5c398602f8e2ebc71591f5b616e24dd893aa3261fb
44f95d843b5974bb5c04f4edafb95b7892ec1108f3f98de75dc97d5772bdff7cc95d94cf672db4b3da0a6557f70db629362d72bcb0431e53c6066acac80d699a
6409fb44d08741bdce9c0e4971624a2378cceaba830b05366b90e0ea23aaa241845368b0eb9e2612ca8c742851ca251ceccc70256d8d87265dd96361531f186c
3d9058edf2c00eafe8e1fc5c509031bb4d680e9f39a3154de0accc56ae644441edd76156d7429d995bdd88664a9dc3ad50197c38af1a0c16d684060441db0256
5e85f3b9660d0713cc48a0ed6ef7dedc2dc60b17e92219e180643ed27acffba86e9c94c78ab90980d8a9f0913ee49d62b512b79626fb06dccee2a432bbc60276
b9f7dec44b7904cfbca4f3f6443ab2a49c9c2c41476dafd55c6e7ac8c769db1bc399161ee314bc2e75cf8759081743be1236ec4f4d6693e5336fb672c5dc24a8
c33585b5fb9cc24e1d4885545b58463634cc5416022cd19cacfccb4d30eb45296023fd35a458598360f8d7a4003bbaae25e331f155d9d9a5116d3bfb9a95523e
51440ca2e0088dd844ec6370bf0e55d027a012ae264c45d02f708fa6ad6da6dce29c255df9f6cae0ec38666984b372ab5334cf640b37795cc860de4ae2816e95
b21be5ceaf8a49f90b52a51cc6ff3355f47e0237052b81f6800fd7b802239daf6d8f0b1571a8426944fdbe80c6c1d40e8816b88b8569082ab84c36ff0539d4ff
6dce591a26ade1c0a7f669880485fd484582903d284b26fa4e2156cff62e4b9265844c4495c495a9157b440e091bea1ab8aaf7760f4510eaa69a6465c0e04ec6
9ffb9e65d028d44d4e39df9c1a52ecbd3607fee9cec7263328e5d661d3d0e4f62f44acd855ed7ab33cdf7bcb8ae889599bd5c8b3029895b6825696f6af29c239
b75a5bb1e6345e6ee6c28117e73586c1a2214ae1be07e93fb0ff51e133fb65426fa843be0fb515c187064d0cc206a2fa926d3c902e907670048d931db4c1a449
59d366ad93b65abe595f70a75bf03d616c2dd959fc7d4e6317cd99cbcec9c58b34766661c7d6766ca1a9c1b327531486c6f941c638c67cd22a7f75e2a37be0e8
2db8df9f30254d30c1372581a1f51c983c80e4b71ccdd28dbf000000ffff0300504b0304140006000800000021000dd1909fb60000001b010000270000007468
656d652f7468656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73848f4d0ac2301484f78277086f6fd3ba109126dd88d0add40384e4
350d363f2451eced0dae2c082e8761be9969bb979dc9136332de3168aa1a083ae995719ac16db8ec8e4052164e89d93b64b060828e6f37ed1567914b284d2624
52282e3198720e274a939cd08a54f980ae38a38f56e422a3a641c8bbd048f7757da0f19b017cc524bd62107bd5001996509affb3fd381a89672f1f165dfe5141
73d9850528a2c6cce0239baa4c04ca5bbabac4df000000ffff0300504b01022d0014000600080000002100e9de0fbfff0000001c020000130000000000000000
0000000000000000005b436f6e74656e745f54797065735d2e786d6c504b01022d0014000600080000002100a5d6a7e7c0000000360100000b00000000000000
000000000000300100005f72656c732f2e72656c73504b01022d00140006000800000021006b799616830000008a0000001c0000000000000000000000000019
0200007468656d652f7468656d652f7468656d654d616e616765722e786d6c504b01022d001400060008000000210096b5ade296060000501b00001600000000
000000000000000000d60200007468656d652f7468656d652f7468656d65312e786d6c504b01022d00140006000800000021000dd1909fb60000001b01000027
00000000000000000000000000a00900007468656d652f7468656d652f5f72656c732f7468656d654d616e616765722e786d6c2e72656c73504b050600000000050005005d0100009b0a00000000}
{\*\colorschememapping 3c3f786d6c2076657273696f6e3d22312e302220656e636f64696e673d225554462d3822207374616e64616c6f6e653d22796573223f3e0d0a3c613a636c724d
617020786d6c6e733a613d22687474703a2f2f736368656d61732e6f70656e786d6c666f726d6174732e6f72672f64726177696e676d6c2f323030362f6d6169
6e22206267313d226c743122207478313d22646b3122206267323d226c743222207478323d22646b322220616363656e74313d22616363656e74312220616363
656e74323d22616363656e74322220616363656e74333d22616363656e74332220616363656e74343d22616363656e74342220616363656e74353d22616363656e74352220616363656e74363d22616363656e74362220686c696e6b3d22686c696e6b2220666f6c486c696e6b3d22666f6c486c696e6b222f3e}
{\*\latentstyles\lsdstimax371\lsdlockeddef0\lsdsemihiddendef0\lsdunhideuseddef0\lsdqformatdef0\lsdprioritydef99{\lsdlockedexcept \lsdqformat1 \lsdpriority0 \lsdlocked0 Normal;\lsdqformat1 \lsdpriority9 \lsdlocked0 heading 1;
\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 2;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 3;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 4;
\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 5;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 6;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 7;
\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 8;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority9 \lsdlocked0 heading 9;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 1;
\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 2;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 3;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 4;
\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 5;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 6;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 7;
\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 8;\lsdsemihidden1 \lsdunhideused1 \lsdpriority39 \lsdlocked0 toc 9;\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority35 \lsdlocked0 caption;
\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List Number;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List 4;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 List 5;\lsdqformat1 \lsdpriority10 \lsdlocked0 Title;
\lsdsemihidden1 \lsdunhideused1 \lsdpriority1 \lsdlocked0 Default Paragraph Font;\lsdqformat1 \lsdpriority11 \lsdlocked0 Subtitle;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Salutation;\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Date;
\lsdsemihidden1 \lsdunhideused1 \lsdlocked0 Body Text First Indent;\lsdqformat1 \lsdpriority22 \lsdlocked0 Strong;\lsdqformat1 \lsdpriority20 \lsdlocked0 Emphasis;\lsdpriority59 \lsdlocked0 Table Grid;\lsdsemihidden1 \lsdlocked0 Placeholder Text;
\lsdqformat1 \lsdpriority1 \lsdlocked0 No Spacing;\lsdpriority60 \lsdlocked0 Light Shading;\lsdpriority61 \lsdlocked0 Light List;\lsdpriority62 \lsdlocked0 Light Grid;\lsdpriority63 \lsdlocked0 Medium Shading 1;\lsdpriority64 \lsdlocked0 Medium Shading 2;
\lsdpriority65 \lsdlocked0 Medium List 1;\lsdpriority66 \lsdlocked0 Medium List 2;\lsdpriority67 \lsdlocked0 Medium Grid 1;\lsdpriority68 \lsdlocked0 Medium Grid 2;\lsdpriority69 \lsdlocked0 Medium Grid 3;\lsdpriority70 \lsdlocked0 Dark List;
\lsdpriority71 \lsdlocked0 Colorful Shading;\lsdpriority72 \lsdlocked0 Colorful List;\lsdpriority73 \lsdlocked0 Colorful Grid;\lsdpriority60 \lsdlocked0 Light Shading Accent 1;\lsdpriority61 \lsdlocked0 Light List Accent 1;
\lsdpriority62 \lsdlocked0 Light Grid Accent 1;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 1;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 1;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 1;\lsdsemihidden1 \lsdlocked0 Revision;
\lsdqformat1 \lsdpriority34 \lsdlocked0 List Paragraph;\lsdqformat1 \lsdpriority29 \lsdlocked0 Quote;\lsdqformat1 \lsdpriority30 \lsdlocked0 Intense Quote;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 1;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 1;
\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 1;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 1;\lsdpriority70 \lsdlocked0 Dark List Accent 1;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 1;\lsdpriority72 \lsdlocked0 Colorful List Accent 1;
\lsdpriority73 \lsdlocked0 Colorful Grid Accent 1;\lsdpriority60 \lsdlocked0 Light Shading Accent 2;\lsdpriority61 \lsdlocked0 Light List Accent 2;\lsdpriority62 \lsdlocked0 Light Grid Accent 2;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 2;
\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 2;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 2;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 2;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 2;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 2;
\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 2;\lsdpriority70 \lsdlocked0 Dark List Accent 2;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 2;\lsdpriority72 \lsdlocked0 Colorful List Accent 2;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 2;
\lsdpriority60 \lsdlocked0 Light Shading Accent 3;\lsdpriority61 \lsdlocked0 Light List Accent 3;\lsdpriority62 \lsdlocked0 Light Grid Accent 3;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 3;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 3;
\lsdpriority65 \lsdlocked0 Medium List 1 Accent 3;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 3;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 3;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 3;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 3;
\lsdpriority70 \lsdlocked0 Dark List Accent 3;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 3;\lsdpriority72 \lsdlocked0 Colorful List Accent 3;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 3;\lsdpriority60 \lsdlocked0 Light Shading Accent 4;
\lsdpriority61 \lsdlocked0 Light List Accent 4;\lsdpriority62 \lsdlocked0 Light Grid Accent 4;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 4;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 4;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 4;
\lsdpriority66 \lsdlocked0 Medium List 2 Accent 4;\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 4;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 4;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 4;\lsdpriority70 \lsdlocked0 Dark List Accent 4;
\lsdpriority71 \lsdlocked0 Colorful Shading Accent 4;\lsdpriority72 \lsdlocked0 Colorful List Accent 4;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 4;\lsdpriority60 \lsdlocked0 Light Shading Accent 5;\lsdpriority61 \lsdlocked0 Light List Accent 5;
\lsdpriority62 \lsdlocked0 Light Grid Accent 5;\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 5;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 5;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 5;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 5;
\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 5;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 5;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 5;\lsdpriority70 \lsdlocked0 Dark List Accent 5;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 5;
\lsdpriority72 \lsdlocked0 Colorful List Accent 5;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 5;\lsdpriority60 \lsdlocked0 Light Shading Accent 6;\lsdpriority61 \lsdlocked0 Light List Accent 6;\lsdpriority62 \lsdlocked0 Light Grid Accent 6;
\lsdpriority63 \lsdlocked0 Medium Shading 1 Accent 6;\lsdpriority64 \lsdlocked0 Medium Shading 2 Accent 6;\lsdpriority65 \lsdlocked0 Medium List 1 Accent 6;\lsdpriority66 \lsdlocked0 Medium List 2 Accent 6;
\lsdpriority67 \lsdlocked0 Medium Grid 1 Accent 6;\lsdpriority68 \lsdlocked0 Medium Grid 2 Accent 6;\lsdpriority69 \lsdlocked0 Medium Grid 3 Accent 6;\lsdpriority70 \lsdlocked0 Dark List Accent 6;\lsdpriority71 \lsdlocked0 Colorful Shading Accent 6;
\lsdpriority72 \lsdlocked0 Colorful List Accent 6;\lsdpriority73 \lsdlocked0 Colorful Grid Accent 6;\lsdqformat1 \lsdpriority19 \lsdlocked0 Subtle Emphasis;\lsdqformat1 \lsdpriority21 \lsdlocked0 Intense Emphasis;
\lsdqformat1 \lsdpriority31 \lsdlocked0 Subtle Reference;\lsdqformat1 \lsdpriority32 \lsdlocked0 Intense Reference;\lsdqformat1 \lsdpriority33 \lsdlocked0 Book Title;\lsdsemihidden1 \lsdunhideused1 \lsdpriority37 \lsdlocked0 Bibliography;
\lsdsemihidden1 \lsdunhideused1 \lsdqformat1 \lsdpriority39 \lsdlocked0 TOC Heading;\lsdpriority41 \lsdlocked0 Plain Table 1;\lsdpriority42 \lsdlocked0 Plain Table 2;\lsdpriority43 \lsdlocked0 Plain Table 3;\lsdpriority44 \lsdlocked0 Plain Table 4;
\lsdpriority45 \lsdlocked0 Plain Table 5;\lsdpriority40 \lsdlocked0 Grid Table Light;\lsdpriority46 \lsdlocked0 Grid Table 1 Light;\lsdpriority47 \lsdlocked0 Grid Table 2;\lsdpriority48 \lsdlocked0 Grid Table 3;\lsdpriority49 \lsdlocked0 Grid Table 4;
\lsdpriority50 \lsdlocked0 Grid Table 5 Dark;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 1;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 1;
\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 1;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 1;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 1;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 1;
\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 1;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 2;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 2;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 2;
\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 2;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 2;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 2;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 2;
\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 3;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 3;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 3;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 3;
\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 3;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 3;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 3;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 4;
\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 4;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 4;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 4;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 4;
\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 4;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 4;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 5;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 5;
\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 5;\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 5;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 5;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 5;
\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 5;\lsdpriority46 \lsdlocked0 Grid Table 1 Light Accent 6;\lsdpriority47 \lsdlocked0 Grid Table 2 Accent 6;\lsdpriority48 \lsdlocked0 Grid Table 3 Accent 6;
\lsdpriority49 \lsdlocked0 Grid Table 4 Accent 6;\lsdpriority50 \lsdlocked0 Grid Table 5 Dark Accent 6;\lsdpriority51 \lsdlocked0 Grid Table 6 Colorful Accent 6;\lsdpriority52 \lsdlocked0 Grid Table 7 Colorful Accent 6;
\lsdpriority46 \lsdlocked0 List Table 1 Light;\lsdpriority47 \lsdlocked0 List Table 2;\lsdpriority48 \lsdlocked0 List Table 3;\lsdpriority49 \lsdlocked0 List Table 4;\lsdpriority50 \lsdlocked0 List Table 5 Dark;
\lsdpriority51 \lsdlocked0 List Table 6 Colorful;\lsdpriority52 \lsdlocked0 List Table 7 Colorful;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 1;\lsdpriority47 \lsdlocked0 List Table 2 Accent 1;\lsdpriority48 \lsdlocked0 List Table 3 Accent 1;
\lsdpriority49 \lsdlocked0 List Table 4 Accent 1;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 1;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 1;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 1;
\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 2;\lsdpriority47 \lsdlocked0 List Table 2 Accent 2;\lsdpriority48 \lsdlocked0 List Table 3 Accent 2;\lsdpriority49 \lsdlocked0 List Table 4 Accent 2;
\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 2;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 2;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 2;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 3;
\lsdpriority47 \lsdlocked0 List Table 2 Accent 3;\lsdpriority48 \lsdlocked0 List Table 3 Accent 3;\lsdpriority49 \lsdlocked0 List Table 4 Accent 3;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 3;
\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 3;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 3;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 4;\lsdpriority47 \lsdlocked0 List Table 2 Accent 4;
\lsdpriority48 \lsdlocked0 List Table 3 Accent 4;\lsdpriority49 \lsdlocked0 List Table 4 Accent 4;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 4;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 4;
\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 4;\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 5;\lsdpriority47 \lsdlocked0 List Table 2 Accent 5;\lsdpriority48 \lsdlocked0 List Table 3 Accent 5;
\lsdpriority49 \lsdlocked0 List Table 4 Accent 5;\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 5;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 5;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 5;
\lsdpriority46 \lsdlocked0 List Table 1 Light Accent 6;\lsdpriority47 \lsdlocked0 List Table 2 Accent 6;\lsdpriority48 \lsdlocked0 List Table 3 Accent 6;\lsdpriority49 \lsdlocked0 List Table 4 Accent 6;
\lsdpriority50 \lsdlocked0 List Table 5 Dark Accent 6;\lsdpriority51 \lsdlocked0 List Table 6 Colorful Accent 6;\lsdpriority52 \lsdlocked0 List Table 7 Colorful Accent 6;}}{\*\datastore 010500000200000018000000
4d73786d6c322e534158584d4c5265616465722e362e3000000000000000000000060000
d0cf11e0a1b11ae1000000000000000000000000000000003e000300feff090006000000000000000000000001000000010000000000000000100000feffffff00000000feffffff0000000000000000ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
fffffffffffffffffdfffffffeffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff
ffffffffffffffffffffffffffffffff52006f006f007400200045006e00740072007900000000000000000000000000000000000000000000000000000000000000000000000000000000000000000016000500ffffffffffffffffffffffff0c6ad98892f1d411a65f0040963251e5000000000000000000000000306a
89f6ef6cd201feffffff00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff00000000000000000000000000000000000000000000000000000000
00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff0000000000000000000000000000000000000000000000000000
000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000ffffffffffffffffffffffff000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000105000000000000}}
@@ -0,0 +1,22 @@
Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DRevitFreezeDrawing", "DRevitFreezeDrawing\DRevitFreezeDrawing.csproj", "{82D1D741-1B5B-4F49-BBAF-E7C27EBF8DEF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{82D1D741-1B5B-4F49-BBAF-E7C27EBF8DEF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{82D1D741-1B5B-4F49-BBAF-E7C27EBF8DEF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{82D1D741-1B5B-4F49-BBAF-E7C27EBF8DEF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{82D1D741-1B5B-4F49-BBAF-E7C27EBF8DEF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<RevitAddIns>
<AddIn Type="Command">
<Assembly>P:\DRevitFreezeDrawing\DRevitFreezeDrawing\bin\Debug\DRevitFreezeDrawing.dll</Assembly>
<ClientId>b3285fd3-c3b4-48ea-a8c6-c64b71eeb34c</ClientId>
<FullClassName>REX.DRevitFreezeDrawing.DirectRevitAccess</FullClassName>
<Text>DRevitFreezeDrawing</Text>
<Description>Freeze Drawing for Revit</Description>
<VendorId>ADSK</VendorId>
<VendorDescription>Autodesk, www.autodesk.com</VendorDescription>
</AddIn>
</RevitAddIns>
@@ -0,0 +1,10 @@
set SOURCE_PATH=
set DESTINATION_PATH=
if not exist "%DESTINATION_PATH%\DRevitFreezeDrawing\DRevitFreezeDrawing.dll" goto end
if not exist "%SOURCE_PATH%\DRevitFreezeDrawing\DRevitFreezeDrawing\bin\Debug\DRevitFreezeDrawing.dll" goto end
copy "%SOURCE_PATH%\DRevitFreezeDrawing\DRevitFreezeDrawing\bin\Debug\DRevitFreezeDrawing.dll" "%DESTINATION_PATH%\DRevitFreezeDrawing\DRevitFreezeDrawing.dll"
copy "%SOURCE_PATH%\DRevitFreezeDrawing\DRevitFreezeDrawing\bin\Debug\DRevitFreezeDrawing.pdb" "%DESTINATION_PATH%\DRevitFreezeDrawing\DRevitFreezeDrawing.pdb"
:end
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 392 B

@@ -0,0 +1,256 @@
# Revit Export Layers
# Maps Categories and Subcategories to layer names and color numbers
# Category <tab> Subcategory <tab> Layer name <tab> Color number <tab>
# Cut layer name <tab> Cut color number
# Do not remove the colon (:) after certain category names.
# -----------------------------------------------------
Air Terminal Tags M-ANNO-TEXT 2 M-ANNO-TEXT 2
Air Terminals M-HVAC-CDFF 3 M-HVAC-CDFF 3
Area Polylines A-AREA-BDRY 1 A-AREA-BDRY 1
Area Tags A-AREA-IDEN 2 A-AREA-IDEN 2
Boundary Conditions S-BCON 2 S-BCON 2
Callouts A-ANNO-SYMB 6 A-ANNO-SYMB 6
Casework A-FLOR-CASE 3 A-FLOR-CASE 3
Casework Tags I-ELEV-IDEN 5 I-ELEV-IDEN 5
Ceiling Tags A-CLNG-IDEN 6 A-CLNG-IDEN 6
Ceilings A-CLNG-SUSP 5 A-CLNG-SUSP 5
Ceilings Cut Pattern A-CLNG-PATT 5 A-CLNG-PATT 5
Ceilings Surface Pattern A-CLNG-GRID 1 A-CLNG-GRID 1
Color Fill A-AREA-IDEN 2 A-AREA-IDEN 2
Color Fill Legends G-ANNO 5 G-ANNO 5
Columns A-COLS 4 A-COLS 4
Communication Device Tags COMM-DEVICES 2 COMM-DEVICES 2
Communication Devices COMM-DEVICES 2 COMM-DEVICES 2
Constraints A-ANNO-NOTE 2 A-ANNO-NOTE 2
Contour Labels C-TOPO-MAID 2 C-TOPO-MAID 2
Curtain Panel Tags A-GLAZ-IDEN 6 A-GLAZ-IDEN 6
Curtain Panels A-GLAZ 6 A-GLAZ 6
Curtain Wall Mullions A-GLAZ-CWMG 3 A-GLAZ-CWMG 3
Data Device Tags DATA-DEVICES 2 DATA-DEVICES 2
Data Devices DATA-DEVICES 2 DATA-DEVICES 2
Demolished -DEMO 3 -DEMO 3
Detail Item Tags A-DETL-IDEN 3 A-DETL-IDEN 3
Detail Items A-DETL-GENF 3 A-DETL-GENF 3
Dimensions A-ANNO-DIMS 1 A-ANNO-DIMS 1
Dimensions Automatic Sketch Dimensions A-ANNO-DIMS 1 A-ANNO-DIMS 1
Door Tags A-DOOR-IDEN 6 A-DOOR-IDEN 6
Doors A-DOOR 1 A-DOOR 1
Doors Frame/Mullion A-DOOR-FRAM 1 A-DOOR-FRAM 1
Doors Glass A-DOOR-GLAZ 1 A-DOOR-GLAZ 1
Doors Opening A-DOOR-OTLN 6 A-DOOR-OTLN 6
Doors Panel A-DOOR 1 A-DOOR 1
Duct Accessories M-HVAC-DUCT 1 M-HVAC-DUCT 1
Duct Accessory Tags M-ANNO-TEXT 2 M-ANNO-TEXT 2
Duct Color Fill M-HVAC-PATT 2 M-HVAC-PATT 2
Duct Color Fill Legends M-ANNO 5 M-ANNO 5
Duct Fitting Tags E-ANNO-TEXT 2 E-ANNO-TEXT 2
Duct Fittings M-HVAC-DUCT 1 M-HVAC-DUCT 1
Duct Tags M-ANNO-TEXT 2 M-ANNO-TEXT 2
Ducts M-HVAC-DUCT 1 M-HVAC-DUCT 1
Electrical Circuit Tag E-ANNO-TEXT 2 E-ANNO-TEXT 2
Electrical Equipment E-EQPM 4 E-EQPM 4
Electrical Equipment Tags E-EQPM-IDEN 2 E-EQPM-IDEN 2
Electrical Fixture Tags E-FIXT-IDEN 2 E-FIXT-IDEN 2
Electrical Fixtures E-FIXT 2 E-FIXT 2
Elevations A-ANNO-SYMB 6 A-ANNO-SYMB 6
Entourage A-DETL-GENF 3 A-DETL-GENF 3
Existing -EXST 3 -EXST 3
Fire Alarm Device Tags FIRE-ALARM-DEVICES 2 FIRE-ALARM-DEVICES 2
Fire Alarm Devices FIRE-ALARM-DEVICES 2 FIRE-ALARM-DEVICES 2
Flex Duct Tags M-ANNO-TEXT 2 M-ANNO-TEXT 2
Flex Ducts M-HVAC-DUCT 1 M-HVAC-DUCT 1
Flex Pipe Tags M-ANNO-TEXT 2 M-ANNO-TEXT 2
Flex Pipes M-PIPE 3 M-PIPE 3
Floors A-FLOR-OTLN 6 A-FLOR-OTLN 6
Floors Cut Pattern A-FLOR-PATT 8 A-FLOR-PATT 8
Floors Hidden Lines A-FLOR-HIDN 5 A-FLOR-HIDN 5
Floors Slab Edges A-FLOR-OTLN 6 A-FLOR-OTLN 6
Floors Surface Pattern A-FLOR-PATT 8 A-FLOR-PATT 8
Furniture I-FURN 2 I-FURN 2
Furniture System Tags I-FURN-IDEN 3 I-FURN-IDEN 3
Furniture Systems I-FURN-PNLS 2 I-FURN-PNLS 2
Furniture Tags I-FURN-IDEN 3 I-FURN-IDEN 3
Generic Annotations A-ANNO-NOTE 2 A-ANNO-NOTE 2
Generic Model Tags A-GENM-IDEN 2 A-GENM-IDEN 2
Generic Models A-GENM 6 A-GENM 6
Grid Heads S-GRID 1 S-GRID 1
Grids S-GRID 1 S-GRID 1
Imports in Families G-IMPT 1 G-IMPT 1
Keynote Tags A-ANNO-NOTE 2 A-ANNO-NOTE 2
Level Heads A-FLOR-LEVL 6 A-FLOR-LEVL 6
Levels A-FLOR-LEVL 6 A-FLOR-LEVL 6
Lighting Device Tags LIGHTING-DEVICES 2 LIGHTING-DEVICES 2
Lighting Devices LIGHTING-DEVICES 2 LIGHTING-DEVICES 2
Lighting Fixture Tags E-LITE-IDEN 1 E-LITE-IDEN 1
Lighting Fixtures E-LITE-EQPM 4 E-LITE-EQPM 4
Lines A-DETL 5 A-DETL 5
Lines <Area Boundary> A-AREA-LINE 4 A-AREA-LINE 4
Lines <Beyond> A-DETL-MBND 5 A-DETL-MBND 5
Lines <Centerline> A-ANNO-NPLT 5 A-ANNO-NPLT 5
Lines <Demolished> A-DETL-DEMO 6 A-DETL-DEMO 6
Lines <Hidden> A-DETL-MBND 5 A-DETL-MBND 5
Lines <Overhead> A-FLOR-OVHD 8 A-FLOR-OVHD 8
Lines <Revision Cloud> A-ANNO-RVSN 5 A-ANNO-RVSN 5
Lines <Room Separation> A-AREA-LINE 4 A-AREA-LINE 4
Lines <Sketch> A-ANNO-NPLT 5 A-ANNO-NPLT 5
Lines Axis of Rotation A-ANNO-NPLT 5 A-ANNO-NPLT 5
Lines Insulation Batting Lines A-DETL-INSL 8 A-DETL-INSL 8
Lines Lines A-DETL 5 A-DETL 5
Lines Medium Lines A-DETL-MLIN 3 A-DETL-MLIN 3
Lines Thin Lines A-DETL-LLIN 3 A-DETL-LLIN 3
Lines Wide Lines A-DETL-HLIN 3 A-DETL-HLIN 3
Mass A-MASS 5 A-MASS 5
Mass Tags A-MASS-IDEN 5 A-MASS-IDEN 5
Massing A-MASS 5 A-MASS 5
Matchline A-ANNO-SYMB 6 A-ANNO-SYMB 6
Material Tags A-ANNO-IDEN 2 A-ANNO-IDEN 2
Mechanical Equipment M-EQPT 2 M-EQPT 2
Mechanical Equipment Tags M-EQPT-IDEN 2 M-EQPT-IDEN 2
Multi-Category Tags A-ANNO-IDEN 2 A-ANNO-IDEN 2
New -NEWW 2 -NEWW 2
Nurse Call Device Tags NIRSE-CALL-DEVICES 2 NIRSE-CALL-DEVICES 2
Nurse Call Devices NIRSE-CALL-DEVICES 2 NIRSE-CALL-DEVICES 2
Parking C-PKNG 1 C-PKNG 1
Parking Tags C-PKNG-IDEN 1 C-PKNG-IDEN 1
Pipe Accessories M-PIPE 3 M-PIPE 3
Pipe Accessory Tags M-ANNO-TEXT 2 M-ANNO-TEXT 2
Pipe Color Fill M-PIPE-PATT 2 M-PIPE-PATT 2
Pipe Color Fill Legends M-ANNO 5 M-ANNO 5
Pipe Fitting Tags E-ANNO-TEXT 2 E-ANNO-TEXT 2
Pipe Fittings M-PIPE 3 M-PIPE 3
Pipe Tags M-ANNO-TEXT 2 M-ANNO-TEXT 2
Pipes M-PIPE 3 M-PIPE 3
Plan Region G-ANNO-NPLT 5 G-ANNO-NPLT 5
Planting L-PLNT-BEDS 3 L-PLNT-BEDS 3
Planting Tags L-PLNT-IDEN 3 L-PLNT-IDEN 3
Plumbing Fixture Tags P-ANNO-IDEN 2 P-ANNO-IDEN 2
Plumbing Fixtures P-SANR-FIXT 6 P-SANR-FIXT 6
Property Line Segment Tags C-PROP-IDEN 6 C-PROP-IDEN 6
Property Tags C-ANNO-IDEN 0 C-ANNO-IDEN 0
Railings A-FLOR-HRAL 1 A-FLOR-HRAL 1
Railings Balusters A-FLOR-HRAL 1 A-FLOR-HRAL 1
Railings Railings Beyond Cut Line A-SECT-MBND 5 A-SECT-MBND 5
Railings Rails A-FLOR-HRAL 1 A-FLOR-HRAL 1
Ramps A-FLOR-STRS 2 A-FLOR-STRS 2
Ramps Down Arrow A-ANNO-TEXT 2 A-ANNO-TEXT 2
Ramps DOWN text A-ANNO-TEXT 2 A-ANNO-TEXT 2
Ramps Incomplete ramps A-ANNO-TEXT 2 A-ANNO-TEXT 2
Ramps Ramps Beyond Cut Line A-SECT-MBND 5 A-SECT-MBND 5
Ramps Stringers A-FLOR-STRS 2 A-FLOR-STRS 2
Ramps Stringers Beyond Cut Line A-SECT-MBND 5 A-SECT-MBND 5
Ramps Up Arrow A-ANNO-TEXT 2 A-ANNO-TEXT 2
Ramps UP text A-ANNO-TEXT 2 A-ANNO-TEXT 2
Raster Images G-ANNO-PATT 8 G-ANNO-PATT 8
Reference Planes G-ANNO-NPLT 5 G-ANNO-NPLT 5
Revision Cloud Tags G-ANNO-REVS 5 G-ANNO-REVS 5
Revision Clouds G-ANNO-REVS 5 G-ANNO-REVS 5
Roads C-ROAD 4 C-ROAD 4
Roof Tags A-ROOF-IDEN 6 A-ROOF-IDEN 6
Roofs A-ROOF 4 A-ROOF 4
Roofs Curtain Roof Grids A-ROOF 4 A-ROOF 4
Roofs Cut Pattern A-ROOF-PATT 8 A-ROOF-PATT 8
Roofs Fascias A-ROOF-OTLN 4 A-ROOF-OTLN 4
Roofs Gutters A-ROOF-OTLN 4 A-ROOF-OTLN 4
Roofs Roof Soffits A-ROOF-OTLN 4 A-ROOF-OTLN 4
Roofs Surface Pattern A-ROOF-PATT 8 A-ROOF-PATT 8
Room Polylines A-AREA-BDRY 1 A-AREA-BDRY 1
Room Tags A-AREA-IDEN 2 A-AREA-IDEN 2
Rooms A-AREA-IDEN 2 A-AREA-IDEN 2
Schedule Graphics A-ANNO-NPLT 5 A-ANNO-NPLT 5
Scope Boxes G-ANNO-NPLT 5 G-ANNO-NPLT 5
Sections A-ANNO-SYMB 6 A-ANNO-SYMB 6
Security Device Tags SECUTITY-DEVICES 2 SECUTITY-DEVICES 2
Security Devices SECUTITY-DEVICES 2 SECUTITY-DEVICES 2
Site L-SITE 6 L-SITE 6
Site Pads C-BLDG 6 C-BLDG 6
Site Property C-PROP 6 C-PROP 6
Site Tags L-ANNO-IDEN 6 L-ANNO-IDEN 6
Span Direction Symbol S-FLOR-SYMB 2 S-FLOR-SYMB 2
Specialty Equipment A-EQPM 6 A-EQPM 6
Specialty Equipment Tags A-EQPM-IDEN 2 A-EQPM-IDEN 2
Spinkler Tags F-Anno-Std-Text 2 F-Anno-Std-Text 2
Spot Elevations A-ANNO-DIMS 1 A-ANNO-DIMS 1
Sprinklers F-Sprn-Std 3 F-Sprn-Std 3
Stair Tags A-FLOR-IDEN 2 A-FLOR-IDEN 2
Stairs A-FLOR-STRS 2 A-FLOR-STRS 2
Stairs Down Arrow A-ANNO-TEXT 2 A-ANNO-TEXT 2
Stairs DOWN Text A-ANNO-TEXT 2 A-ANNO-TEXT 2
Stairs Incomplete Stairs A-FLOR-STRS 2 A-FLOR-STRS 2
Stairs Stairs Beyond Cut Line A-SECT-MBND 5 A-SECT-MBND 5
Stairs Stringers A-FLOR-STRS 2 A-FLOR-STRS 2
Stairs Stringers Beyond Cut Line A-SECT-MBND 5 A-SECT-MBND 5
Stairs Up Arrow A-ANNO-TEXT 2 A-ANNO-TEXT 2
Stairs UP Text A-ANNO-TEXT 2 A-ANNO-TEXT 2
Structural Annotations S-IDEN 2 S-IDEN 2
Structural Area Reinforcement S-RBAR-BDRY 2 S-RBAR-BDRY 2
Structural Area Reinforcement Symbols S-RBAR-SYMB 2 S-RBAR-SYMB 2
Structural Area Reinforcement Tags S-RBAR-IDEN 2 S-RBAR-IDEN 2
Structural Beam System Tags S-BEAM-IDEN 2 S-BEAM-IDEN 2
Structural Beam Systems S-ANNO-SYM 2 S-ANNO-SYM 2
Structural Column Tags S-COLS-IDEN 2 S-COLS-IDEN 2
Structural Columns S-COLS 6 S-COLS 6
Structural Columns Hidden Lines S-COLS-HIDN 5 S-COLS-HIDN 5
Structural Connection Tags S-COLS-ANLY 2 S-COLS-ANLY 2
Structural Connections S-COLS-ANLY 2 S-COLS-ANLY 2
Structural Foundation Tags S-FNDN-IDEN 2 S-FNDN-IDEN 2
Structural Foundations S-FNDN-FTNG 4 S-FNDN-FTNG 4
Structural Foundations Hidden Lines S-FNDN-HIDN 4 S-FNDN-HIDN 4
Structural Framing S-BEAM 4 S-BEAM 4
Structural Framing Hidden Lines S-BEAM-HIDN 4 S-BEAM-HIDN 4
Structural Framing Tags S-BEAM-IDEN 2 S-BEAM-IDEN 2
Structural Load Cases S-LOAD-CASE 2 S-LOAD-CASE 2
Structural Load Cases Accidental Loads S-LOAD-ACCI 2 S-LOAD-ACCI 2
Structural Load Cases Dead Loads S-LOAD-DEAD 2 S-LOAD-DEAD 2
Structural Load Cases Live Loads S-LOAD-LIVE 2 S-LOAD-LIVE 2
Structural Load Cases Roof Live Loads S-LOAD-ROOF 2 S-LOAD-ROOF 2
Structural Load Cases Seismic Loads S-LOAD-SEIS 2 S-LOAD-SEIS 2
Structural Load Cases Snow Loads S-LOAD-SNOW 2 S-LOAD-SNOW 2
Structural Load Cases Temperature Loads S-LOAD-TEMP 2 S-LOAD-TEMP 2
Structural Load Cases Wind Loads S-LOAD-WIND 2 S-LOAD-WIND 2
Structural Loads S-LOAD 2 S-LOAD 2
Structural Loads Area Loads S-LOAD-AREA 2 S-LOAD-AREA 2
Structural Loads Line Loads S-LOAD-LINE 2 S-LOAD-LINE 2
Structural Loads Point Loads S-LOAD-POIN 2 S-LOAD-POIN 2
Structural Path Reinforcement S-RBAR-BDRY 2 S-RBAR-BDRY 2
Structural Path Reinforcement Symbols S-RBAR-SYMB 2 S-RBAR-SYMB 2
Structural Path Reinforcement Tags S-RBAR-IDEN 2 S-RBAR-IDEN 2
Structural Rebar S-RBAR 2 S-RBAR 2
Structural Rebar Tags S-RBAR-IDEN 2 S-RBAR-IDEN 2
Structural Truss Tags S-BEAM-IDEN 2 S-BEAM-IDEN 2
Structural Trusses S-ANNO-SYM 2 S-ANNO-SYM 2
Telephone Device Tags PHONE-DEVICES 2 PHONE-DEVICES 2
Telephone Devices PHONE-DEVICES 2 PHONE-DEVICES 2
Temporary -TEMP 2 -TEMP 2
Text Notes A-ANNO-TEXT 2 A-ANNO-TEXT 2
Title Blocks G-ANNO-TTLB 6 G-ANNO-TTLB 6
Title Blocks Medium Lines G-ANNO-MLIN 4 G-ANNO-MLIN 4
Title Blocks Thin Lines G-ANNO-LLIN 2 G-ANNO-LLIN 2
Title Blocks Wide Lines G-ANNO-HLIN 6 G-ANNO-HLIN 6
Topography C-TOPO 2 C-TOPO 2
Topography Boundary Point C-TOPO-BKLN 3 C-TOPO-BKLN 3
Topography Interior Point C-TOPO-SPOT 2 C-TOPO-SPOT 2
Topography Primary Contours C-TOPO-MAJR 2 C-TOPO-MAJR 2
Topography Secondary Contours C-TOPO-MINR 3 C-TOPO-MINR 3
Topography Triangulation Edges C-TOPO-EDGE 3 C-TOPO-EDGE 3
View Reference A-ANNO-SYMB 6 A-ANNO-SYMB 6
View Titles G-ANNO-TTLB 6 G-ANNO-TTLB 6
Viewports A-ANNO-NPLT 5 A-ANNO-NPLT 5
Wall Tags A-WALL-IDEN 4 A-WALL-IDEN 4
Walls A-WALL-MBNI 2 A-WALL 2
Walls Curtain Wall Grids A-GLAZ-GRID 2 A-GLAZ-GRID 2
Walls Cut Pattern A-WALL-PATT 2 A-WALL-PATT 2
Walls Hidden Lines A-WALL-HIDN 2 A-WALL-HIDN 2
Walls Surface Pattern A-WALL-PATT 2 A-WALL-PATT 2
Walls/Interior:1 I-WALL 2 I-WALL 2
Walls/Exterior:2 A-WALL 2 A-WALL 2
Walls/Foundation:3 S-FNDN 2 S-FNDN 2
Walls/Retaining:4 SITE-WALL 2 SITE-WALL 2
Window Tags A-GLAZ-IDEN 6 A-GLAZ-IDEN 6
Windows A-GLAZ 6 A-GLAZ 6
Windows Frame/Mullion A-GLAZ-FRAM 6 A-GLAZ-FRAM 6
Windows Glass A-GLAZ-GLAS 6 A-GLAZ-GLAS 6
Windows Opening A-GLAZ 6 A-GLAZ 6
Windows Sill/Head A-GLAZ-SILL 1 A-GLAZ-SILL 1
Wire Tag E-ANNO-TEXT 2 E-ANNO-TEXT 2
Wire Tick Marks E-ANNO-TEXT 2 E-ANNO-TEXT 2
Wires E-POWR-WIRE 3 E-POWR-WIRE 3
@@ -0,0 +1,212 @@
# Revit Export Layers
# Maps Categories and Subcategories to layer names and color numbers
# Category <tab> Subcategory <tab> Layer name <tab> Color number <tab>
# Cut layer name <tab> Cut color number
# Do not remove the colon (:) after certain category names.
# -----------------------------------------------------
Area Polylines F810A 1 F810A 1
Area Tags F810A 2 F810A 2
Callouts A060T 6 A060T 6
Casework A760 3 A760 3
Casework Tags A760A 5 A760A 5
Ceiling Tags A350A 6 A350A 6
Ceilings A359 5 A359 5
Ceilings Cut Pattern A350H 1 A350H 1
Ceilings Surface Pattern A350G 1 A350G 1
Color Fill F810A 2 F810A 2
Color Fill Legends Z010T 5 Z010T 5
Columns A280 4 A280 4
Constraints Z000 2 Z000 2
Contour Labels 0 2 0 2
Curtain Panel Tags A214A 6 A214A 6
Curtain Panels A214 6 A214 6
Curtain Wall Mullions A214 3 A214 3
Demolished -DEMO 3 -DEMO 3
Detail Item Tags A060A 3 A060A 3
Detail Items A060G5 3 A060G5 3
Dimensions A010D 1 A010D 1
Dimensions Automatic Sketch Dimensions A010D 1 A010D 1
Door Tags A300A 6 A300A 6
Doors A300 1 A300 1
Doors Frame/Mullion A300 1 A300 1
Doors Glass A300 1 A300 1
Doors Opening A300 6 A300 6
Doors Panel A300 1 A300 1
Electrical Equipment A610 4 A610 4
Electrical Equipment Tags A610A 2 A610A 2
Electrical Fixture Tags A610A 2 A610A 2
Electrical Fixtures A610 2 A610 2
Elevations A040 6 A040 6
Entourage A060G5 3 A060G5 3
Existing -EXST 3 -EXST 3
Floors A230 6 A230 6
Floors Cut Pattern A230H 8 A230H 8
Floors Hidden Lines A230H 5 A230H 5
Floors Slab Edges A230 6 A230 6
Floors Surface Pattern A230H 8 A230H 8
Furniture A700 2 A700 2
Furniture System Tags A723 3 A723 3
Furniture Systems A723 2 A723 2
Furniture Tags A723 3 A723 3
Generic Annotations Z000 2 Z000 2
Generic Model Tags Z000 2 Z000 2
Generic Models Z000 6 Z000 6
Grid Heads Z030G 1 Z030G 1
Grids Z030G 1 Z030G 1
Imports in Families Z000 1 Z000 1
Keynote Tags Z000 2 Z000 2
Level Heads Z000 6 Z000 6
Levels Z000 6 Z000 6
Lighting Fixture Tags A630A 1 A630A 1
Lighting Fixtures A630 4 A630 4
Lines Z000 5 Z000 5
Lines <Area Boundary> F810A 4 F810A 4
Lines <Beyond> Z000 5 Z000 5
Lines <Centerline> Z000 5 Z000 5
Lines <Demolished> Z000 6 Z000 6
Lines <Hidden> Z000 5 Z000 5
Lines <Overhead> A760G 8 A760G 8
Lines <Revision Cloud> Z000 5 Z000 5
Lines <Room Separation> F810A 4 F810A 4
Lines <Sketch> Z000G 5 Z000G 5
Lines Axis of Rotation Z000G 5 Z000G 5
Lines Insulation Batting Lines Z000 8 Z000 8
Lines Lines Z000 5 Z000 5
Lines Medium Lines Z000 3 Z000 3
Lines Thin Lines Z000 3 Z000 3
Lines Wide Lines Z000 3 Z000 3
Mass Z010T 5 Z010T 5
Mass Tags Z010T 5 Z010T 5
Massing Z010T 5 Z010T 5
Matchline A060T 6 A060T 6
Material Tags Z000 2 Z000 2
Mechanical Equipment A700 2 A700 2
Mechanical Equipment Tags A700A 2 A700A 2
Multi-Category Tags Z000 2 Z000 2
New -NEW 2 -NEW 2
Parking C950 1 C950 1
Parking Tags C950A 1 C950A 1
Plan Region Z010T 5 Z010T 5
Planting L940 3 L940 3
Planting Tags L940 3 L940 3
Plumbing Fixture Tags A520A 2 A520A 2
Plumbing Fixtures A520 6 A520 6
Property Line Segment Tags A520 6 A520 6
Property Tags A520 0 A520 0
Railings A340 1 A340 1
Railings Balusters A340 1 A340 1
Railings Railings Beyond Cut Line A340 5 A340 5
Railings Rails A340 1 A340 1
Ramps A241 2 A241 2
Ramps Down Arrow A241 2 A241 2
Ramps DOWN text A241 2 A241 2
Ramps Incomplete ramps A241 2 A241 2
Ramps Ramps Beyond Cut Line A241 5 A241 5
Ramps Stringers A241 2 A241 2
Ramps Stringers Beyond Cut Line A241 5 A241 5
Ramps Up Arrow A241 2 A241 2
Ramps UP text A241 2 A241 2
Raster Images Z010T 8 Z010T 8
Reference Planes Z010T 5 Z010T 5
Revision Cloud Tags Z010T 5 Z010T 5
Revision Clouds Z010T 5 Z010T 5
Roads C950 4 C950 4
Roof Tags A270A 6 A270A 6
Roofs A270 4 A270 4
Roofs Curtain Roof Grids A270 4 A270 4
Roofs Cut Pattern A270 8 A270 8
Roofs Fascias A270 4 A270 4
Roofs Gutters A270 4 A270 4
Roofs Roof Soffits A270 4 A270 4
Roofs Surface Pattern A270 8 A270 8
Room Polylines F810A 2 F810A 2
Room Tags F810A 2 F810A 2
Rooms F810A 2 F810A 2
Schedule Graphics Z000 5 Z000 5
Scope Boxes Z010T 5 Z010T 5
Sections A060T 6 A060T 6
Site L910 6 L910 6
Site Pads L910 6 L910 6
Site Property L910 6 L910 6
Site Tags L910 6 L910 6
Span Direction Symbol S280 2 S280 2
Specialty Equipment Z770 6 Z770 6
Specialty Equipment Tags Z770A 2 Z770A 2
Spot Elevations A010D 1 A010D 1
Stair Tags A240G 2 A240G 2
Stairs A240 2 A240 2
Stairs Down Arrow A240G 2 A240G 2
Stairs DOWN Text A240G 2 A240G 2
Stairs Incomplete Stairs A240 2 A240 2
Stairs Stairs Beyond Cut Line A240 5 A240 5
Stairs Stringers A240 2 A240 2
Stairs Stringers Beyond Cut Line A240 5 A240 5
Stairs Up Arrow A240G 2 A240G 2
Stairs UP Text A240G 2 A240G 2
Structural Annotations S280 2 S280 2
Structural Area Reinforcement S280 2 S280 2
Structural Area Reinforcement Symbols S280A 2 S280A 2
Structural Area Reinforcement Tags S280 2 S280 2
Structural Beam System Tags S280A 2 S280A 2
Structural Beam Systems S280 2 S280 2
Structural Column Tags S280A 2 S280A 2
Structural Columns S280 6 S280 6
Structural Columns Hidden Lines S280H 5 S280H 5
Structural Connection Tags S280 2 S280 2
Structural Connections S280 2 S280 2
Structural Foundation Tags S280 2 S280 2
Structural Foundations S280A 4 S280A 4
Structural Foundations Hidden Lines S164H 4 S164H 4
Structural Framing S280A 4 S280A 4
Structural Framing Hidden Lines S280H 4 S280H 4
Structural Framing Tags S280A 2 S280A 2
Structural Load Cases S280 2 S280 2
Structural Load Cases Accidental Loads S280 2 S280 2
Structural Load Cases Dead Loads S280 2 S280 2
Structural Load Cases Live Loads S280 2 S280 2
Structural Load Cases Roof Live Loads S280 2 S280 2
Structural Load Cases Seismic Loads S280 2 S280 2
Structural Load Cases Snow Loads S280 2 S280 2
Structural Load Cases Temperature Loads S280 2 S280 2
Structural Load Cases Wind Loads S280 2 S280 2
Structural Loads S280 2 S280 2
Structural Loads Area Loads S280 2 S280 2
Structural Loads Line Loads S280 2 S280 2
Structural Loads Point Loads S280 2 S280 2
Structural Path Reinforcement S280 2 S280 2
Structural Path Reinforcement Symbols S280A 2 S280A 2
Structural Path Reinforcement Tags S280 2 S280 2
Structural Rebar S280 2 S280 2
Structural Rebar Tags S280 2 S280 2
Structural Truss Tags S280A 2 S280A 2
Temporary -TEMP 2 -TEMP 2
Text Notes Z010T 2 Z010T 2
Title Blocks Z2020T 6 Z2020T 6
Title Blocks Medium Lines Z2020T 4 Z2020T 4
Title Blocks Thin Lines Z2020T 2 Z2020T 2
Title Blocks Wide Lines Z2020T 6 Z2020T 6
Topography B901 2 B901 2
Topography Boundary Point B903G 3 B903G 3
Topography Interior Point B903G 2 B903G 2
Topography Primary Contours B903G 2 B903G 2
Topography Secondary Contours B903G 3 B903G 3
Topography Triangulation Edges B903G 3 B903G 3
View Reference Z010T 6 Z010T 6
View Titles Z010T 6 Z010T 6
Viewports Z000 5 Z000 5
Wall Tags A210A 4 A210A 4
Walls A210 2 A210 2
Walls Curtain Wall Grids A210 2 A210 2
Walls Cut Pattern A210 2 A210 2
Walls Hidden Lines A210H 2 A210H 2
Walls Surface Pattern A210 2 A210 2
Walls/Interior:1 A210 2 A210 2
Walls/Exterior:2 A210 2 A210 2
Walls/Foundation:3 A210 2 A210 2
Walls/Retaining:4 A210 2 A210 2
Window Tags A314A 6 A314A 6
Windows A314A 6 A314A 6
Windows Frame/Mullion A314A 6 A314A 6
Windows Glass A314A 6 A314A 6
Windows Opening A314 6 A314 6
Windows Sill/Head A314 1 A314 1
@@ -0,0 +1,212 @@
# Revit Export Layers
# Maps Categories and Subcategories to layer names and color numbers
# Category <tab> Subcategory <tab> Layer name <tab> Color number <tab>
# Cut layer name <tab> Cut color number
# Do not remove the colon (:) after certain category names.
# -----------------------------------------------------
Area Polylines A-_AREA---_A 2 A-_AREA---_A 2
Area Tags A-_ROOMNAME_A 2 A-_ROOMNAME_A 2
Callouts A-_ANOTSYBL_E 6 A-_ANOTSYBL_E 6
Casework A-_FLORCASE_E 3 A-_FLORCASE_E 3
Casework Tags A-_FLORCASE_T 5 A-_FLORCASE_T 5
Ceiling Tags A-_CEIL----_A 6 A-_CEIL----_A 6
Ceilings A-_CEIL----_E 5 A-_CEIL----_E 5
Ceilings Cut Pattern A-CEILPATT_E 1 A-CEILPATT_E 1
Ceilings Surface Pattern A-CEIL----_E 1 A-CEIL----_E 1
Color Fill A-_ROOMNAME_A 2 A-_ROOMNAME_A 2
Color Fill Legends A-_AREACALC_L- 5 A-_AREACALC_L- 5
Columns A-_COLN----_E 4 A-_COLN----_E 4
Constraints A-_--------_A 2 A-_--------_A 2
Contour Labels 0 2 0 2
Curtain Panel Tags A-_CLAD----_AD 6 A-_CLAD----_AD 6
Curtain Panels A-_CLAD----_E 6 A-_CLAD----_E 6
Curtain Wall Mullions A-_CLAD----_E1 3 A-_CLAD----_E1 3
Demolished --_--------_R 3 --_--------_R 3
Detail Item Tags A-_--------__A 3 A-_--------__A 3
Detail Items A-_--------_-D0 3 A-_--------_-D0 3
Dimensions A-ANOT----_D 1 A-ANOT----_D 1
Dimensions Automatic Sketch Dimensions A-ANOT----_D 1 A-ANOT----_D 1
Door Tags A-_DOOR----_A 6 A-_DOOR----_A 6
Doors A-_DOOR----_E 1 A-_DOOR----_E 1
Doors Frame/Mullion A-_DOOR----_E 1 A-_DOOR----_E 1
Doors Glass A-_DOOROPEN_E 1 A-_DOOROPEN_E 1
Doors Opening A-_DOOR----_E 6 A-_DOOR----_E 6
Doors Panel A-_DOOR----_E 1 A-_DOOR----_E 1
Electrical Equipment E-_ELECEQPT_E 4 E-_ELECEQPT_E 4
Electrical Equipment Tags E-_ELECEQPT_A 2 E-_ELECEQPT_A 2
Electrical Fixture Tags E-_ELECFIXT_A 2 E-_ELECFIXT_A 2
Electrical Fixtures E-_ELECFIXT_E 2 E-_ELECFIXT_E 2
Elevations A-_--------_-1 6 A-_--------_-1 6
Entourage A-_--------_E 3 A-_--------_E 3
Existing --_--------_E 3 --_--------_E 3
Floors A-_FLOR----_E 6 A-_FLOR----_E 6
Floors Cut Pattern A-_FLORPATT_E 8 A-_FLORPATT_E 8
Floors Hidden Lines A-_FLOR----_H 5 A-_FLOR----_H 5
Floors Slab Edges A-_FLOR----_E 6 A-_FLOR----_E 6
Floors Surface Pattern A-_FLORPATT_E 8 A-_FLORPATT_E 8
Furniture A-_FURT----_E 2 A-_FURT----_E 2
Furniture System Tags A-_FURTSYST_A 3 A-_FURTSYST_A 3
Furniture Systems A-_FURTSYST_E 2 A-_FURTSYST_E 2
Furniture Tags A-_FURT----_E 3 A-_FURT----_E 3
Generic Annotations A-_--------_A 2 A-_--------_A 2
Generic Model Tags A-_--------_A 2 A-_--------_A 2
Generic Models A-_--------_-3 6 A-_--------_-3 6
Grid Heads A-_ANOTGRID_E 1 A-_ANOTGRID_E 1
Grids A-_ANOTGRID_E 1 A-_ANOTGRID_E 1
Imports in Families A-_--------_E- 1 A-_--------_E- 1
Keynote Tags A-_--------_A 2 A-_--------_A 2
Level Heads A-_FLORLEVL_E 6 A-_FLORLEVL_E 6
Levels A-_FLORLEVL_E 6 A-_FLORLEVL_E 6
Lighting Fixture Tags E-_LIGTSWIT_A 1 E-_LIGTSWIT_A 1
Lighting Fixtures E-_LIGT----_E 4 E-_LIGT----_E 4
Lines A-_--------_E- 5 A-_--------_E- 5
Lines <Area Boundary> A-_--------_E- 4 A-_--------_E- 4
Lines <Beyond> A-_--------_E3 5 A-_--------_E3 5
Lines <Centerline> A-_--------_ER 5 A-_--------_ER 5
Lines <Demolished> A-_--------_E3 6 A-_--------_E3 6
Lines <Hidden> A-_--------_E3 5 A-_--------_E3 5
Lines <Overhead> A-_--------_E3 8 A-_--------_E3 8
Lines <Revision Cloud> A-_--------_A- 5 A-_--------_A- 5
Lines <Room Separation> A-_--------_E- 4 A-_--------_E- 4
Lines <Sketch> A-_--------_E- 5 A-_--------_E- 5
Lines Axis of Rotation A-_--------_E- 5 A-_--------_E- 5
Lines Insulation Batting Lines A-_--------_E- 8 A-_--------_E- 8
Lines Lines A-_--------_E- 5 A-_--------_E- 5
Lines Medium Lines A-_--------_E- 3 A-_--------_E- 3
Lines Thin Lines A-_--------_E- 3 A-_--------_E- 3
Lines Wide Lines A-_--------_E- 3 A-_--------_E- 3
Mass A-_--------_-3 5 A-_--------_-3 5
Mass Tags A-_--------_-3 5 A-_--------_-3 5
Massing A-_--------_-3 5 A-_--------_-3 5
Matchline A-_ANOTSYBL_E 6 A-_ANOTSYBL_E 6
Material Tags A-_--------_A 2 A-_--------_A 2
Mechanical Equipment M-_EQPT----_E 2 M-_EQPT----_E 2
Mechanical Equipment Tags M-_EQPT----_A 2 M-_EQPT----_A 2
Multi-Category Tags A-_--------_A 2 A-_--------_A 2
New --_--------_N 2 --_--------_N 2
Parking A-_CPRK----_E 1 A-_CPRK----_E 1
Parking Tags A-_CPRK----_A 1 A-_CPRK----_A 1
Plan Region A-_--------_E- 5 A-_--------_E- 5
Planting A-_LNSP----_E 3 A-_LNSP----_E 3
Planting Tags A-_LNSP----_A 3 A-_LNSP----_A 3
Plumbing Fixture Tags A-_SANIFIXR_A 2 A-_SANIFIXR_A 2
Plumbing Fixtures A-_SANIFIXR_E 6 A-_SANIFIXR_E 6
Property Line Segment Tags A-_SANIFIXR_E 6 A-_SANIFIXR_E 6
Property Tags A-_SANIFIXR_E 0 A-_SANIFIXR_E 0
Railings A-_HANR----_E1 1 A-_HANR----_E1 1
Railings Balusters A-_HANR----_E 1 A-_HANR----_E 1
Railings Railings Beyond Cut Line A-_HANR----_E 5 A-_HANR----_E 5
Railings Rails A-_HANR----_E3 1 A-_HANR----_E3 1
Ramps A-_RAMP----_E 2 A-_RAMP----_E 2
Ramps Down Arrow A-_RAMP----_E 2 A-_RAMP----_E 2
Ramps DOWN text A-_RAMP----_E 2 A-_RAMP----_E 2
Ramps Incomplete ramps A-_RAMP----_E 2 A-_RAMP----_E 2
Ramps Ramps Beyond Cut Line A-_RAMP----_E 5 A-_RAMP----_E 5
Ramps Stringers A-_RAMP----_E 2 A-_RAMP----_E 2
Ramps Stringers Beyond Cut Line A-_RAMP----_E 5 A-_RAMP----_E 5
Ramps Up Arrow A-_RAMP----_E 2 A-_RAMP----_E 2
Ramps UP text A-_RAMP----_E 2 A-_RAMP----_E 2
Raster Images A-_--------_E- 8 A-_--------_E- 8
Reference Planes A-_--------_E- 5 A-_--------_E- 5
Revision Cloud Tags A-_--------_R- 5 A-_--------_R- 5
Revision Clouds A-_--------_R- 5 A-_--------_R- 5
Roads A-_ROAD----_E 4 A-_ROAD----_E 4
Roof Tags A-_ROOF----_A 6 A-_ROOF----_A 6
Roofs A-_ROOF----_E 4 A-_ROOF----_E 4
Roofs Curtain Roof Grids A-_ROOF----_E 4 A-_ROOF----_E 4
Roofs Cut Pattern A-_ROOFPATT_E 8 A-_ROOFPATT_E 8
Roofs Fascias A-_ROOF----_E 4 A-_ROOF----_E 4
Roofs Gutters A-_ROOFPATT_E 4 A-_ROOFPATT_E 4
Roofs Roof Soffits A-_ROOFPATT_E 4 A-_ROOFPATT_E 4
Roofs Surface Pattern A-_ROOFPATT_E 8 A-_ROOFPATT_E 8
Room Polylines A-_ROOM----_A 2 A-_ROOM----_A 2
Room Tags A-_ROOMNAME_A 2 A-_ROOMNAME_A 2
Rooms A-_ROOMNAME_A 2 A-_ROOMNAME_A 2
Schedule Graphics A-_ANOT----_A 5 A-_ANOT----_A 5
Scope Boxes A-_ANOTSYBL_E 5 A-_ANOTSYBL_E 5
Sections A-_ANOTSYBL_E 6 A-_ANOTSYBL_E 6
Site A-_SITE----_E 6 A-_SITE----_E 6
Site Pads L-_SITEBNRY_E 6 L-_SITEBNRY_E 6
Site Property L-_SITEBNRY_E 6 L-_SITEBNRY_E 6
Site Tags A-_SITE----_E 6 A-_SITE----_E 6
Span Direction Symbol S-_DECK---_A 2 S-_DECK---_A 2
Specialty Equipment M-_FIREEQPM_E 6 M-_FIREEQPM_E 6
Specialty Equipment Tags M-_FIREEQPM_A 2 M-_FIREEQPM_A 2
Spot Elevations A-ANOT----_D 1 A-ANOT----_D 1
Stair Tags A-_STRC----_A 2 A-_STRC----_A 2
Stairs A-_STRC----_E 2 A-_STRC----_E 2
Stairs Down Arrow A-_STRC----_E 2 A-_STRC----_E 2
Stairs DOWN Text A-_STRC----_A 2 A-_STRC----_A 2
Stairs Incomplete Stairs A-_STRC----_E 2 A-_STRC----_E 2
Stairs Stairs Beyond Cut Line A-_STRC----_E 5 A-_STRC----_E 5
Stairs Stringers A-_STRC----_E 2 A-_STRC----_E 2
Stairs Stringers Beyond Cut Line A-_STRC----_E 5 A-_STRC----_E 5
Stairs Up Arrow A-_STRC----_E 2 A-_STRC----_E 2
Stairs UP Text A-_STRC----_A 2 A-_STRC----_A 2
Structural Annotations S-IDEN----_A 2 S-IDEN----_A 2
Structural Area Reinforcement S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Area Reinforcement Symbols S-_SYMB----_A 2 S-_SYMB----_A 2
Structural Area Reinforcement Tags S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Beam System Tags S-_BEAM----_A 2 S-_BEAM----_A 2
Structural Beam Systems S-_SYMB----_A 2 S-_SYMB----_A 2
Structural Column Tags S-_COLN----_A 2 S-_COLN----_A 2
Structural Columns S-_COLN----_E 6 S-_COLN----_E 6
Structural Columns Hidden Lines S-_COLS---_H 5 S-_COLS---_H 5
Structural Connection Tags S-_COLN----_A 2 S-_COLN----_A 2
Structural Connections S-_COLN----_A 2 S-_COLN----_A 2
Structural Foundation Tags S-_BEAM----_E 2 S-_BEAM----_E 2
Structural Foundations S-_BEAM----_A 4 S-_BEAM----_A 4
Structural Foundations Hidden Lines S-_FNDN----_H 4 S-_FNDN----_H 4
Structural Framing S-_BEAM----_A 4 S-_BEAM----_A 4
Structural Framing Hidden Lines S-_BEAM----_H 4 S-_BEAM----_H 4
Structural Framing Tags S-_BEAM----_A 2 S-_BEAM----_A 2
Structural Load Cases S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Accidental Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Dead Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Live Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Roof Live Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Seismic Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Snow Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Temperature Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Load Cases Wind Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Loads S-_LOAD----_A 2 S-LOAD 2
Structural Loads Area Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Loads Line Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Loads Point Loads S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Path Reinforcement S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Path Reinforcement Symbols S-_SYMB----_A 2 S-_SYMB----_A 2
Structural Path Reinforcement Tags S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Rebar S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Rebar Tags S-_LOAD----_A 2 S-_LOAD----_A 2
Structural Truss Tags S-_BEAM----_A 2 S-_BEAM----_A 2
Temporary --_--------_T 2 --_--------_T 2
Text Notes A-_ANOTTEXT_A 2 A-_ANOTTEXT_A 2
Title Blocks A-ANOTTBLK_E 6 A-ANOTTBLK_E 6
Title Blocks Medium Lines A-ANOTTBLK_E 4 A-ANOTTBLK_E 4
Title Blocks Thin Lines A-ANOTTBLK_E 2 A-ANOTTBLK_E 2
Title Blocks Wide Lines A-ANOTTBLK_E 6 A-ANOTTBLK_E 6
Topography S-_TOPO----_E 2 S-_TOPO----_E 2
Topography Boundary Point S-_TOPOCONT_E 3 S-_TOPOCONT_E 3
Topography Interior Point S-_TOPOCONT_E 2 S-_TOPOCONT_E 2
Topography Primary Contours S-_TOPOCONT_E 2 S-_TOPOCONT_E 2
Topography Secondary Contours S-_TOPOCONT_E 3 S-_TOPOCONT_E 3
Topography Triangulation Edges S-_TOPO----_E 3 S-_TOPO----_E 3
View Reference A-_ANOTVPRT_T 6 A-_ANOTVPRT_T 6
View Titles A-_ANOTVPRT_T 6 A-_ANOTVPRT_T 6
Viewports A-_------_ER 5 A-_------_ER 5
Wall Tags A-_WALL----_A 4 A-_WALL----_A 4
Walls A-_WALL----_E 2 A-_WALL----_E 2
Walls Curtain Wall Grids A-_WALL----_E 2 A-_WALL----_E 2
Walls Cut Pattern A-_WALL----_E 2 A-_WALL----_E 2
Walls Hidden Lines A-_WALL----_H 2 A-_WALL----_H 2
Walls Surface Pattern A-_WALL----_E 2 A-_WALL----_E 2
Walls/Interior:1 A-_WALL----_E 2 A-_WALL----_E 2
Walls/Exterior:2 A-_WALL----_E 2 A-_WALL----_E 2
Walls/Foundation:3 A-_WALLSTRU_E 2 A-_WALLSTRU_E 2
Walls/Retaining:4 A-_WALL----_E 2 A-_WALL----_E 2
Window Tags A-_WIND----_A 6 A-_WIND----_A 6
Windows A-_WIND----_E 6 A-_WIND----_E 6
Windows Frame/Mullion A-_WIND----_E 6 A-_WIND----_E 6
Windows Glass A-_WIND----_E 6 A-_WIND----_E 6
Windows Opening A-_WIND----_E 6 A-_WIND----_E 6
Windows Sill/Head A-_WIND----_E 1 A-_WIND----_E 1
@@ -0,0 +1,212 @@
# Revit Export Layers
# Maps Categories and Subcategories to layer names and color numbers
# Category <tab> Subcategory <tab> Layer name <tab> Color number <tab>
# Cut layer name <tab> Cut color number
# Do not remove the colon (:) after certain category names.
# -----------------------------------------------------
Area Polylines A-AREABDR 1 A-AREABDR 1
Area Tags A-AREAIDM 2 A-AREAIDM 2
Callouts A-----SYP 6 A-----SYP 6
Casework A-FLORCAM 3 A-FLORCAM 3
Casework Tags I-ELEVIDM 5 I-ELEVIDM 5
Ceiling Tags A-CLNGIDM 6 A-CLNGIDM 6
Ceilings A-CLNGSUM 5 A-CLNGSUM 5
Ceilings Cut Pattern A-CLNGPAM 1 A-CLNGPAM 1
Ceilings Surface Pattern A-CLNGGRM 1 A-CLNGGRM 1
Color Fill A-AREAIDM 2 A-AREAIDM 2
Color Fill Legends G-----NPP 5 G-----NPP 5
Columns A-COLSENM 4 A-COLSENM 4
Constraints A-----NOP 2 A-----NOP 2
Contour Labels V-TOPOMAM 2 V-TOPOMAM 2
Curtain Panel Tags A-WALLIDM 6 A-WALLIDM 6
Curtain Panels A-WALLCWM 6 A-WALLCWM 6
Curtain Wall Mullions A-WALLCWM 3 A-WALLCWM 3
Demolished -_----DEMO 3 -_----DEMO 3
Detail Item Tags A-DETLIDM 3 A-DETLIDM 3
Detail Items A-DETLGEM 3 A-DETLGEM 3
Dimensions A-----DIP 1 A-----DIP 1
Dimensions Automatic Sketch Dimensions A-----DIP 1 A-----DIP 1
Door Tags A-DOORIDM 6 A-DOORIDM 6
Doors A-DOORSYM 1 A-DOORSYM 1
Doors Frame/Mullion A-DOORSYM 1 A-DOORSYM 1
Doors Glass A-ELEVOTM 1 A-ELEVOTM 1
Doors Opening A-DOORSYM 6 A-DOORSYM 6
Doors Panel A-DOORSYM 1 A-DOORSYM 1
Electrical Equipment E-AUXLEQM 4 E-AUXLEQM 4
Electrical Equipment Tags E-----TEP 2 E-----TEP 2
Electrical Fixture Tags E-----TEP 2 E-----TEP 2
Electrical Fixtures E-DETLLTM 2 E-DETLLTM 2
Elevations A-----SYP 6 A-----SYP 6
Entourage A-DETLGEM 3 A-DETLGEM 3
Existing -_----EXST 3 -_----EXST 3
Floors A-FLOROTM 6 A-FLOROTM 6
Floors Cut Pattern A-FLORPAM 8 A-FLORPAM 8
Floors Hidden Lines A-FLORHDN 5 A-FLORHDN 5
Floors Slab Edges A-FLOROTM 6 A-FLOROTM 6
Floors Surface Pattern A-FLORPAM 8 A-FLORPAM 8
Furniture I-DETLFUM 2 I-DETLFUM 2
Furniture System Tags I-SYSTIDM 3 I-SYSTIDM 3
Furniture Systems I-SYSTFUM 2 I-SYSTFUM 2
Furniture Tags I-FURNIDM 3 I-FURNIDM 3
Generic Annotations A-----NOP 2 A-----NOP 2
Generic Model Tags G-PLANOTM 2 G-PLANOTM 2
Generic Models G-PLANOTM 6 G-PLANOTM 6
Grid Heads S-GRIDIDM 1 S-GRIDIDM 1
Grids S-GRIDIDM 1 S-GRIDIDM 1
Imports in Families A-----NPP 1 A-----NPP 1
Keynote Tags A-----NOP 2 A-----NOP 2
Level Heads A-FLORLEM 6 A-FLORLEM 6
Levels A-FLORLEM 6 A-FLORLEM 6
Lighting Fixture Tags E-LITEIDM 1 E-LITEIDM 1
Lighting Fixtures E-LITEEQM 4 E-LITEEQM 4
Lines A-----NPP 5 A-----NPP 5
Lines <Area Boundary> A-AREALIM 4 A-AREALIM 4
Lines <Beyond> A-----NPP 5 A-----NPP 5
Lines <Centerline> A-----NPP 5 A-----NPP 5
Lines <Demolished> A-------M 6 A-------M 6
Lines <Hidden> A-----NPP 5 A-----NPP 5
Lines <Overhead> A-FLOROVM 8 A-FLOROVM 8
Lines <Revision Cloud> A-----NPP 5 A-----NPP 5
Lines <Room Separation> A-AREALIM 4 A-AREALIM 4
Lines <Sketch> A-----NPP 5 A-----NPP 5
Lines Axis of Rotation A-----NPP 5 A-----NPP 5
Lines Insulation Batting Lines A-DETLINM 8 A-DETLINM 8
Lines Lines A-----NPP 5 A-----NPP 5
Lines Medium Lines A-----NPP 3 A-----NPP 3
Lines Thin Lines A-----NPP 3 A-----NPP 3
Lines Wide Lines A-----NPP 3 A-----NPP 3
Mass G-----NPP 5 G-----NPP 5
Mass Tags G-----NPP 5 G-----NPP 5
Massing G-----NPP 5 G-----NPP 5
Matchline A-----SYP 6 A-----SYP 6
Material Tags A-----NOP 2 A-----NOP 2
Mechanical Equipment M-DETLEQM 2 M-DETLEQM 2
Mechanical Equipment Tags M-ELEVIDM 2 M-ELEVIDM 2
Multi-Category Tags A-----NOP 2 A-----NOP 2
New -_----NEW 2 -_----NEW 2
Parking C-PKNGCTM 1 C-PKNGCTM 1
Parking Tags C-PKNGCTM 1 C-PKNGCTM 1
Plan Region G-----NPP 5 G-----NPP 5
Planting L-PLNTBEM 3 L-PLNTBEM 3
Planting Tags L-PLNTBEM 3 L-PLNTBEM 3
Plumbing Fixture Tags P-----TEP 2 P-----TEP 2
Plumbing Fixtures P-SANRFIM 6 P-SANRFIM 6
Property Line Segment Tags P-SANRFIM 6 P-SANRFIM 6
Property Tags P-SANRFIM 0 P-SANRFIM 0
Railings A-FLORHRM 1 A-FLORHRM 1
Railings Balusters A-FLORHRM 1 A-FLORHRM 1
Railings Railings Beyond Cut Line A-FLORHRM 5 A-FLORHRM 5
Railings Rails A-FLORHRM 1 A-FLORHRM 1
Ramps A-FLORSTM 2 A-FLORSTM 2
Ramps Down Arrow A-FLORSTM 2 A-FLORSTM 2
Ramps DOWN text A-FLORSTM 2 A-FLORSTM 2
Ramps Incomplete ramps A-FLORSTM 2 A-FLORSTM 2
Ramps Ramps Beyond Cut Line A-FLORSTM 5 A-FLORSTM 5
Ramps Stringers A-FLORSTM 2 A-FLORSTM 2
Ramps Stringers Beyond Cut Line A-FLORSTM 5 A-FLORSTM 5
Ramps Up Arrow A-FLORSTM 2 A-FLORSTM 2
Ramps UP text A-FLORSTM 2 A-FLORSTM 2
Raster Images G-----PAP 8 G-----PAP 8
Reference Planes G-----NPP 5 G-----NPP 5
Revision Cloud Tags G-----REV 5 G-----REV 5
Revision Clouds G-----REV 5 G-----REV 5
Roads C-ROADOTM 4 C-ROADOTM 4
Roof Tags A-ROOFIDM 6 A-ROOFIDM 6
Roofs A-ROOFOTM 4 A-ROOFOTM 4
Roofs Curtain Roof Grids A-ROOFOTM 4 A-ROOFOTM 4
Roofs Cut Pattern A-ROOFPAM 8 A-ROOFPAM 8
Roofs Fascias A-ROOFOTM 4 A-ROOFOTM 4
Roofs Gutters A-ROOFPAM 4 A-ROOFPAM 4
Roofs Roof Soffits A-ROOFPAM 4 A-ROOFPAM 4
Roofs Surface Pattern A-ROOFPAM 8 A-ROOFPAM 8
Room Polylines A-AREABDR 1 A-AREABDR 1
Room Tags A-AREAIDM 2 A-AREAIDM 2
Rooms A-AREAIDM 2 A-AREAIDM 2
Schedule Graphics A-----NPP 5 A-----NPP 5
Scope Boxes G-----NPP 5 G-----NPP 5
Sections A-----SYP 6 A-----SYP 6
Site L-DETLGEM 6 L-DETLGEM 6
Site Pads L-DETLGEM 6 L-DETLGEM 6
Site Property L-DETLGEM 6 L-DETLGEM 6
Site Tags L-DETLIDM 6 L-DETLIDM 6
Span Direction Symbol S-FLORSYMB 2 S-FLORSYMB 2
Specialty Equipment F-AFFFEQM 6 F-AFFFEQM 6
Specialty Equipment Tags F-----TEP 2 F-----TEP 2
Spot Elevations A-----DIP 1 A-----DIP 1
Stair Tags A-FLORIDM 2 A-FLORIDM 2
Stairs A-FLORSTM 2 A-FLORSTM 2
Stairs Down Arrow A-FLORSTM 2 A-FLORSTM 2
Stairs DOWN Text A-FLORSTM 2 A-FLORSTM 2
Stairs Incomplete Stairs A-FLORSTM 2 A-FLORSTM 2
Stairs Stairs Beyond Cut Line A-SECTMBM 5 A-SECTMBM 5
Stairs Stringers A-FLORSTM 2 A-FLORSTM 2
Stairs Stringers Beyond Cut Line A-SECTMBM 5 A-SECTMBM 5
Stairs Up Arrow A-FLORSTM 2 A-FLORSTM 2
Stairs UP Text A-FLORSTM 2 A-FLORSTM 2
Structural Annotations S-IDEN 2 S-IDEN 2
Structural Area Reinforcement S-RBARBDRY 2 S-RBARBDRY 2
Structural Area Reinforcement Symbols S-RBARSYM 2 S-RBARSYM 2
Structural Area Reinforcement Tags S-RBARIDEN 2 S-RBARIDEN 2
Structural Beam System Tags S-----TEP 2 S-----TEP 2
Structural Beam Systems S-ANNOSYM 2 S-ANNOSYM 2
Structural Column Tags S-COLSIDM 2 S-COLSIDM 2
Structural Columns S-COLSPRM 6 S-COLSPRM 6
Structural Columns Hidden Lines S-COLSHDN 5 S-COLSHDN 5
Structural Connection Tags S-COLSANLY 2 S-COLSANLY 2
Structural Connections S-COLSANLY 2 S-COLSANLY 2
Structural Foundation Tags S-BEAMPRM 2 S-BEAMPRM 2
Structural Foundations S-----TEP 4 S-----TEP 4
Structural Foundations Hidden Lines S-FNDNHDN 4 S-FNDNHDN 4
Structural Framing S-----TEP 4 S-----TEP 4
Structural Framing Hidden Lines S-BEAMHDN 4 S-BEAMHDN 4
Structural Framing Tags S-----TEP 2 S-----TEP 2
Structural Load Cases S-LOADCASE 2 S-LOADCASE 2
Structural Load Cases Accidental Loads S-LOADACCI 2 S-LOADACCI 2
Structural Load Cases Dead Loads S-LOADDEAD 2 S-LOAD-DEAD 2
Structural Load Cases Live Loads S-LOADLIVE 2 S-LOADLIVE 2
Structural Load Cases Roof Live Loads S-LOADROOF 2 S-LOADROOF 2
Structural Load Cases Seismic Loads S-LOADSEIS 2 S-LOADSEIS 2
Structural Load Cases Snow Loads S-LOADSNOW 2 S-LOADSNOW 2
Structural Load Cases Temperature Loads S-LOADTEMP 2 S-LOADTEMP 2
Structural Load Cases Wind Loads S-LOADWIND 2 S-LOADWIND 2
Structural Loads S-LOAD 2 S-LOAD 2
Structural Loads Area Loads S-LOADAREA 2 S-LOADAREA 2
Structural Loads Line Loads S-LOADLINE 2 S-LOADLINE 2
Structural Loads Point Loads S-LOADPOIN 2 S-LOADPOIN 2
Structural Path Reinforcement S-RBARBDRY 2 S-RBARBDRY 2
Structural Path Reinforcement Symbols S-RBARSYM 2 S-RBAR-SYM 2
Structural Path Reinforcement Tags S-RBARIDEN 2 S-RBARIDEN 2
Structural Rebar S-RBAR 2 S-RBAR 2
Structural Rebar Tags S-RBARIDEN 2 S-RBARIDEN 2
Structural Truss Tags S-----TEP 2 S-----TEP 2
Temporary -_----TEMP 2 -_----TEMP 2
Text Notes A-----TEP 2 A-----TEP 2
Title Blocks G-----TTP 6 G-----TTP 6
Title Blocks Medium Lines G-----TTP 4 G-----TTP 4
Title Blocks Thin Lines G-----TTP 2 G-----TTP 2
Title Blocks Wide Lines G-----TTP 6 G-----TTP 6
Topography C-TOPO 2 C-TOPO 2
Topography Boundary Point C-TOPOBKM 3 C-TOPOBKM 3
Topography Interior Point C-TOPOBOM 2 C-TOPOBOM 2
Topography Primary Contours C-TOPOMJM 2 C-TOPOMJM 2
Topography Secondary Contours C-TOPOMNM 3 C-TOPOMNM 3
Topography Triangulation Edges C-TOPO 3 C-TOPO 3
View Reference A-----SYP 6 A-----SYP 6
View Titles G-----NPP 6 G-----NPP 6
Viewports A-----NPP 5 A-----NPP 5
Wall Tags A-WALLIDM 4 A-WALLIDM 4
Walls A-WALLMBM 2 A-WALL 2
Walls Curtain Wall Grids A-WALL 2 A-WALL 2
Walls Cut Pattern A-WALLMBM 2 A-WALL 2
Walls Hidden Lines A-WALLHDN 2 A-WALLHDN 2
Walls Surface Pattern A-WALL 2 A-WALL 2
Walls/Interior:1 A-WALL 2 A-WALL 2
Walls/Exterior:2 A-WALL 2 A-WALL 2
Walls/Foundation:3 S-WALLLOM 2 S-WALLLOM 2
Walls/Retaining:4 C-TOPORTM 2 C-TOPORTM 2
Window Tags A-GLAZIDM 6 A-GLAZIDM 6
Windows A-GLAZIDM 6 A-GLAZIDM 6
Windows Frame/Mullion A-GLAZIDM 6 A-GLAZIDM 6
Windows Glass A-GLAZIDM 6 A-GLAZIDM 6
Windows Opening A-GLAZSIM 6 A-GLAZSIM 6
Windows Sill/Head A-GLAZSIM 1 A-GLAZSIM 1
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="utf-8"?>
<ROXML version="1.0">
<header>
<contents type="configuration" version="1.5"/>
<product type="component" category="library" technology=".net" name="REX"/>
</header>
<settings>
<control>
<visibility contexts="structure;archiecture;piping"/>
<context name="Revit" subname="Structure" optionlist="" supported="true" version=""/>
<context name="Revit" subname="Architecture" optionlist="" supported="true" version=""/>
<context name="Revit" subname="MEP" optionlist="" supported="true" version=""/>
<context name="Revit" optionlist="" supported="true" version=""/>
</control>
</settings>
</ROXML>
@@ -0,0 +1,742 @@
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="12.0">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{82D1D741-1B5B-4F49-BBAF-E7C27EBF8DEF}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>REX.DRevitFreezeDrawing</RootNamespace>
<AssemblyName>DRevitFreezeDrawing</AssemblyName>
<SignAssembly>true</SignAssembly>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<OldToolsVersion>3.5</OldToolsVersion>
<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion>
<PublishUrl>publish\</PublishUrl>
<Install>true</Install>
<InstallFrom>Disk</InstallFrom>
<UpdateEnabled>false</UpdateEnabled>
<UpdateMode>Foreground</UpdateMode>
<UpdateInterval>7</UpdateInterval>
<UpdateIntervalUnits>Days</UpdateIntervalUnits>
<UpdatePeriodically>false</UpdatePeriodically>
<UpdateRequired>false</UpdateRequired>
<MapFileExtensions>true</MapFileExtensions>
<ApplicationRevision>0</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>TRACE;DEBUG;REVIT;DRevitFreezeDrawing</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<DocumentationFile>
</DocumentationFile>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE;REVIT;DFreezeDrawing</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>AnyCPU</PlatformTarget>
<Prefer32Bit>false</Prefer32Bit>
</PropertyGroup>
<ItemGroup>
<Reference Include="Autodesk.Common.AResourcesControl, Version=1.0.0.0, Culture=neutral, PublicKeyToken=ff3304d4f320ee59, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>a:\references\Autodesk.Common.AResourcesControl.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Autodesk.REX.Framework, Version=2018.0.0.0, Culture=neutral, PublicKeyToken=51e16e3b26b42eda, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>a:\REFERENCES\Autodesk.REX.Framework.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPI">
<HintPath>C:\program files\Autodesk\Revit 2018\RevitAPI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RevitAPIUI">
<HintPath>C:\program files\Autodesk\Revit 2018\RevitAPIUI.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Controls">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Engine\REX.Controls.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Controls.Forms, Version=2018.0.0.0, Culture=neutral, PublicKeyToken=2b04aac23d4a9e99, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Engine\REX.Controls.Forms.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Foundation">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Foundation\REX.Foundation.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Foundation.Forms">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Foundation\REX.Foundation.Forms.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="REX.Geometry">
<HintPath>C:\Program Files\Common Files\Autodesk Shared\Extensions 2018\Framework\Foundation\REX.Geometry.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
<Reference Include="System.Data" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="Main\Application.cs" />
<Compile Include="Main\Data.cs" />
<Compile Include="Main\DirectAccess.cs" />
<Compile Include="Main\Foundation.cs" />
<Compile Include="Main\REXExpImpMng.cs" />
<Compile Include="Main\REXRevitData.cs" />
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\DialogExportOptions.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Resources\Dialogs\DialogExportOptions.Designer.cs">
<DependentUpon>DialogExportOptions.cs</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\DialogMessageExists.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Resources\Dialogs\DialogMessageExists.Designer.cs">
<DependentUpon>DialogMessageExists.cs</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\DialogOptions.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Resources\Dialogs\DialogOptions.Designer.cs">
<DependentUpon>DialogOptions.cs</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\DialogViewSel.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Resources\Dialogs\DialogViewSel.Designer.cs">
<DependentUpon>DialogViewSel.cs</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\FreezeMainCtr.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Resources\Dialogs\FreezeMainCtr.Designer.cs">
<DependentUpon>FreezeMainCtr.cs</DependentUpon>
</Compile>
<Compile Include="Resources\Dialogs\MainControl.cs">
<SubType>UserControl</SubType>
</Compile>
<Compile Include="Resources\Dialogs\MainControl.Designer.cs">
<DependentUpon>MainControl.cs</DependentUpon>
</Compile>
<Compile Include="Main\Extension.cs" />
<Compile Include="Resources\Dialogs\MainForm.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Resources\Dialogs\MainForm.Designer.cs">
<DependentUpon>MainForm.cs</DependentUpon>
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Resources\Strings\Texts.Designer.cs">
<AutoGen>True</AutoGen>
<DesignTime>True</DesignTime>
<DependentUpon>Texts.resx</DependentUpon>
</Compile>
<Compile Include="Main\Results.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Properties\Resources.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Dialogs\DialogExportOptions.resx">
<SubType>Designer</SubType>
<DependentUpon>DialogExportOptions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Dialogs\DialogMessageExists.resx">
<SubType>Designer</SubType>
<DependentUpon>DialogMessageExists.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Dialogs\DialogOptions.resx">
<SubType>Designer</SubType>
<DependentUpon>DialogOptions.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Dialogs\DialogViewSel.resx">
<SubType>Designer</SubType>
<DependentUpon>DialogViewSel.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Dialogs\FreezeMainCtr.resx">
<SubType>Designer</SubType>
<DependentUpon>FreezeMainCtr.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Dialogs\MainControl.resx">
<SubType>Designer</SubType>
<DependentUpon>MainControl.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Dialogs\MainForm.resx">
<SubType>Designer</SubType>
<DependentUpon>MainForm.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Resources\Strings\Texts.resx">
<SubType>Designer</SubType>
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Texts.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<None Include="Resources\TOOLBAR_help.png" />
</ItemGroup>
<ItemGroup>
<None Include="Resources\TOOLBAR_info.png" />
</ItemGroup>
<ItemGroup>
<Content Include="Resources\TOOLBAR_calculate.png" />
<Content Include="Resources\TOOLBAR_close.png" />
<Content Include="Resources\TOOLBAR_open.png" />
<Content Include="Resources\TOOLBAR_print.png" />
<Content Include="Resources\TOOLBAR_save.png" />
<Content Include="Resources\TOOLBAR_save_as.png" />
</ItemGroup>
<ItemGroup>
<None Include="Additional\buildevents.bat" />
<Content Include="Additional\DRevitFreezeDrawing.addin">
<SubType>Designer</SubType>
</Content>
<Content Include="Configuration\settings.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\DRevitFreezeDrawing.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\DRevitFreezeDrawing_small.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\exportlayers-dwg-AIA.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\exportlayers-dwg-BS1192.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\exportlayers-dwg-CP83.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="Configuration\exportlayers-dwg-ISO13567.txt">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\DRevitFreezeDrawing.Resources.dll">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\DRevitFreezeDrawing_revit.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\Help\contents.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\contents-data.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\favorites.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\index.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\indexes.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\indexes-data.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\left_tab.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\search.html">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\indexes-data.xml">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\Help\contexthelp\DREVITFREEZEDRAWING.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\contexthelp\IDD_EXPORT_OPTIONS.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\contexthelp\IDD_LICENCE.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\contexthelp\IDD_MAIN_DIALOG_BOX_FOR_FREEZE_DRAWINGS.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\contexthelp\IDD_OPTIONS.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\contexthelp\IDD_SAVE_FREEZE_DRAWINGS.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\contexthelp\IDD_SELECTED_VIEWS_SHEETS.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\Help\files\GUID-0413D00C-339F-41DD-9B6B-A52D2ED4C0E8.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\GUID-74862A86-8591-48E1-9E3C-A54816B9456F.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\GUID-7547A20F-5CE1-4824-9B62-C61034C2190B.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\GUID-7D98DB2E-5D91-49B3-B364-0740C1B0B08C.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\GUID-7DC56634-17C4-4171-BF0A-D98425162DE7.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\GUID-BF60DBE9-5DE7-42D2-B287-7C19DABD1E5A.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\GUID-F40FC4B3-4F97-43F1-9692-474A65D02FFB.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\GUID-F8FA3E3C-A759-47D8-AE2F-6F17B47F2A9F.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\files\topichead_0.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\Help\html\ac.cmtdialog.htm">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\Help\images\A.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.chickletred.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.chickletred2.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.cmdaccess_blank.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.down.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.hlp_page.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.keyboard.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.mainback.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.menuaro.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.mouse.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.pg_end.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.pg_next.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.pg_prev.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.pg_up.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.right.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.tabs_c.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.tabs_not.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.tabs_p.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.tabs_r.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\ac.tabs_x.GIF">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\add_favorite.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\A-M.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\A-S.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\back.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\book-closed.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\book-opened.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\forward.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\head_graphic.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\home.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\loading.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\M.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\minus.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\nav-home-xp.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\nav-next-xp.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\nav-null-xp.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\nav-prev-xp.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\nav-print.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\nav-share.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\nav-up-xp.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\next.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\page.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\plus.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\previous.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\Revit.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\S.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\show_in_contents.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\S-M.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-bkg.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-bkg2.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-bkg-o.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-bkg-x.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-bkg-xn.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-left.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-left-o.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-left-x.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-right.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-right-o.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab-right-x.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\void.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\GUID-644CE80E-2EF9-4778-B340-5D6AF13A4851-low.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\GUID-7D66A050-F3AC-4F40-A90B-BB8C7BE024E5-low.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\GUID-D2024833-2D44-4377-BC03-0E6EE7944808-low.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\GUID-EC47AD73-1B0C-4B0D-915B-ED16B6EE8150-low.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\GUID-FCEBD8FA-FCA3-46E0-8943-500654C0EF4A-low.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab.active.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\tab.inactive.jpg">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\dlg_launcher.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\panel_expander.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\task-arrow.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\task-button-bottom.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\task-button-middle.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\task-button-top.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\images\task-link.png">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\Help\scripts\adsk.common.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\adsk.favorites.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\adsk.highlight.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\adsk.strings.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\common-processing.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\cookies-worker.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\index-processing.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-apollo.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-clj.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-css.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-go.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-hs.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-lisp.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-lua.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-ml.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-n.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-proto.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-scala.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-sql.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-tex.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-vb.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-vhdl.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-wiki.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-xq.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\lang-yaml.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\prettify.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\root.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\search-data.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\search-entries0.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\search-processing.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\search-results-provider.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\toc-processing.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\scripts\toc-treedata.js">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<Content Include="en-US\Help\style\adsk.cpm.css">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\style\adsk.panels.css">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
<Content Include="en-US\Help\style\prettify.css">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
<ItemGroup>
<BootstrapperPackage Include="Microsoft.Net.Client.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework Client Profile</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.2.0">
<Visible>False</Visible>
<ProductName>.NET Framework 2.0 %28x86%29</ProductName>
<Install>true</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.0">
<Visible>False</Visible>
<ProductName>.NET Framework 3.0 %28x86%29</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5</ProductName>
<Install>false</Install>
</BootstrapperPackage>
<BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
<Visible>False</Visible>
<ProductName>.NET Framework 3.5 SP1</ProductName>
<Install>false</Install>
</BootstrapperPackage>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
<PropertyGroup>
<PostBuildEvent>
if not exist "q:\exe.$(ConfigurationName)" goto InstalledSDK
md "q:\exe.$(ConfigurationName)"
md "q:\exe.$(ConfigurationName)\Modules"
md "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)"
del "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)\$(TargetFileName)"
copy "$(TargetPath)" "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)\$(TargetFileName)"
copy "$(TargetDir)Interop.*.dll" "q:\exe.$(ConfigurationName)\Modules\$(ProjectName)\"
goto END
:InstalledSDK
:END
if exist "$(ProjectDir)Additional\buildevents.bat" call "$(ProjectDir)Additional\buildevents.bat"
xcopy "$(ProjectDir)Additional\*.addin" "R:\Autodesk\Revit\Addins\2018" /S /R /K /V /I /F /C /Y
</PostBuildEvent>
</PropertyGroup>
</Project>
@@ -0,0 +1,124 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// REX Application class.
/// </summary>
using Autodesk.REX.Framework;
using REX.Common;
namespace REX.DRevitFreezeDrawing
{
/// <summary>
/// Main class for REX manager and interactions with system.
/// </summary>
public class Application : REXFoundationApplication
{
protected override void OnCreateApplication()
{
base.OnCreateApplication();
ApplicationRef = new FoundationApplication();
}
}
/// <summary>
/// Main class for REX manager and interactions with system.
/// </summary>
/// <remarks></remarks>
public class FoundationApplication : REXApplication
{
/// <summary>
/// Initializes a new instance of the <see cref="Application"/> class.
/// Creates Extension class.
/// </summary>
public FoundationApplication()
{
AppExtension = new Extension(this);
}
/// <summary>
/// Called when create. Set ExtensionContext structure and enable or disable some functionalities.
/// </summary>
/// <returns>Returns true if succeeded.</returns>
public override bool OnCreate()
{
// insert code here
return true;
}
/// <summary>
/// Get the extension.
/// </summary>
/// <returns>Returns reference to Extension object.</returns>
public override REXExtension GetExtension()
{
// insert code here
return AppExtension;
}
/// <summary>
/// Get the minimum required version of specified engine's component.
/// </summary>
/// <param name="Version">The version.</param>
/// <returns>Returns version string - "Major.Minor".</returns>
public override string GetVersion(REXVersionType Version)
{
switch (Version)
{
case REXVersionType.Common:
case REXVersionType.Controls:
case REXVersionType.Math:
return "1.0";
case REXVersionType.Engine:
return "2.0";
case REXVersionType.CommercialEngine:
return "2.3";
}
return "";
}
/// <summary>
/// Get the text. See <see cref="Extension.GetText()"/> method.
/// </summary>
/// <param name="Name">The name.</param>
/// <returns>Returns specified text.</returns>
public override string GetText(string Name)
{
return GetExtension().OnGetText(Name);
}
public override System.Guid GetUniqueId()
{
return new System.Guid("00000000-928e-40c4-8a46-8d4634e5dcc1");
}
#region Private members
private Extension AppExtension;
#endregion
}
}
@@ -0,0 +1,63 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.IO;
using Autodesk.REX.Framework;
using REX.Common;
namespace REX.DRevitFreezeDrawing
{
internal class Data : REXData
{
public Data(REXExtension Ext)
: base(Ext)
{
VersionCurrent = 1;
}
#region Structures
public string OptionPath;
#endregion
protected override void OnSetDefaults(REXUnitsSystemType UnitsSystem)
{
OptionPath = "";
}
protected override bool OnSave(ref BinaryWriter Data)
{
Data.Write(OptionPath);
return true;
}
protected override bool OnLoad(ref BinaryReader Data)
{
if (VersionLoaded >= 0.5)
{
OptionPath = Data.ReadString();
}
return true;
}
}
}
@@ -0,0 +1,190 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// External command class which are used to launch module directly without REX ribbon.
/// </summary>
using System;
using Autodesk.REX.Framework;
#if (REVIT)
using Autodesk.Revit.DB;
using Autodesk.Revit.UI;
#endif
namespace REX.DRevitFreezeDrawing
{
#if (REVIT)
/// <summary>
/// The class enables direct connection between Revit and extension.
/// </summary>
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
[Autodesk.Revit.Attributes.Journaling(Autodesk.Revit.Attributes.JournalingMode.NoCommandData)]
public class DirectRevitAccess : Autodesk.Revit.UI.IExternalCommand
#else
/// <summary>
/// The class enables direct connection between application and extension.
/// </summary>
public class DirectAccess
#endif
{
#if (REVIT)
/// <summary>
/// Executes the extension.
/// </summary>
/// <param name="commandData">The command data.</param>
/// <param name="message">The message.</param>
/// <param name="elements">The elements.</param>
/// <returns>Returns execution result.</returns>
public Result Execute(Autodesk.Revit.UI.ExternalCommandData commandData, ref string message, ElementSet elements)
#else
/// <summary>
/// Executes the extension.
/// </summary>
public bool Run()
#endif
{
AppDomain currentDomain = AppDomain.CurrentDomain;
if (currentDomain != null)
currentDomain.AssemblyResolve += new ResolveEventHandler(currentDomain_AssemblyResolve);
#if (REVIT)
return Proxy.Execute(commandData, ref message, elements);
#else
return Proxy.Run();
#endif
}
System.Reflection.Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
Autodesk.REX.Framework.REXConfiguration.Initialize(System.Reflection.Assembly.GetExecutingAssembly());
return Autodesk.REX.Framework.REXAssemblies.Resolve(sender, args, System.Reflection.Assembly.GetExecutingAssembly());
}
private static class Proxy
{
#if (REVIT)
public static Result Execute(Autodesk.Revit.UI.ExternalCommandData commandData, ref string message, ElementSet elements)
{
ExtensionDirectRevitAccess extensionDirectRevitAccess = new ExtensionDirectRevitAccess();
return extensionDirectRevitAccess.Execute(commandData, ref message, elements);
}
#else
public static bool Run()
{
ExtensionDirectAccess extensionDirectAccess = new ExtensionDirectAccess();
return extensionDirectAccess.Run();
}
#endif
}
}
#if (REVIT)
/// <summary>
/// The class enables direct connection between Revit and extension.
/// </summary>
[Autodesk.Revit.Attributes.Transaction(Autodesk.Revit.Attributes.TransactionMode.Manual)]
[Autodesk.Revit.Attributes.Regeneration(Autodesk.Revit.Attributes.RegenerationOption.Manual)]
public class ExtensionDirectRevitAccess : REX.Common.REXDirectRevitAccess, IExternalCommand
#else
/// <summary>
/// The class enables direct connection between application and extension.
/// </summary>
public class ExtensionDirectAccess
#endif
{
#if (REVIT)
/// <summary>
/// Executes the extension.
/// </summary>
/// <param name="commandData">The command data.</param>
/// <param name="message">The message.</param>
/// <param name="elements">The elements.</param>
/// <returns>Returns execution result.</returns>
public Result Execute(Autodesk.Revit.UI.ExternalCommandData commandData, ref string message, ElementSet elements)
#else
/// <summary>
/// Executes the extension.
/// </summary>
public bool Run()
#endif
{
try
{
AppRef = new Application();
REXContext context = new REXContext();
context.Control.Mode = REXMode.Dialog;
context.Control.ControlMode = REXControlMode.ModalDialog;
#if (REVIT)
PresetContext(ref commandData, ref message, ref elements, ref context);
#else
context.Product.Type = REXInterfaceType.None;
#endif
Transaction tran = new Transaction(commandData.Application.ActiveUIDocument.Document, "REX.DRevitFreezeDrawing transaction");
tran.Start();
REXEnvironment Env = new REXEnvironment(REX.Common.REXConst.ENG_DedicatedVersionName);
if (Env.LoadEngine(ref context))
{
if (AppRef.Create(ref context))
{
AppRef.Show();
#if (REVIT)
}
}
tran.Commit();
if (context.Extension.Result == REXResultType.None || context.Extension.Result == REXResultType.Succeeded)
return Result.Succeeded;
else if (context.Extension.Result == REXResultType.Cancelled)
return Result.Cancelled;
else
return Result.Failed;
#else
return true;
}
}
return false;
#endif
}
catch (Exception ex)
{
#if (REVIT)
message = ex.Message;
return Result.Failed;
#else
return false;
#endif
}
}
private Application AppRef;
}
}
@@ -0,0 +1,431 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.Collections.Generic;
using Autodesk.REX.Framework;
using REX.Common;
using REX.DRevitFreezeDrawing.Main;
using REX.DRevitFreezeDrawing.Resources.Dialogs;
namespace REX.DRevitFreezeDrawing
{
/// <summary>
/// Main class for development
/// </summary>
internal sealed class Extension : REXExtension
{
public Extension(REXApplication App)
: base(App)
{
DataRef = new Data(this);
ResultsRef = new Results(this);
}
//******************************************************************************************
/// <summary>
/// For standard funcionality fill interface methods
/// </summary>
#region Public overrided interface methods
public override bool OnInitialize()
{
if (ThisApplication.Context2.Product.Type == REXInterfaceType.Revit)
Revit.UsingParameters = false;
return base.OnInitialize();
}
//******************************************************************************************
/// <summary>
/// Create needed structures and verify needs
/// if you add error message to system errors the module is not load
/// </summary>
public override void OnCreate()
{
base.OnCreate();
// System.SystemBase.Errors.AddError("ErrCreate", "Bd komunikacji z programem Revit!", null);
}
//******************************************************************************************
/// <summary>
/// Create sub dialogs
/// </summary>
public override void OnCreateDialogs()
{
base.OnCreateDialogs();
m_ExpImpMng = new REXExpImpMng(this);
m_RevitData = new REXRevitData(Revit.CommandData());
m_RevitData.Initialize();
m_ErrorType = 0;
System.LoadFromFile(false);
FreezeControl = new FreezeMainCtr(this);
dlgOptions = new DialogOptions(this);
dlgExportOptions = new DialogExportOptions(this);
dlgViewSel = new DialogViewSel(this);
}
//******************************************************************************************
/// <summary>
/// Create layout items
/// </summary>
public override void OnCreateLayout()
{
base.OnCreateLayout();
UI.HideCommand("ToolStripSeparatorBPrint");
UI.HideCommand("ToolStripMenuItemPrint");
UI.HideCommand("toolStripSeparator7");
UI.HideCommand("MenuItemPrint");
UI.HideCommand("MenuItemCalculations");
Layout.ConstOptions = (long)REXUI.SetupOptions.FormFixed;
Layout.AddLayout(new REXLayoutItem(REXLayoutItem.LayoutType.Layout, null, null, null, (long)REXUI.SetupOptions.TabDialog, FreezeControl));
dlgOptions.SetProjectName(m_ExpImpMng.GetProjectName());
System.SetCaption();
}
//******************************************************************************************
/// <summary>
/// Set data to dialogs
/// </summary>
public override void OnSetDialogs()
{
base.OnSetDialogs();
dlgViewSel.SetLists(m_RevitData.ViewList);
}
//******************************************************************************************
/// <summary>
/// Get data from dialogs
/// </summary>
public override void OnSetData()
{
base.OnSetData();
m_ErrorType = 0;
if (!FreezeControl.CurrentView)
{
List<Autodesk.Revit.DB.View> viewList = dlgViewSel.GetSelectedViews();
if (viewList.Count <= 0)
{
System.SystemBase.Errors.AddError("", "", null);
m_ErrorType = 1;
}
}
else
{
Autodesk.Revit.DB.View v = Revit.CommandData().Application.ActiveUIDocument.Document.ActiveView;
if (v.ViewType == Autodesk.Revit.DB.ViewType.Internal || v.ViewType == Autodesk.Revit.DB.ViewType.DrawingSheet || !v.CanBePrinted)
{
System.SystemBase.Errors.AddError("", "", null);
m_ErrorType = 2;
}
}
}
//******************************************************************************************
/// <summary>
/// </summary>
public override bool OnCanRun()
{
//return true;
this.ExtensionContext.Control.ShowErrorsDialog = false;
if (m_ErrorType == 1)
return RunQuestion(Resources.Strings.Texts.REX_ModuleDescription, Resources.Strings.Texts.ErrorNoViewsDetected);
else if (m_ErrorType == 2)
return RunQuestion(Resources.Strings.Texts.REX_ModuleDescription, Resources.Strings.Texts.CurrentViewNotSet);
else
return true;
}
//******************************************************************************************
/// <summary>
/// Run process calculations and etc.
/// </summary>
public override void OnRun()
{
base.OnRun();
List<ViewPath> fileNames = new List<ViewPath>();
Autodesk.Revit.DB.DWGExportOptions dwgOpt = dlgExportOptions.GetExportOptions(dlgOptions.Copy);
dwgOpt.FileVersion = dlgOptions.GetVersion();
Autodesk.Revit.DB.DWGImportOptions dwgImpOpt = dlgOptions.GetImportOptions();
dwgImpOpt.Unit = dlgExportOptions.GetExportUnits(dlgOptions.Copy);
m_ExpImpMng.Clean();
try //for demo mode
{
List<Autodesk.Revit.DB.View> viewList;
if (FreezeControl.CurrentView)
{
Autodesk.Revit.DB.View v = Revit.CommandData().Application.ActiveUIDocument.Document.ActiveView;
if (!(v.ViewType == Autodesk.Revit.DB.ViewType.Internal || v.ViewType == Autodesk.Revit.DB.ViewType.DrawingSheet || !v.CanBePrinted))
{
viewList = new List<Autodesk.Revit.DB.View>();
viewList.Add(Revit.CommandData().Application.ActiveUIDocument.Document.ActiveView);
}
else
{
viewList = new List<Autodesk.Revit.DB.View>();
}
}
else
{
viewList = dlgViewSel.GetSelectedViews();
}
if (viewList.Count > 0)
{
IREXProgress Progress = System.SystemBase.Tools.Prograss;
Progress.Steps = 2 * viewList.Count;
Progress.Show(GetForm());
GetForm().Hide();
fileNames = m_ExpImpMng.Export(viewList, dwgOpt, Progress);
m_ExpImpMng.Import(dlgOptions.Copy, dlgOptions.Browse, dlgOptions.BaseName, dwgImpOpt, fileNames, Progress);
if (dlgOptions.DeleteView)
m_ExpImpMng.DeleteViews(viewList);
Progress.Hide();
global::System.Windows.Forms.MessageBox.Show(GetForm(), Resources.Strings.Texts.FreezingFinSuccesfull, Resources.Strings.Texts.REX_ModuleDescription);
}
}
catch
{
}
m_ExpImpMng.Clean();
DataRef.OptionPath = dlgOptions.Browse;
System.SaveToFile(false, false);
}
//******************************************************************************************
/// <summary>
/// Printing results.
/// </summary>
public override void OnShowResults()
{
base.OnShowResults();
}
//******************************************************************************************
/// <summary>
/// If return true dialog will close after OK button clicked
/// </summary>
public override bool OnCanClose(REXCanCloseType Type)
{
return base.OnCanClose(Type);
}
//******************************************************************************************
/// <summary>
/// </summary>
public override void OnClose()
{
base.OnClose();
}
//******************************************************************************************
/// <summary>
/// Activate or deactivate layout - module can modify layout before or after activation
/// </summary>
public override void OnActivateLayout(REXLayoutItem LItem, bool Activate)
{
base.OnActivateLayout(LItem, Activate);
// -- insert your code here ---
if (Activate)
{
}
else
{
}
}
//******************************************************************************************
/// <summary>
/// Error selecting handler
/// </summary>
public override void OnErrorSelected(REXErrorsEventArgs e)
{
base.OnErrorSelected(e);
// -- insert your code here ---
}
//******************************************************************************************
/// <summary>
/// Get text from resources
/// </summary>
public override string OnGetText(string Name)
{
// For obfuscation strings
if (Name == REXConst.ENG_ResModuleDescription)
return Resources.Strings.Texts.REX_ModuleDescription;
return Resources.Strings.Texts.ResourceManager.GetString(Name);
}
#endregion
//******************************************************************************************
/// <summary>
/// For non standard funcionality fill other methods
/// </summary>
#region Public overrided methods for develeopment
/// <summary>
/// Create all needed objects
/// </summary>
public override bool Create()
{
bool result = base.Create();
// -- insert your code here ---
return result;
}
//******************************************************************************************
/// <summary>
/// Create all needed references and data
/// </summary>
public override void Setup()
{
base.Setup();
}
//******************************************************************************************
/// <summary>
/// Command handler
/// </summary>
public override object Command(ref REXCommand CommandStruct)
{
return base.Command(ref CommandStruct);
}
//******************************************************************************************
/// <summary>
/// Event handler
/// </summary>
public override object Event(ref REXEvent EventStruct)
{
return base.Event(ref EventStruct);
}
//******************************************************************************************
#endregion
#region Main control methods
public MainControl MainControl()
{
if (object.ReferenceEquals(ControlRef, null))
ControlRef = new MainControl(this);
return ControlRef;
}
#endregion
#region Public overrided UI methods - Form and Control reference
public override REXExtensionForm GetForm()
{
if (object.ReferenceEquals(FormRef, null))
FormRef = new MainForm(this);
return (REXExtensionForm)FormRef;
}
//******************************************************************************************
public override REXExtensionControl GetControl()
{
return MainControl();
}
//******************************************************************************************
#endregion
#region Public overrided data and results
public Data Data
{
get
{
return DataRef;
}
}
//******************************************************************************************
public Results Results
{
get
{
return ResultsRef;
}
}
//******************************************************************************************
public override REXResults GetResults()
{
return ResultsRef;
}
//******************************************************************************************
public override REXData GetData()
{
return DataRef;
}
#endregion
#region <other>
public void ShowOptionsDialog()
{
dlgOptions.ShowDialog(this.GetForm());
}
public void ShowExportOptionsDialog()
{
dlgExportOptions.ShowDialog(GetForm());
}
public void ShowSelectViews()
{
dlgViewSel.ShowDialog(GetForm());
}
public REXRevitData RevitData
{
get
{
return m_RevitData;
}
}
#endregion
#region Private members
private Data DataRef;
private Results ResultsRef;
private MainForm FormRef;
private MainControl ControlRef;
private DialogOptions dlgOptions;
private DialogExportOptions dlgExportOptions;
private DialogViewSel dlgViewSel;
private FreezeMainCtr FreezeControl;
private REXExpImpMng m_ExpImpMng;
private REXRevitData m_RevitData;
private int m_ErrorType;
#endregion
}
}
@@ -0,0 +1,165 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.
/// <summary>
/// </summary>
using System;
using System.Collections.Generic;
using System.Text;
namespace REX.Common
{
/// <summary>
/// Foundation class for REX.Foundation usage.
/// </summary>
public class REXFoundationApplication : Autodesk.REX.Framework.IREXApplication2
{
protected Autodesk.REX.Framework.IREXApplication2 ApplicationRef;
/// <summary>
/// Initializes a new instance of the <see cref="REXApplication"/> class.
/// </summary>
public REXFoundationApplication()
{
AppDomain currentDomain = AppDomain.CurrentDomain;
currentDomain.AssemblyResolve += new ResolveEventHandler(currentDomain_AssemblyResolve);
OnCreateApplication();
}
protected virtual void OnCreateApplication()
{
}
/// <summary>
/// Handles the AssemblyResolve event of the currentDomain control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="args">The <see cref="System.ResolveEventArgs"/> instance containing the event data.</param>
/// <returns></returns>
System.Reflection.Assembly currentDomain_AssemblyResolve(object sender, ResolveEventArgs args)
{
Autodesk.REX.Framework.REXConfiguration.Initialize(System.Reflection.Assembly.GetExecutingAssembly());
return Autodesk.REX.Framework.REXAssemblies.Resolve(sender, args, Autodesk.REX.Framework.REXConfiguration.Control.VersionName, System.Reflection.Assembly.GetExecutingAssembly());
}
#region IREXApplication2 Members
/// <summary>
/// Create module.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if succeeded.</returns>
public bool Create(ref Autodesk.REX.Framework.REXContext AppContext)
{
if (AppContext.Extension.Name == null || AppContext.Extension.Name == "")
AppContext.Extension.Name = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
return ApplicationRef.Create(ref AppContext);
}
/// <summary>
/// Creates and shows module as modal dialog.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if suceeded.</returns>
public bool Modal(ref Autodesk.REX.Framework.REXContext AppContext)
{
if (AppContext.Extension.Name == null || AppContext.Extension.Name == "")
AppContext.Extension.Name = System.Reflection.Assembly.GetExecutingAssembly().GetName().Name;
return ApplicationRef.Modal(ref AppContext);
}
#endregion
#region IREXApplication Members
/// <summary>
/// Closes this instance.
/// </summary>
public void Close()
{
ApplicationRef.Close();
}
/// <summary>
/// Commands the specified command struct.
/// </summary>
/// <param name="CommandStruct">The command struct.</param>
/// <returns></returns>
public object Command(ref Autodesk.REX.Framework.REXCommand CommandStruct)
{
return ApplicationRef.Command(ref CommandStruct);
}
/// <summary>
/// Controls this instance.
/// </summary>
/// <returns></returns>
public object Control()
{
return ApplicationRef.Control();
}
/// <summary>
/// Creates and shows module as modal dialog.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if suceeded.</returns>
public bool Create(ref Autodesk.REX.Framework.REXApplicationContext AppContext)
{
return ApplicationRef.Create(ref AppContext);
}
/// <summary>
/// Called when event.
/// </summary>
/// <param name="EventStruct">The event structure.</param>
/// <returns>Returns result of event operation.</returns>
public object Event(ref Autodesk.REX.Framework.REXEvent EventStruct)
{
return ApplicationRef.Event(ref EventStruct);
}
/// <summary>
/// Creates and shows module as modal dialog.
/// </summary>
/// <param name="AppContext">The application context.</param>
/// <returns>Returns true if suceeded.</returns>
public bool Modal(ref Autodesk.REX.Framework.REXApplicationContext AppContext)
{
return ApplicationRef.Modal(ref AppContext);
}
/// <summary>
/// Shows this module.
/// </summary>
/// <returns>Returns true if succeeded.</returns>
public bool Show()
{
return ApplicationRef.Show();
}
#endregion
}
}
@@ -0,0 +1,688 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using Autodesk.Revit.DB;
using RevitElement = Autodesk.Revit.DB.Element;
using global::System.IO;
using Autodesk.REX.Framework;
using REX.Common;
using REX.Common.Revit.Geometry;
using REX.DRevitFreezeDrawing.Resources.Dialogs;
namespace REX.DRevitFreezeDrawing.Main
{
/// <summary>
/// REX Export/Import manager class
/// </summary>
class REXExpImpMng : REXExtensionObject
{
#region<members>
Autodesk.Revit.UI.ExternalCommandData m_CommandData;
string m_path; //system temp path
List<FileInfo> m_FileDwgList;//list of read files before export to the directory
#endregion
#region<constructors>
public REXExpImpMng(REXExtension argExt)
: base(argExt)
{
m_CommandData = argExt.Revit.CommandData();
m_FileDwgList = new List<FileInfo>();
}
#endregion
#region<methods>
//******************************************************************************************
/// <summary>
/// this function export View from the list
/// </summary>
public List<ViewPath> Export(List<View> argListView, DWGExportOptions setDwg, IREXProgress argProgress)
{
IREXProgress Progress = argProgress;
Progress.Steps = 2 * argListView.Count;
Progress.Position = 0;
Progress.Header = Resources.Strings.Texts.FreezeInProgress + " - " + Resources.Strings.Texts.Export;
List<ViewPath> nameStr = new List<ViewPath>();
m_path = getTempPath();
//reading files from temp directory
setDwg.LayerMapping = GetLayMap(setDwg.LayerMapping);
foreach (View v in argListView)
{
List<ElementId> vSet = new List<ElementId>();
if (v != null)
{
View3D tmp3D = null;
Autodesk.Revit.DB.ViewSheet viewSheet = null;
bool proceed = false;
if (v is Autodesk.Revit.DB.View3D)
{
try
{
FilteredElementCollector filteredElementCollector = new FilteredElementCollector(ThisExtension.Revit.ActiveDocument);
filteredElementCollector.OfClass(typeof(FamilySymbol));
filteredElementCollector.OfCategory(BuiltInCategory.OST_TitleBlocks);
IList<RevitElement> titleBlocks = filteredElementCollector.ToElements();
List<FamilySymbol> familySymbols = new List<FamilySymbol>();
foreach (Element element in titleBlocks)
{
FamilySymbol f = element as FamilySymbol;
if (f != null)
familySymbols.Add(f);
}
if (titleBlocks.Count != 0)
{
Autodesk.Revit.DB.FamilySymbol fs = null;
foreach (Autodesk.Revit.DB.FamilySymbol f in familySymbols)
{
if (null != f) { fs = f; break; }
}
viewSheet = Autodesk.Revit.DB.ViewSheet.Create(ThisExtension.Revit.ActiveDocument, fs.Id);
if (null != viewSheet)
{
UV location = new UV((viewSheet.Outline.Max.U - viewSheet.Outline.Min.U) / 2,
(viewSheet.Outline.Max.V - viewSheet.Outline.Min.V) / 2);
try
{
Viewport.Create(ThisExtension.Revit.ActiveDocument, viewSheet.Id, v.Id, new XYZ(location.U, location.V, 0.0));
}
catch
{
try
{
XYZ tmpXYZ = new XYZ(-v.ViewDirection.X, -v.ViewDirection.Y, -v.ViewDirection.Z);
BoundingBoxXYZ tmpBoundingBox = v.CropBox;
bool tmpCropBoxActive = v.CropBoxActive;
IList<Element> viewTypes = REXGeometryRvt.FilterElements(ThisExtension.Revit.ActiveDocument, typeof(ViewFamilyType));
ElementId viewTypeid = null;
foreach (Element viewType in viewTypes)
{
ViewFamilyType famType = viewType as ViewFamilyType;
if (famType != null && famType.ViewFamily == ViewFamily.ThreeDimensional)
{
viewTypeid = famType.Id;
break;
}
}
if (viewTypeid != null)
{
tmp3D = View3D.CreateIsometric(ThisExtension.Revit.ActiveDocument, viewTypeid);
tmp3D.ApplyViewTemplateParameters(v);
tmp3D.CropBox = tmpBoundingBox;
Viewport.Create(ThisExtension.Revit.ActiveDocument, viewSheet.Id, tmp3D.Id, new XYZ(location.U, location.V, 0.0));
}
}
catch
{
}
}
vSet.Add(viewSheet.Id);
proceed = true;
}
}
}
catch { }
}
else
{
vSet.Add(v.Id);
proceed = true;
}
if (proceed)
{
string fam = v.get_Parameter(BuiltInParameter.VIEW_FAMILY).AsString();
Progress.Step(fam + "-" + v.Name);
string vName = ValidateFileName(v.Name);
m_CommandData.Application.ActiveUIDocument.Document.Export(m_path, fam + "-" + vName, vSet, setDwg);
nameStr.Add(new ViewPath(m_path + "\\" + fam + "-" + vName + ".dwg", v, fam + "-" + v.Name));
Progress.Step(fam + "-" + v.Name);
if (viewSheet != null)
{
ElementId elementId = viewSheet.Id;
ThisExtension.Revit.ActiveDocument.Delete(elementId);
}
if (tmp3D != null)
{
ElementId elementId = tmp3D.Id;
ThisExtension.Revit.ActiveDocument.Delete(elementId);
}
}
}
}
return nameStr;
}
//******************************************************************************************
private string ValidateFileName(string name)
{
string newname = name.Replace("/", "-");
newname = newname.Replace("\\", "-");
newname = newname.Replace(":", "-");
return newname;
}
//******************************************************************************************
/// <summary>
/// reading layer map from txt file in Configuration directory
/// </summary>
private string GetLayMap(string argLayMap)
{
string Dir = m_CommandData.Application.ActiveUIDocument.Document.GetType().Assembly.Location;
string DirProgram = Directory.GetParent(Dir).FullName;
string DirData = Directory.GetParent(DirProgram).FullName + "\\Data";
REXEnvironment Env = new REXEnvironment(REXConst.ENG_DedicatedVersionName);
string path = Env.GetModulePath(REXEnvironment.PathType.Configuration, ThisExtension.ThisApplication.Context.Name);
string pathDirMap;
switch (argLayMap)
{
case "AIA":
pathDirMap = DirData + "\\exportlayers-dwg-AIA.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
{
pathDirMap = path + "\\exportlayers-dwg-AIA.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
return "";
}
case "BS1192":
pathDirMap = DirData + "\\exportlayers-dwg-BS1192.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
{
pathDirMap = path + "\\exportlayers-dwg-BS1192.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
return "";
}
case "ISO13567":
pathDirMap = DirData + "\\exportlayers-dwg-ISO13567.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
{
pathDirMap = path + "\\exportlayers-dwg-ISO13567.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
return "";
}
case "CP38":
pathDirMap = DirData + "\\exportlayers-dwg-CP83.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
{
pathDirMap = path + "\\exportlayers-dwg-CP83.txt";
if (File.Exists(pathDirMap))
return pathDirMap;
else
return "";
}
default:
pathDirMap = "";
return "";
}
}
//******************************************************************************************
/// <summary>
/// this function imports all views from the list and create new draft views for them based on m_path
/// </summary>
public void Import(bool argCopy, string argBrowse, string argBaseName, Autodesk.Revit.DB.DWGImportOptions argOpt, List<ViewPath> argViewList, IREXProgress argProgress)
{
ViewDrafting draftView;
DWGImportOptions setDwgImp;
IREXProgress Progress = argProgress;
DialogMessageExists dlgMsg = new DialogMessageExists(ThisExtension);
dlgMsg.Text = Resources.Strings.Texts.REX_ModuleDescription;
//getting file list from the directory
string[] FileList = Directory.GetFiles(m_path, "*.dwg");
List<string> SelectFileList = new List<string>();
string newname;
string strPost = " (" + Resources.Strings.Texts.Freezed + ")";
Progress.Position = 0;
Progress.Steps = 2 * argViewList.Count;
Progress.Header = Resources.Strings.Texts.FreezeInProgress + " - " + Resources.Strings.Texts.Import;
ViewFamilyType viewFamilyType = null;
FilteredElementCollector collector = new FilteredElementCollector(m_CommandData.Application.ActiveUIDocument.Document);
var viewFamilyTypes = collector.OfClass(typeof(ViewFamilyType)).ToElements();
foreach (Element e in viewFamilyTypes)
{
ViewFamilyType v = e as ViewFamilyType;
if (v.ViewFamily == ViewFamily.Drafting)
{
viewFamilyType = v;
break;
}
}
//importing files to Revit
foreach (ViewPath v in argViewList)
{
draftView = ViewDrafting.Create(m_CommandData.Application.ActiveUIDocument.Document, viewFamilyType.Id);
newname = ReplaceForbiddenSigns(v.fullViewName);
string tempName = newname;
int i = 1;
for (;;)
{
try
{
draftView.Name = newname + strPost;
break;
}
catch
{
if (i > 10)
{
try
{
draftView.Name = draftView.Name + strPost;
}
catch
{
}
break;
}
newname = tempName + "-" + i.ToString();
i++;
}
}
draftView.Scale = v.ViewRevit.Scale;
Progress.Step(draftView.Name);
//properties
setDwgImp = new DWGImportOptions();
setDwgImp.ColorMode = argOpt.ColorMode;
setDwgImp.OrientToView = argOpt.OrientToView;
setDwgImp.Unit = argOpt.Unit;
setDwgImp.CustomScale = argOpt.CustomScale;
//import
RevitElement el = (RevitElement)draftView;
if (File.Exists(v.path))
{
ElementId id;
m_CommandData.Application.ActiveUIDocument.Document.Import(v.path, setDwgImp, draftView, out id);
v.DraftingName = draftView.Name;
//copying to user directory
if (argCopy)
{
CopyToUserDirViewPath(v, argBaseName, argBrowse, dlgMsg);
}
}
Progress.Step(draftView.Name);
}
dlgMsg.Dispose();
}
//******************************************************************************************
/// <summary>
/// this function gets view nam based on file name
/// </summary>
private bool CopyToUserDirViewPath(ViewPath argView, string argBaseName, string argBrowse, DialogMessageExists dlgMsg)
{
string newFileName;
if (argBaseName != "")
newFileName = argBrowse + "\\" + argBaseName + "-" + argView.DraftingName + ".dwg";
else
newFileName = argBrowse + "\\" + argView.DraftingName + ".dwg";
string dirref = Directory.GetParent(argView.path).FullName;
string dwgreffile = argView.fullViewName.Replace(" ", "");
string dwgref = Path.GetFileNameWithoutExtension(dwgreffile) + "-*.dwg";
string dwggrefpath = GetRefDWGFilePath(dwgref, dirref);
string dd = Path.GetFileName(dwggrefpath);
string dwgrefdestpath = Path.Combine(argBrowse, dd);
if (File.Exists(newFileName))
{
if (dlgMsg.Context == ReplaceContext.Leave || dlgMsg.Context == ReplaceContext.Replace)
{
dlgMsg.ShowMessageDialog(newFileName, ThisExtension.GetForm());
if (dlgMsg.Context == ReplaceContext.Replace || dlgMsg.Context == ReplaceContext.ReplaceAll)
{
try
{
File.Copy(argView.path, newFileName, true);
if (dwggrefpath != "")
File.Copy(dwggrefpath, dwgrefdestpath, true);
return true;
}
catch
{
System.Windows.Forms.MessageBox.Show(ThisExtension.GetForm(), Resources.Strings.Texts.ErrorAccessDenied + newFileName, Resources.Strings.Texts.REX_ModuleDescription);
return false;
}
}
return true;
}
else if (dlgMsg.Context == ReplaceContext.ReplaceAll)
{
try
{
File.Copy(argView.path, newFileName, true);
if (dwggrefpath != "")
File.Copy(dwggrefpath, dwgrefdestpath, true);
return true;
}
catch
{
System.Windows.Forms.MessageBox.Show(ThisExtension.GetForm(), Resources.Strings.Texts.ErrorAccessDenied + newFileName, Resources.Strings.Texts.REX_ModuleDescription);
return false;
}
}
else
{
return true;
}
}
else
{
global::System.IO.File.Copy(argView.path, newFileName);
if (dwggrefpath != "")
System.IO.File.Copy(dwggrefpath, dwgrefdestpath, true);
return true;
}
}
//******************************************************************************************
/// <summary>
/// this function gets view nam based on file name
/// </summary>
private string getViewNameDwgDel(string fileName)
{
int indeks;
indeks = fileName.IndexOf(".dwg");
if (indeks < 0)
return "";
string name2 = fileName.Substring(0, indeks);
return name2;
}
//******************************************************************************************
/// <summary>
/// Search for files with particular searchpattern = filename in directory dirref.
/// </summary>
/// <param name="filename">Searched filename</param>
/// <param name="dirref">Directory reference</param>
/// <returns></returns>
private string GetRefDWGFilePath(string filename, string dirref)
{
string pathtofile = "";
string searchPattern = filename;
DirectoryInfo di = new DirectoryInfo(dirref);
System.IO.FileInfo[] files = di.GetFiles(searchPattern, SearchOption.AllDirectories);
foreach (System.IO.FileInfo file in files)
{
pathtofile = file.FullName;
}
return pathtofile;
}
//******************************************************************************************
/// <summary>
/// this function returns temp system path
/// </summary>
private string getTempPath()
{
string path = Environment.GetEnvironmentVariable("temp");
if (!Directory.Exists(path))
{
path = Path.GetFullPath(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData), "..\\Temp"));
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
}
path = path + "\\DRevitFreezeDrawing Temp";
if (!Directory.Exists(path))
Directory.CreateDirectory(path);
return path;
}
//******************************************************************************************
/// <summary>
/// this function checks if file is on the list
/// </summary>
private bool CheckIfStrOnList(string str, List<FileInfo> list)
{
foreach (FileInfo el in list)
{
if (str == el.fileName)
return true;
}
return false;
}
//******************************************************************************************
/// <summary>
/// this function checks if date of the file has changed
/// </summary>
private bool CheckIfDateChanged(FileInfo file, List<FileInfo> list)
{
foreach (FileInfo el in list)
{
if (file.fileName == el.fileName)
{
if (file.fileDateTime != el.fileDateTime)
return true;
}
}
return false;
}
//******************************************************************************************
/// <summary>
/// this function returns view which is connected with created dwg file
/// </summary>
private View GetViewFileNameBased(string fileName)
{
foreach (View v in ((Extension)ThisExtension).RevitData.ViewList)
{
if (fileName.Contains(v.Name + "."))
return v;
}
return null;
}
//******************************************************************************************
/// <summary>
/// this function returns view which is connected with created dwg file
/// </summary>
private View GetView(string fileName)
{
foreach (View v in ((Extension)ThisExtension).RevitData.ViewList)
{
if (fileName == v.Name + ".dwg")
return v;
}
return null;
}
//******************************************************************************************
/// <summary>
/// this function changes format of the file (for example name.dwg -> name.pcp)
/// </summary>
private string ChangeNameFormat(string file, string OldFormat, string NewFormat)
{
int indeks = file.LastIndexOf(OldFormat);
string newName = (file.Substring(0, indeks) + NewFormat);
return newName;
}
//******************************************************************************************
/// <summary>
/// this function cleans temp path directory
/// </summary>
public bool Clean()
{
if (Directory.Exists(m_path))
{
try
{
Directory.Delete(m_path, true);
return true;
}
catch
{
return false;
}
}
return false;
}
//************************************************************************
public string GetProjectName()
{
return m_CommandData.Application.ActiveUIDocument.Document.Title;
}
#endregion
//************************************************************************
/// <summary>
/// replaces forbiden signs with "" in given name string
/// </summary>
private string ReplaceForbiddenSigns(string name)
{
name = name.Replace("[", "");
name = name.Replace("]", "");
name = name.Replace("}", "");
name = name.Replace("{", "");
name = name.Replace("|", "");
name = name.Replace("?", "");
name = name.Replace("'", "");
name = name.Replace(":", "");
name = name.Replace("\\", "");
name = name.Replace("~", "");
name = name.Replace(">", "");
name = name.Replace("<", "");
name = name.Replace(";", "");
return name;
}
//************************************************************************
/// <summary>
/// deletes in document all views from given list argListView
/// </summary>
public void DeleteViews(List<View> argListView)
{
foreach (View v in argListView)
m_CommandData.Application.ActiveUIDocument.Document.Delete(v.Id);
}
}
//******************************************************************************************
/// <summary>
/// this class preserves all needed information about the file
/// </summary>
class FileInfo
{
public string fileName;
public DateTime fileDateTime;
public FileInfo(string name, DateTime date)
{
fileName = name;
fileDateTime = date;
}
}
class ViewPath
{
public ViewPath(string argPath, View argView, string argFullName)
{
path = argPath;
ViewRevit = argView;
fullViewName = argFullName;
}
public string path;
public View ViewRevit;
public string fullViewName;
public string DraftingName;
}
enum ReplaceContext
{
Replace,
ReplaceAll,
Leave,
LeaveAll
}
}
@@ -0,0 +1,122 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.Collections.Generic;
using Autodesk.Revit.DB;
namespace REX.DRevitFreezeDrawing.Main
{
/// <summary>
/// this class contains all needed Data from Revit program
/// </summary>
class REXRevitData
{
#region<members>
//*****************************************************************************
private List<View> m_ViewList;
private List<string> m_ViewListStr;
private Autodesk.Revit.UI.ExternalCommandData m_CommandData;
//*****************************************************************************
#endregion
#region<properties>
//*****************************************************************************
public List<View> ViewList
{
get
{
return m_ViewList;
}
}
//*****************************************************************************
#endregion
#region<constructors>
//*****************************************************************************
public REXRevitData(Autodesk.Revit.UI.ExternalCommandData argCommandData)
{
m_ViewListStr = new List<string>();
m_ViewList = new List<View>();
m_CommandData = argCommandData;
}
//*****************************************************************************
#endregion
#region<method>
//*****************************************************************************
/// <summary>
/// this function import data from Revit to application
/// </summary>
public void Initialize()
{
FilteredElementCollector collector = new FilteredElementCollector(m_CommandData.Application.ActiveUIDocument.Document);
IList<Element> elements = collector.OfClass(typeof(View)).ToElements();
foreach (Element el in elements)
{
View vw = el as View;
if (null != vw)
{
if (vw.CanBePrinted)
{
if (!(vw.ViewType == Autodesk.Revit.DB.ViewType.DrawingSheet))
{
m_ViewList.Add(vw);
m_ViewListStr.Add(vw.Name);
}
}
continue;
}
}
m_ViewListStr.Sort();
m_ViewList.Sort(CompareViewsByName);
}
//*****************************************************************************
/// <summary>
/// This function is an Comparison to sort views by name
/// </summary>
private static int CompareViewsByName(View arg1, View arg2)
{
return arg1.Name.CompareTo(arg2.Name);
}
//*****************************************************************************
/// <summary>
/// this function allows to get view according to name
/// </summary>
public View GetView(string argKey)
{
for (int i = 0; i <= m_ViewList.Count - 1; i++)
{
if (m_ViewList[i].Name == argKey)
return m_ViewList[i];
}
return null;
}
#endregion
}
}
@@ -0,0 +1,74 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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.IO;
using Autodesk.REX.Framework;
using REX.Common;
namespace REX.DRevitFreezeDrawing
{
internal class Results : REXResults
{
public Results(REXExtension Ext)
: base(Ext)
{
VersionCurrent = 1;
}
#region Structures
public double C;
public double D;
#endregion
protected override void OnSetDefaults(REXUnitsSystemType UnitsSystem)
{
if (UnitsSystem == REXUnitsSystemType.Imperial)
{
C = 0;
D = 0;
}
else if (UnitsSystem == REXUnitsSystemType.Metric)
{
C = 0;
D = 0;
}
}
protected override bool OnSave(ref BinaryWriter Data)
{
Data.Write(C);
Data.Write(D);
return true;
}
protected override bool OnLoad(ref BinaryReader Data)
{
if (VersionLoaded >= 1)
{
C = Data.ReadDouble();
D = Data.ReadDouble();
}
return true;
}
}
}
@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using REX.Common;
// 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("DRevitFreezeDrawing")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("DRevitFreezeDrawing")]
[assembly: AssemblyCopyright("Copyright © Autodesk, Inc. 2016")]
[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("1ac8c585-bc98-4e45-9bb6-5ac81a98d286")]
// 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,143 @@
//------------------------------------------------------------------------------
// <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 REX.DRevitFreezeDrawing.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("REX.DRevitFreezeDrawing.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 TOOLBAR_calculate {
get {
object obj = ResourceManager.GetObject("TOOLBAR_calculate", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TOOLBAR_close {
get {
object obj = ResourceManager.GetObject("TOOLBAR_close", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TOOLBAR_help {
get {
object obj = ResourceManager.GetObject("TOOLBAR_help", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TOOLBAR_info {
get {
object obj = ResourceManager.GetObject("TOOLBAR_info", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TOOLBAR_open {
get {
object obj = ResourceManager.GetObject("TOOLBAR_open", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TOOLBAR_print {
get {
object obj = ResourceManager.GetObject("TOOLBAR_print", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TOOLBAR_save {
get {
object obj = ResourceManager.GetObject("TOOLBAR_save", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
/// <summary>
/// Looks up a localized resource of type System.Drawing.Bitmap.
/// </summary>
internal static System.Drawing.Bitmap TOOLBAR_save_as {
get {
object obj = ResourceManager.GetObject("TOOLBAR_save_as", resourceCulture);
return ((System.Drawing.Bitmap)(obj));
}
}
}
}
@@ -0,0 +1,145 @@
<?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="TOOLBAR_calculate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_calculate.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TOOLBAR_close" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_close.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TOOLBAR_help" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_help.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TOOLBAR_info" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_info.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TOOLBAR_open" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_open.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TOOLBAR_print" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_print.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TOOLBAR_save" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_save.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="TOOLBAR_save_as" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\TOOLBAR_save_as.png;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>
@@ -0,0 +1,190 @@
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
partial class DialogExportOptions
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DialogExportOptions));
this.button_Cancel = new System.Windows.Forms.Button();
this.button_OK = new System.Windows.Forms.Button();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.combo_layMap = new System.Windows.Forms.ComboBox();
this.label_layMap = new System.Windows.Forms.Label();
this.check_exportRooms = new System.Windows.Forms.CheckBox();
this.combo_units = new System.Windows.Forms.ComboBox();
this.label_units = new System.Windows.Forms.Label();
this.combo_Coord = new System.Windows.Forms.ComboBox();
this.label_Coord = new System.Windows.Forms.Label();
this.combo_lineScale = new System.Windows.Forms.ComboBox();
this.label_lineScale = new System.Windows.Forms.Label();
this.combo_layAndProp = new System.Windows.Forms.ComboBox();
this.label_layAndProp = new System.Windows.Forms.Label();
this.Help = new System.Windows.Forms.LinkLabel();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// button_Cancel
//
resources.ApplyResources(this.button_Cancel, "button_Cancel");
this.button_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button_Cancel.Name = "button_Cancel";
this.button_Cancel.UseVisualStyleBackColor = true;
this.button_Cancel.Click += new System.EventHandler(this.button_Cancel_Click);
//
// button_OK
//
resources.ApplyResources(this.button_OK, "button_OK");
this.button_OK.Name = "button_OK";
this.button_OK.UseVisualStyleBackColor = true;
this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.combo_layMap);
this.groupBox1.Controls.Add(this.label_layMap);
this.groupBox1.Controls.Add(this.check_exportRooms);
this.groupBox1.Controls.Add(this.combo_units);
this.groupBox1.Controls.Add(this.label_units);
this.groupBox1.Controls.Add(this.combo_Coord);
this.groupBox1.Controls.Add(this.label_Coord);
this.groupBox1.Controls.Add(this.combo_lineScale);
this.groupBox1.Controls.Add(this.label_lineScale);
this.groupBox1.Controls.Add(this.combo_layAndProp);
this.groupBox1.Controls.Add(this.label_layAndProp);
resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false;
//
// combo_layMap
//
this.combo_layMap.FormattingEnabled = true;
resources.ApplyResources(this.combo_layMap, "combo_layMap");
this.combo_layMap.Name = "combo_layMap";
//
// label_layMap
//
resources.ApplyResources(this.label_layMap, "label_layMap");
this.label_layMap.Name = "label_layMap";
//
// check_exportRooms
//
resources.ApplyResources(this.check_exportRooms, "check_exportRooms");
this.check_exportRooms.Name = "check_exportRooms";
this.check_exportRooms.UseVisualStyleBackColor = true;
//
// combo_units
//
this.combo_units.FormattingEnabled = true;
resources.ApplyResources(this.combo_units, "combo_units");
this.combo_units.Name = "combo_units";
//
// label_units
//
resources.ApplyResources(this.label_units, "label_units");
this.label_units.Name = "label_units";
//
// combo_Coord
//
this.combo_Coord.FormattingEnabled = true;
resources.ApplyResources(this.combo_Coord, "combo_Coord");
this.combo_Coord.Name = "combo_Coord";
//
// label_Coord
//
resources.ApplyResources(this.label_Coord, "label_Coord");
this.label_Coord.Name = "label_Coord";
//
// combo_lineScale
//
this.combo_lineScale.FormattingEnabled = true;
resources.ApplyResources(this.combo_lineScale, "combo_lineScale");
this.combo_lineScale.Name = "combo_lineScale";
//
// label_lineScale
//
resources.ApplyResources(this.label_lineScale, "label_lineScale");
this.label_lineScale.Name = "label_lineScale";
//
// combo_layAndProp
//
this.combo_layAndProp.FormattingEnabled = true;
resources.ApplyResources(this.combo_layAndProp, "combo_layAndProp");
this.combo_layAndProp.Name = "combo_layAndProp";
//
// label_layAndProp
//
resources.ApplyResources(this.label_layAndProp, "label_layAndProp");
this.label_layAndProp.Name = "label_layAndProp";
//
// Help
//
resources.ApplyResources(this.Help, "Help");
this.Help.Name = "Help";
this.Help.TabStop = true;
this.Help.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.Help_LinkClicked);
//
// DialogExportOptions
//
this.AcceptButton = this.button_OK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.button_Cancel;
this.Controls.Add(this.Help);
this.Controls.Add(this.button_Cancel);
this.Controls.Add(this.button_OK);
this.Controls.Add(this.groupBox1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DialogExportOptions";
this.Load += new System.EventHandler(this.DialogExportOptions_Load);
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button_Cancel;
private System.Windows.Forms.Button button_OK;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.ComboBox combo_layMap;
private System.Windows.Forms.Label label_layMap;
private System.Windows.Forms.CheckBox check_exportRooms;
private System.Windows.Forms.ComboBox combo_units;
private System.Windows.Forms.Label label_units;
private System.Windows.Forms.ComboBox combo_Coord;
private System.Windows.Forms.Label label_Coord;
private System.Windows.Forms.ComboBox combo_lineScale;
private System.Windows.Forms.Label label_lineScale;
private System.Windows.Forms.ComboBox combo_layAndProp;
private System.Windows.Forms.Label label_layAndProp;
private System.Windows.Forms.LinkLabel Help;
}
}
@@ -0,0 +1,222 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Windows.Forms;
using Autodesk.Revit.DB;
using REX.Common;
using Autodesk.REX.Framework;
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
/// <summary>
/// Export option dialog class
/// </summary>
public partial class DialogExportOptions : REXExtensionForm
{
int m_layMap;
int m_lineScale;
int m_units;
int m_layAndProp;
int m_coord;
bool m_exportRooms;
public DialogExportOptions(REXExtension argExt) : base(argExt)
{
InitializeComponent();
init();
}
public void init()
{
combo_layMap.Items.Add(Resources.Strings.Texts.Default);
combo_layMap.Items.Add(Resources.Strings.Texts.AIA);
combo_layMap.Items.Add(Resources.Strings.Texts.CP38);
combo_layMap.Items.Add(Resources.Strings.Texts.BS1192);
combo_layMap.Items.Add(Resources.Strings.Texts.ISO13567);
combo_layMap.SelectedIndex = 0;
combo_lineScale.Items.Add(Resources.Strings.Texts.ModelSpace);
combo_lineScale.Items.Add(Resources.Strings.Texts.PaperSpace);
combo_lineScale.Items.Add(Resources.Strings.Texts.ViewScale);
combo_lineScale.SelectedIndex = 0;
combo_units.Items.Add(Resources.Strings.Texts.Milimiter);
combo_units.Items.Add(Resources.Strings.Texts.Centimeter);
combo_units.Items.Add(Resources.Strings.Texts.Meter);
combo_units.Items.Add(Resources.Strings.Texts.Inch);
combo_units.Items.Add(Resources.Strings.Texts.Foot);
if (ThisExtension.Revit.CommandData().Application.ActiveUIDocument.Document.DisplayUnitSystem == Autodesk.Revit.DB.DisplayUnit.METRIC)
combo_units.SelectedIndex = 2;
else
combo_units.SelectedIndex = 4;
combo_layAndProp.Items.Add(Resources.Strings.Texts.ByEntity);
combo_layAndProp.Items.Add(Resources.Strings.Texts.ByLayer);
combo_layAndProp.Items.Add(Resources.Strings.Texts.NewLayer);
combo_layAndProp.SelectedIndex = 0;
combo_Coord.Items.Add(Resources.Strings.Texts.ProjectInternal);
combo_Coord.Items.Add(Resources.Strings.Texts.Shared);
combo_Coord.SelectedIndex = 0;
check_exportRooms.Checked = false;
m_coord = combo_Coord.SelectedIndex;
m_layAndProp = combo_layAndProp.SelectedIndex;
m_layMap = combo_layMap.SelectedIndex;
m_lineScale = combo_lineScale.SelectedIndex;
m_units = combo_units.SelectedIndex;
m_exportRooms = check_exportRooms.Checked;
this.Icon = ThisExtension.GetIcon();
}
private void button_OK_Click(object sender, EventArgs e)
{
m_coord = combo_Coord.SelectedIndex;
m_layAndProp = combo_layAndProp.SelectedIndex;
m_layMap = combo_layMap.SelectedIndex;
m_lineScale = combo_lineScale.SelectedIndex;
m_units = combo_units.SelectedIndex;
m_exportRooms = check_exportRooms.Checked;
this.Hide();
}
private void button_Cancel_Click(object sender, EventArgs e)
{
this.Hide();
}
private void DialogExportOptions_Load(object sender, EventArgs e)
{
combo_Coord.SelectedIndex = m_coord;
combo_layAndProp.SelectedIndex = m_layAndProp;
combo_layMap.SelectedIndex = m_layMap;
combo_lineScale.SelectedIndex = m_lineScale;
combo_units.SelectedIndex = m_units;
check_exportRooms.Checked = m_exportRooms;
}
public DWGExportOptions GetExportOptions(bool argCopy)
{
DWGExportOptions setDwg = new DWGExportOptions();
switch (m_units)
{
case 0:
setDwg.TargetUnit = Autodesk.Revit.DB.ExportUnit.Millimeter;
break;
case 1:
setDwg.TargetUnit = Autodesk.Revit.DB.ExportUnit.Centimeter;
break;
case 2:
setDwg.TargetUnit = Autodesk.Revit.DB.ExportUnit.Meter;
break;
case 3:
setDwg.TargetUnit = Autodesk.Revit.DB.ExportUnit.Inch;
break;
case 4:
setDwg.TargetUnit = Autodesk.Revit.DB.ExportUnit.Foot;
break;
default:
setDwg.TargetUnit = Autodesk.Revit.DB.ExportUnit.Foot;
break;
}
switch (m_lineScale)
{
case 0:
setDwg.LineScaling = Autodesk.Revit.DB.LineScaling.ModelSpace;
break;
case 1:
setDwg.LineScaling = Autodesk.Revit.DB.LineScaling.PaperSpace;
break;
case 2:
setDwg.LineScaling = Autodesk.Revit.DB.LineScaling.ViewScale;
break;
}
setDwg.LayerMapping = combo_layMap.SelectedItem.ToString();
switch (m_layAndProp)
{
case 0:
setDwg.PropOverrides = Autodesk.Revit.DB.PropOverrideMode.ByEntity;
break;
case 1:
setDwg.PropOverrides = Autodesk.Revit.DB.PropOverrideMode.ByLayer;
break;
case 2:
setDwg.PropOverrides = Autodesk.Revit.DB.PropOverrideMode.NewLayer;
break;
}
setDwg.ExportingAreas = m_exportRooms;
if (argCopy)
{
switch (m_coord)
{
case 0:
setDwg.SharedCoords = false;
break;
case 1:
setDwg.SharedCoords = true;
break;
}
}
setDwg.ExportOfSolids = Autodesk.Revit.DB.SolidGeometry.Polymesh;
return setDwg;
}
public Autodesk.Revit.DB.ImportUnit GetExportUnits(bool argCopy)
{
switch (m_units)
{
case 0:
return Autodesk.Revit.DB.ImportUnit.Millimeter;
case 1:
return Autodesk.Revit.DB.ImportUnit.Centimeter;
case 2:
return Autodesk.Revit.DB.ImportUnit.Meter;
case 3:
return Autodesk.Revit.DB.ImportUnit.Inch;
case 4:
return Autodesk.Revit.DB.ImportUnit.Foot;
default:
return Autodesk.Revit.DB.ImportUnit.Foot;
}
}
private void Help_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
REXCommand Cmd = new REXCommand(REXCommandType.Help);
ThisExtension.Command(ref Cmd);
}
}
}
@@ -0,0 +1,522 @@
<?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="button_Cancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_Cancel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="button_Cancel.Location" type="System.Drawing.Point, System.Drawing">
<value>231, 266</value>
</data>
<data name="button_Cancel.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="button_Cancel.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="button_Cancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="&gt;&gt;button_Cancel.Name" xml:space="preserve">
<value>button_Cancel</value>
</data>
<data name="&gt;&gt;button_Cancel.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_Cancel.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_Cancel.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="button_OK.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_OK.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_OK.Location" type="System.Drawing.Point, System.Drawing">
<value>150, 266</value>
</data>
<data name="button_OK.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="button_OK.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="button_OK.Text" xml:space="preserve">
<value>OK</value>
</data>
<data name="&gt;&gt;button_OK.Name" xml:space="preserve">
<value>button_OK</value>
</data>
<data name="&gt;&gt;button_OK.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_OK.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_OK.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="combo_layMap.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 72</value>
</data>
<data name="combo_layMap.Size" type="System.Drawing.Size, System.Drawing">
<value>281, 21</value>
</data>
<data name="combo_layMap.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="&gt;&gt;combo_layMap.Name" xml:space="preserve">
<value>combo_layMap</value>
</data>
<data name="&gt;&gt;combo_layMap.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;combo_layMap.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;combo_layMap.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="label_layMap.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_layMap.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 56</value>
</data>
<data name="label_layMap.Size" type="System.Drawing.Size, System.Drawing">
<value>133, 13</value>
</data>
<data name="label_layMap.TabIndex" type="System.Int32, mscorlib">
<value>19</value>
</data>
<data name="label_layMap.Text" xml:space="preserve">
<value>Layer export standard:</value>
</data>
<data name="&gt;&gt;label_layMap.Name" xml:space="preserve">
<value>label_layMap</value>
</data>
<data name="&gt;&gt;label_layMap.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_layMap.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;label_layMap.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="check_exportRooms.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="check_exportRooms.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 219</value>
</data>
<data name="check_exportRooms.Size" type="System.Drawing.Size, System.Drawing">
<value>272, 17</value>
</data>
<data name="check_exportRooms.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="check_exportRooms.Text" xml:space="preserve">
<value>Export rooms and areas as polylines</value>
</data>
<data name="&gt;&gt;check_exportRooms.Name" xml:space="preserve">
<value>check_exportRooms</value>
</data>
<data name="&gt;&gt;check_exportRooms.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;check_exportRooms.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;check_exportRooms.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="combo_units.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 192</value>
</data>
<data name="combo_units.Size" type="System.Drawing.Size, System.Drawing">
<value>281, 21</value>
</data>
<data name="combo_units.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="&gt;&gt;combo_units.Name" xml:space="preserve">
<value>combo_units</value>
</data>
<data name="&gt;&gt;combo_units.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;combo_units.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;combo_units.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="label_units.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_units.Location" type="System.Drawing.Point, System.Drawing">
<value>3, 176</value>
</data>
<data name="label_units.Size" type="System.Drawing.Size, System.Drawing">
<value>110, 13</value>
</data>
<data name="label_units.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="label_units.Text" xml:space="preserve">
<value>DWG file units:</value>
</data>
<data name="&gt;&gt;label_units.Name" xml:space="preserve">
<value>label_units</value>
</data>
<data name="&gt;&gt;label_units.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_units.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;label_units.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="combo_Coord.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 152</value>
</data>
<data name="combo_Coord.Size" type="System.Drawing.Size, System.Drawing">
<value>281, 21</value>
</data>
<data name="combo_Coord.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="&gt;&gt;combo_Coord.Name" xml:space="preserve">
<value>combo_Coord</value>
</data>
<data name="&gt;&gt;combo_Coord.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;combo_Coord.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;combo_Coord.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="label_Coord.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_Coord.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 136</value>
</data>
<data name="label_Coord.Size" type="System.Drawing.Size, System.Drawing">
<value>115, 13</value>
</data>
<data name="label_Coord.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="label_Coord.Text" xml:space="preserve">
<value>Coordinate system:</value>
</data>
<data name="&gt;&gt;label_Coord.Name" xml:space="preserve">
<value>label_Coord</value>
</data>
<data name="&gt;&gt;label_Coord.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_Coord.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;label_Coord.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="combo_lineScale.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 112</value>
</data>
<data name="combo_lineScale.Size" type="System.Drawing.Size, System.Drawing">
<value>281, 21</value>
</data>
<data name="combo_lineScale.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="&gt;&gt;combo_lineScale.Name" xml:space="preserve">
<value>combo_lineScale</value>
</data>
<data name="&gt;&gt;combo_lineScale.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;combo_lineScale.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;combo_lineScale.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="label_lineScale.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_lineScale.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 96</value>
</data>
<data name="label_lineScale.Size" type="System.Drawing.Size, System.Drawing">
<value>82, 13</value>
</data>
<data name="label_lineScale.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="label_lineScale.Text" xml:space="preserve">
<value>Line scaling:</value>
</data>
<data name="&gt;&gt;label_lineScale.Name" xml:space="preserve">
<value>label_lineScale</value>
</data>
<data name="&gt;&gt;label_lineScale.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_lineScale.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;label_lineScale.ZOrder" xml:space="preserve">
<value>8</value>
</data>
<data name="combo_layAndProp.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 32</value>
</data>
<data name="combo_layAndProp.Size" type="System.Drawing.Size, System.Drawing">
<value>281, 21</value>
</data>
<data name="combo_layAndProp.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="&gt;&gt;combo_layAndProp.Name" xml:space="preserve">
<value>combo_layAndProp</value>
</data>
<data name="&gt;&gt;combo_layAndProp.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;combo_layAndProp.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;combo_layAndProp.ZOrder" xml:space="preserve">
<value>9</value>
</data>
<data name="label_layAndProp.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_layAndProp.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 16</value>
</data>
<data name="label_layAndProp.Size" type="System.Drawing.Size, System.Drawing">
<value>117, 13</value>
</data>
<data name="label_layAndProp.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="label_layAndProp.Text" xml:space="preserve">
<value>Layers and properties:</value>
</data>
<data name="&gt;&gt;label_layAndProp.Name" xml:space="preserve">
<value>label_layAndProp</value>
</data>
<data name="&gt;&gt;label_layAndProp.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_layAndProp.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;label_layAndProp.ZOrder" xml:space="preserve">
<value>10</value>
</data>
<data name="groupBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>13, 12</value>
</data>
<data name="groupBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>293, 242</value>
</data>
<data name="groupBox1.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;groupBox1.Name" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;groupBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;groupBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;groupBox1.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="Help.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom</value>
</data>
<data name="Help.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="Help.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="Help.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 271</value>
</data>
<data name="Help.Size" type="System.Drawing.Size, System.Drawing">
<value>40, 13</value>
</data>
<data name="Help.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
</data>
<data name="Help.Text" xml:space="preserve">
<value>Help</value>
</data>
<data name="&gt;&gt;Help.Name" xml:space="preserve">
<value>Help</value>
</data>
<data name="&gt;&gt;Help.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;Help.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;Help.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>318, 301</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Export Options</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>DialogExportOptions</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>REX.Common.REXExtensionForm, DRevitFreezeDrawing, Version=1.0.0.182, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
@@ -0,0 +1,117 @@
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
partial class DialogMessageExists
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DialogMessageExists));
this.label1 = new System.Windows.Forms.Label();
this.label_Overwrite = new System.Windows.Forms.Label();
this.button_ReplaceAll = new System.Windows.Forms.Button();
this.button_Replace = new System.Windows.Forms.Button();
this.button_Leave = new System.Windows.Forms.Button();
this.button_LeaveAll = new System.Windows.Forms.Button();
this.label_File = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// label1
//
resources.ApplyResources(this.label1, "label1");
this.label1.Name = "label1";
//
// label_Overwrite
//
resources.ApplyResources(this.label_Overwrite, "label_Overwrite");
this.label_Overwrite.Name = "label_Overwrite";
//
// button_ReplaceAll
//
resources.ApplyResources(this.button_ReplaceAll, "button_ReplaceAll");
this.button_ReplaceAll.Name = "button_ReplaceAll";
this.button_ReplaceAll.UseVisualStyleBackColor = true;
this.button_ReplaceAll.Click += new System.EventHandler(this.button_ReplaceAll_Click);
//
// button_Replace
//
resources.ApplyResources(this.button_Replace, "button_Replace");
this.button_Replace.Name = "button_Replace";
this.button_Replace.UseVisualStyleBackColor = true;
this.button_Replace.Click += new System.EventHandler(this.button_Replace_Click);
//
// button_Leave
//
resources.ApplyResources(this.button_Leave, "button_Leave");
this.button_Leave.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button_Leave.Name = "button_Leave";
this.button_Leave.UseVisualStyleBackColor = true;
this.button_Leave.Click += new System.EventHandler(this.button_Leave_Click);
//
// button_LeaveAll
//
resources.ApplyResources(this.button_LeaveAll, "button_LeaveAll");
this.button_LeaveAll.Name = "button_LeaveAll";
this.button_LeaveAll.UseVisualStyleBackColor = true;
this.button_LeaveAll.Click += new System.EventHandler(this.button_LeaveAll_Click);
//
// label_File
//
resources.ApplyResources(this.label_File, "label_File");
this.label_File.Name = "label_File";
//
// DialogMessageExists
//
this.AcceptButton = this.button_Replace;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.button_Leave;
this.Controls.Add(this.label_File);
this.Controls.Add(this.button_LeaveAll);
this.Controls.Add(this.button_Leave);
this.Controls.Add(this.button_Replace);
this.Controls.Add(this.button_ReplaceAll);
this.Controls.Add(this.label_Overwrite);
this.Controls.Add(this.label1);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DialogMessageExists";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Label label_Overwrite;
private System.Windows.Forms.Button button_ReplaceAll;
private System.Windows.Forms.Button button_Replace;
private System.Windows.Forms.Button button_Leave;
private System.Windows.Forms.Button button_LeaveAll;
private System.Windows.Forms.Label label_File;
}
}
@@ -0,0 +1,87 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Windows.Forms;
using REX.Common;
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
/// <summary>
/// Overwrite dialog for existing file
/// </summary>
partial class DialogMessageExists : REXExtensionForm
{
public REX.DRevitFreezeDrawing.Main.ReplaceContext Context;
public DialogMessageExists(REXExtension argExt) : base(argExt)
{
InitializeComponent();
Context = REX.DRevitFreezeDrawing.Main.ReplaceContext.Replace;
this.Icon = ThisExtension.GetIcon();
}
private void button_Replace_Click(object sender, EventArgs e)
{
Context = REX.DRevitFreezeDrawing.Main.ReplaceContext.Replace;
this.Hide();
}
private void button_Leave_Click(object sender, EventArgs e)
{
Context = REX.DRevitFreezeDrawing.Main.ReplaceContext.Leave;
this.Hide();
}
private void button_ReplaceAll_Click(object sender, EventArgs e)
{
Context = REX.DRevitFreezeDrawing.Main.ReplaceContext.ReplaceAll;
this.Hide();
}
private void button_LeaveAll_Click(object sender, EventArgs e)
{
Context = REX.DRevitFreezeDrawing.Main.ReplaceContext.LeaveAll;
this.Hide();
}
public void ShowMessageDialog(string file, IWin32Window parent)
{
label_File.Text = file + "?";
if (label_File.Width > this.Width - 20)
label_File.Text = GetFileDir(file) + "?";
this.ShowDialog(parent);
}
public string GetFileDir(string fileName)
{
int indeks1 = fileName.IndexOf("\\");
string directory = fileName.Substring(0, indeks1 + 1);
int indeks2 = fileName.LastIndexOf("\\");
string file = fileName.Substring(indeks2);
string name = directory + "..." + file;
return name;
}
}
}
@@ -0,0 +1,339 @@
<?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="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="label1.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="label1.Location" type="System.Drawing.Point, System.Drawing">
<value>132, 23</value>
</data>
<data name="label1.Size" type="System.Drawing.Size, System.Drawing">
<value>0, 13</value>
</data>
<data name="label1.TabIndex" type="System.Int32, mscorlib">
<value>24</value>
</data>
<data name="&gt;&gt;label1.Name" xml:space="preserve">
<value>label1</value>
</data>
<data name="&gt;&gt;label1.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label1.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="label_Overwrite.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_Overwrite.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 9</value>
</data>
<data name="label_Overwrite.Size" type="System.Drawing.Size, System.Drawing">
<value>40, 13</value>
</data>
<data name="label_Overwrite.TabIndex" type="System.Int32, mscorlib">
<value>26</value>
</data>
<data name="label_Overwrite.Text" xml:space="preserve">
<value>Overwrite</value>
</data>
<data name="&gt;&gt;label_Overwrite.Name" xml:space="preserve">
<value>label_Overwrite</value>
</data>
<data name="&gt;&gt;label_Overwrite.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_Overwrite.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label_Overwrite.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="button_ReplaceAll.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom</value>
</data>
<data name="button_ReplaceAll.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_ReplaceAll.Location" type="System.Drawing.Point, System.Drawing">
<value>18, 81</value>
</data>
<data name="button_ReplaceAll.Size" type="System.Drawing.Size, System.Drawing">
<value>122, 23</value>
</data>
<data name="button_ReplaceAll.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="button_ReplaceAll.Text" xml:space="preserve">
<value>Replace All</value>
</data>
<data name="&gt;&gt;button_ReplaceAll.Name" xml:space="preserve">
<value>button_ReplaceAll</value>
</data>
<data name="&gt;&gt;button_ReplaceAll.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_ReplaceAll.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_ReplaceAll.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="button_Replace.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom</value>
</data>
<data name="button_Replace.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_Replace.Location" type="System.Drawing.Point, System.Drawing">
<value>20, 52</value>
</data>
<data name="button_Replace.Size" type="System.Drawing.Size, System.Drawing">
<value>121, 23</value>
</data>
<data name="button_Replace.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="button_Replace.Text" xml:space="preserve">
<value>Overwrite</value>
</data>
<data name="&gt;&gt;button_Replace.Name" xml:space="preserve">
<value>button_Replace</value>
</data>
<data name="&gt;&gt;button_Replace.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_Replace.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_Replace.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="button_Leave.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom</value>
</data>
<data name="button_Leave.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_Leave.Location" type="System.Drawing.Point, System.Drawing">
<value>147, 52</value>
</data>
<data name="button_Leave.Size" type="System.Drawing.Size, System.Drawing">
<value>121, 23</value>
</data>
<data name="button_Leave.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="button_Leave.Text" xml:space="preserve">
<value>Skip</value>
</data>
<data name="&gt;&gt;button_Leave.Name" xml:space="preserve">
<value>button_Leave</value>
</data>
<data name="&gt;&gt;button_Leave.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_Leave.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_Leave.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="button_LeaveAll.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom</value>
</data>
<data name="button_LeaveAll.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_LeaveAll.Location" type="System.Drawing.Point, System.Drawing">
<value>147, 81</value>
</data>
<data name="button_LeaveAll.Size" type="System.Drawing.Size, System.Drawing">
<value>122, 23</value>
</data>
<data name="button_LeaveAll.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="button_LeaveAll.Text" xml:space="preserve">
<value>Skip All</value>
</data>
<data name="&gt;&gt;button_LeaveAll.Name" xml:space="preserve">
<value>button_LeaveAll</value>
</data>
<data name="&gt;&gt;button_LeaveAll.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_LeaveAll.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_LeaveAll.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="label_File.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_File.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 29</value>
</data>
<data name="label_File.Size" type="System.Drawing.Size, System.Drawing">
<value>41, 13</value>
</data>
<data name="label_File.TabIndex" type="System.Int32, mscorlib">
<value>32</value>
</data>
<data name="label_File.Text" xml:space="preserve">
<value>File .....</value>
</data>
<data name="&gt;&gt;label_File.Name" xml:space="preserve">
<value>label_File</value>
</data>
<data name="&gt;&gt;label_File.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_File.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;label_File.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>281, 116</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>DialogMessageExists</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>DialogMessageExists</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>REX.Common.REXExtensionForm, DRevitFreezeDrawing, Version=1.0.0.182, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
@@ -0,0 +1,255 @@
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
partial class DialogOptions
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DialogOptions));
this.group_Colors = new System.Windows.Forms.GroupBox();
this.radio_Invert = new System.Windows.Forms.RadioButton();
this.radio_Preserve = new System.Windows.Forms.RadioButton();
this.radio_BandW = new System.Windows.Forms.RadioButton();
this.Button_Cancel = new System.Windows.Forms.Button();
this.Button_OK = new System.Windows.Forms.Button();
this.group_Export = new System.Windows.Forms.GroupBox();
this.button_ExportOptions = new System.Windows.Forms.Button();
this.group_Copy = new System.Windows.Forms.GroupBox();
this.check_CopyDwg = new System.Windows.Forms.CheckBox();
this.button_Browse = new System.Windows.Forms.Button();
this.textBox_Browse = new System.Windows.Forms.TextBox();
this.label_Browse = new System.Windows.Forms.Label();
this.combo_Version = new System.Windows.Forms.ComboBox();
this.label_Version = new System.Windows.Forms.Label();
this.text_DwgBaseName = new System.Windows.Forms.TextBox();
this.label_DwgBaseName = new System.Windows.Forms.Label();
this.folderBrowserDialogDwg = new System.Windows.Forms.FolderBrowserDialog();
this.Help = new System.Windows.Forms.LinkLabel();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.check_Delete = new System.Windows.Forms.CheckBox();
this.group_Colors.SuspendLayout();
this.group_Export.SuspendLayout();
this.group_Copy.SuspendLayout();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// group_Colors
//
this.group_Colors.Controls.Add(this.radio_Invert);
this.group_Colors.Controls.Add(this.radio_Preserve);
this.group_Colors.Controls.Add(this.radio_BandW);
resources.ApplyResources(this.group_Colors, "group_Colors");
this.group_Colors.Name = "group_Colors";
this.group_Colors.TabStop = false;
//
// radio_Invert
//
resources.ApplyResources(this.radio_Invert, "radio_Invert");
this.radio_Invert.Name = "radio_Invert";
this.radio_Invert.TabStop = true;
this.radio_Invert.UseVisualStyleBackColor = true;
//
// radio_Preserve
//
resources.ApplyResources(this.radio_Preserve, "radio_Preserve");
this.radio_Preserve.Name = "radio_Preserve";
this.radio_Preserve.TabStop = true;
this.radio_Preserve.UseVisualStyleBackColor = true;
//
// radio_BandW
//
resources.ApplyResources(this.radio_BandW, "radio_BandW");
this.radio_BandW.Name = "radio_BandW";
this.radio_BandW.TabStop = true;
this.radio_BandW.UseVisualStyleBackColor = true;
//
// Button_Cancel
//
resources.ApplyResources(this.Button_Cancel, "Button_Cancel");
this.Button_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.Button_Cancel.Name = "Button_Cancel";
this.Button_Cancel.UseVisualStyleBackColor = true;
this.Button_Cancel.Click += new System.EventHandler(this.Button_Cancel_Click);
//
// Button_OK
//
resources.ApplyResources(this.Button_OK, "Button_OK");
this.Button_OK.Name = "Button_OK";
this.Button_OK.UseVisualStyleBackColor = true;
this.Button_OK.Click += new System.EventHandler(this.Button_OK_Click);
//
// group_Export
//
this.group_Export.Controls.Add(this.button_ExportOptions);
resources.ApplyResources(this.group_Export, "group_Export");
this.group_Export.Name = "group_Export";
this.group_Export.TabStop = false;
//
// button_ExportOptions
//
resources.ApplyResources(this.button_ExportOptions, "button_ExportOptions");
this.button_ExportOptions.Name = "button_ExportOptions";
this.button_ExportOptions.UseVisualStyleBackColor = true;
this.button_ExportOptions.Click += new System.EventHandler(this.button_ExportOptions_Click);
//
// group_Copy
//
this.group_Copy.Controls.Add(this.check_CopyDwg);
this.group_Copy.Controls.Add(this.button_Browse);
this.group_Copy.Controls.Add(this.textBox_Browse);
this.group_Copy.Controls.Add(this.label_Browse);
this.group_Copy.Controls.Add(this.combo_Version);
this.group_Copy.Controls.Add(this.label_Version);
this.group_Copy.Controls.Add(this.text_DwgBaseName);
this.group_Copy.Controls.Add(this.label_DwgBaseName);
resources.ApplyResources(this.group_Copy, "group_Copy");
this.group_Copy.Name = "group_Copy";
this.group_Copy.TabStop = false;
//
// check_CopyDwg
//
resources.ApplyResources(this.check_CopyDwg, "check_CopyDwg");
this.check_CopyDwg.Name = "check_CopyDwg";
this.check_CopyDwg.UseVisualStyleBackColor = true;
this.check_CopyDwg.CheckedChanged += new System.EventHandler(this.check_CopyDwg_CheckedChanged);
//
// button_Browse
//
resources.ApplyResources(this.button_Browse, "button_Browse");
this.button_Browse.Name = "button_Browse";
this.button_Browse.UseVisualStyleBackColor = true;
this.button_Browse.Click += new System.EventHandler(this.button_Browse_Click);
//
// textBox_Browse
//
resources.ApplyResources(this.textBox_Browse, "textBox_Browse");
this.textBox_Browse.Name = "textBox_Browse";
this.textBox_Browse.TextChanged += new System.EventHandler(this.textBox_Browse_TextChanged);
//
// label_Browse
//
resources.ApplyResources(this.label_Browse, "label_Browse");
this.label_Browse.Name = "label_Browse";
//
// combo_Version
//
this.combo_Version.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.combo_Version.FormattingEnabled = true;
resources.ApplyResources(this.combo_Version, "combo_Version");
this.combo_Version.Name = "combo_Version";
this.combo_Version.SelectedIndexChanged += new System.EventHandler(this.combo_Version_SelectedIndexChanged);
//
// label_Version
//
resources.ApplyResources(this.label_Version, "label_Version");
this.label_Version.Name = "label_Version";
//
// text_DwgBaseName
//
resources.ApplyResources(this.text_DwgBaseName, "text_DwgBaseName");
this.text_DwgBaseName.Name = "text_DwgBaseName";
this.text_DwgBaseName.TextChanged += new System.EventHandler(this.text_DwgBaseName_TextChanged);
//
// label_DwgBaseName
//
resources.ApplyResources(this.label_DwgBaseName, "label_DwgBaseName");
this.label_DwgBaseName.Name = "label_DwgBaseName";
//
// Help
//
resources.ApplyResources(this.Help, "Help");
this.Help.Name = "Help";
this.Help.TabStop = true;
this.Help.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.Help_LinkClicked);
//
// groupBox1
//
this.groupBox1.Controls.Add(this.check_Delete);
resources.ApplyResources(this.groupBox1, "groupBox1");
this.groupBox1.Name = "groupBox1";
this.groupBox1.TabStop = false;
//
// check_Delete
//
resources.ApplyResources(this.check_Delete, "check_Delete");
this.check_Delete.Name = "check_Delete";
this.check_Delete.UseVisualStyleBackColor = true;
//
// DialogOptions
//
this.AcceptButton = this.Button_OK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.Button_Cancel;
this.Controls.Add(this.groupBox1);
this.Controls.Add(this.Help);
this.Controls.Add(this.group_Copy);
this.Controls.Add(this.group_Export);
this.Controls.Add(this.Button_Cancel);
this.Controls.Add(this.Button_OK);
this.Controls.Add(this.group_Colors);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DialogOptions";
this.Load += new System.EventHandler(this.DialogOptions_Load);
this.group_Colors.ResumeLayout(false);
this.group_Colors.PerformLayout();
this.group_Export.ResumeLayout(false);
this.group_Copy.ResumeLayout(false);
this.group_Copy.PerformLayout();
this.groupBox1.ResumeLayout(false);
this.groupBox1.PerformLayout();
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.GroupBox group_Colors;
private System.Windows.Forms.RadioButton radio_Invert;
private System.Windows.Forms.RadioButton radio_Preserve;
private System.Windows.Forms.RadioButton radio_BandW;
private System.Windows.Forms.Button Button_Cancel;
private System.Windows.Forms.Button Button_OK;
private System.Windows.Forms.GroupBox group_Export;
private System.Windows.Forms.GroupBox group_Copy;
private System.Windows.Forms.Button button_Browse;
private System.Windows.Forms.TextBox textBox_Browse;
private System.Windows.Forms.Label label_Browse;
private System.Windows.Forms.ComboBox combo_Version;
private System.Windows.Forms.Label label_Version;
private System.Windows.Forms.TextBox text_DwgBaseName;
private System.Windows.Forms.Label label_DwgBaseName;
private System.Windows.Forms.CheckBox check_CopyDwg;
private System.Windows.Forms.FolderBrowserDialog folderBrowserDialogDwg;
private System.Windows.Forms.Button button_ExportOptions;
private System.Windows.Forms.LinkLabel Help;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.CheckBox check_Delete;
}
}
@@ -0,0 +1,292 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Drawing;
using System.Windows.Forms;
using global::System.IO;
using REX.Common;
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
/// <summary>
/// Option dialog class
/// </summary>
partial class DialogOptions : REXExtensionForm
{
private Autodesk.Revit.DB.ImportColorMode m_ColMode;
string m_Directory;
string m_ProjectName;
int m_ComboVersionItem;
string m_SavedDirectory;
string m_SavedProjectName;
int m_SavedComboVersionItem;
bool m_CopyCheck;
bool m_CopyCheckNow;
bool m_deleteViews;
//**********************************************************************
public Autodesk.Revit.DB.ImportColorMode ColMode
{
get
{
return m_ColMode;
}
}
//**********************************************************************
public string Browse
{
get
{
return m_SavedDirectory;
}
}
//**********************************************************************
public string BaseName
{
get
{
return m_SavedProjectName;
}
}
//**********************************************************************
public bool Copy
{
get
{
return m_CopyCheck;
}
}
//**********************************************************************
public bool CopyNow
{
get
{
return m_CopyCheckNow;
}
}
//**********************************************************************
public bool DeleteView
{
get
{
return m_deleteViews;
}
}
//**********************************************************************
public DialogOptions(REXExtension argExt) : base(argExt)
{
InitializeComponent();
Init();
}
//**********************************************************************
private void Init()
{
radio_BandW.Checked = true;
m_ColMode = Autodesk.Revit.DB.ImportColorMode.BlackAndWhite;
//folderBrowser
string path = ((Data)(ThisExtension.GetData())).OptionPath;
if (!Directory.Exists(path))
path = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
folderBrowserDialogDwg.SelectedPath = path;
m_Directory = folderBrowserDialogDwg.SelectedPath;
m_SavedDirectory = m_Directory;
folderBrowserDialogDwg.Description = Resources.Strings.Texts.ChooseFolder;
//combo version
combo_Version.Items.Add("2000");
combo_Version.Items.Add("2004");
combo_Version.Items.Add("2007");
m_ComboVersionItem = 2;
m_SavedComboVersionItem = 2;
check_CopyDwg.Checked = false;
m_CopyCheck = false;
CopyCheckChange(false);
m_deleteViews = false;
check_Delete.Checked = false;
this.Icon = ThisExtension.GetIcon();
}
//**********************************************************************
public void SetProjectName(string name)
{
m_ProjectName = name;
m_SavedProjectName = name;
}
//***********************************************************************
public Autodesk.Revit.DB.ACADVersion GetVersion()
{
//if (m_SavedComboVersionItem == 0)
// return Autodesk.Revit.DB.ACADVersion.R2000;
//else if (m_SavedComboVersionItem == 1)
// return Autodesk.Revit.DB.ACADVersion.R2004;
//else
return Autodesk.Revit.DB.ACADVersion.R2007;
}
//**********************************************************************
private void Button_OK_Click(object sender, EventArgs e)
{
if (radio_BandW.Checked)
m_ColMode = Autodesk.Revit.DB.ImportColorMode.BlackAndWhite;
else if (radio_Preserve.Checked)
m_ColMode = Autodesk.Revit.DB.ImportColorMode.Preserved;
else
m_ColMode = Autodesk.Revit.DB.ImportColorMode.Inverted;
m_CopyCheck = check_CopyDwg.Checked;
m_SavedComboVersionItem = m_ComboVersionItem;
m_SavedDirectory = m_Directory;
m_SavedProjectName = m_ProjectName;
m_deleteViews = check_Delete.Checked;
this.Hide();
}
//**********************************************************************
private void DialogOptions_Load(object sender, EventArgs e)
{
if (m_ColMode == Autodesk.Revit.DB.ImportColorMode.BlackAndWhite)
radio_BandW.Checked = true;
else if (m_ColMode == Autodesk.Revit.DB.ImportColorMode.Preserved)
radio_Preserve.Checked = true;
else
radio_Invert.Checked = true;
check_CopyDwg.Checked = m_CopyCheck;
m_ComboVersionItem = m_SavedComboVersionItem;
m_Directory = m_SavedDirectory;
m_ProjectName = m_SavedProjectName;
CopyCheckChange(m_CopyCheck);
check_Delete.Checked = m_deleteViews;
}
//**********************************************************************
private void Button_Cancel_Click(object sender, EventArgs e)
{
this.Hide();
}
//**********************************************************************
private void button_Browse_Click(object sender, EventArgs e)
{
folderBrowserDialogDwg.SelectedPath = textBox_Browse.Text;
folderBrowserDialogDwg.ShowDialog();
m_Directory = folderBrowserDialogDwg.SelectedPath;
textBox_Browse.Text = m_Directory;
}
//**********************************************************************
private void CopyCheckChange(bool argCheck)
{
if (argCheck)
{
label_Browse.Enabled = true;
label_DwgBaseName.Enabled = true;
label_Version.Enabled = true;
button_Browse.Enabled = true;
textBox_Browse.Enabled = true;
textBox_Browse.BackColor = SystemColors.Window;
textBox_Browse.Text = m_Directory;
text_DwgBaseName.Enabled = true;
text_DwgBaseName.BackColor = SystemColors.Window;
text_DwgBaseName.Text = m_ProjectName;
combo_Version.Enabled = true;
combo_Version.SelectedIndex = m_ComboVersionItem;
}
else
{
label_Browse.Enabled = false;
label_DwgBaseName.Enabled = false;
label_Version.Enabled = false;
button_Browse.Enabled = false;
textBox_Browse.Enabled = false;
textBox_Browse.BackColor = SystemColors.Control;
textBox_Browse.Text = "";
text_DwgBaseName.Enabled = false;
text_DwgBaseName.BackColor = SystemColors.Control;
text_DwgBaseName.Text = "";
combo_Version.Enabled = false;
combo_Version.SelectedIndex = -1;
}
}
//**********************************************************************
private void check_CopyDwg_CheckedChanged(object sender, EventArgs e)
{
CopyCheckChange(check_CopyDwg.Checked);
m_CopyCheckNow = check_CopyDwg.Checked;
}
//**********************************************************************
private void text_DwgBaseName_TextChanged(object sender, EventArgs e)
{
if (check_CopyDwg.Checked)
m_ProjectName = text_DwgBaseName.Text;
}
//**********************************************************************
private void textBox_Browse_TextChanged(object sender, EventArgs e)
{
if (check_CopyDwg.Checked)
m_Directory = textBox_Browse.Text;
}
//**********************************************************************
private void combo_Version_SelectedIndexChanged(object sender, EventArgs e)
{
if (check_CopyDwg.Checked)
m_ComboVersionItem = combo_Version.SelectedIndex;
}
//**********************************************************************
private void button_ExportOptions_Click(object sender, EventArgs e)
{
((Extension)ThisExtension).ShowExportOptionsDialog();
}
//**********************************************************************
public Autodesk.Revit.DB.DWGImportOptions GetImportOptions()
{
Autodesk.Revit.DB.DWGImportOptions dwgImpOpt = new Autodesk.Revit.DB.DWGImportOptions();
dwgImpOpt.ColorMode = m_ColMode;
dwgImpOpt.Placement = Autodesk.Revit.DB.ImportPlacement.Origin;
dwgImpOpt.OrientToView = true;
dwgImpOpt.VisibleLayersOnly = false;
return dwgImpOpt;
}
private void Help_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
// help will be launched directly from path related to exe file
string filePath = new Uri(System.Reflection.Assembly.GetExecutingAssembly().CodeBase).LocalPath;
var path = System.IO.Path.Combine(System.IO.Path.GetDirectoryName(filePath), @"en-US\Help\contexthelp\DREVITFREEZEDRAWING.htm");
System.Diagnostics.Process.Start(path);
//REXCommand Cmd = new REXCommand(REXCommandType.Help);
//ThisExtension.Command(ref Cmd);
}
}
}
@@ -0,0 +1,687 @@
<?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="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="radio_Invert.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="radio_Invert.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 66</value>
</data>
<data name="radio_Invert.Size" type="System.Drawing.Size, System.Drawing">
<value>62, 17</value>
</data>
<data name="radio_Invert.TabIndex" type="System.Int32, mscorlib">
<value>6</value>
</data>
<data name="radio_Invert.Text" xml:space="preserve">
<value>Invert</value>
</data>
<data name="&gt;&gt;radio_Invert.Name" xml:space="preserve">
<value>radio_Invert</value>
</data>
<data name="&gt;&gt;radio_Invert.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;radio_Invert.Parent" xml:space="preserve">
<value>group_Colors</value>
</data>
<data name="&gt;&gt;radio_Invert.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="radio_Preserve.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="radio_Preserve.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 43</value>
</data>
<data name="radio_Preserve.Size" type="System.Drawing.Size, System.Drawing">
<value>72, 17</value>
</data>
<data name="radio_Preserve.TabIndex" type="System.Int32, mscorlib">
<value>5</value>
</data>
<data name="radio_Preserve.Text" xml:space="preserve">
<value>Preserve</value>
</data>
<data name="&gt;&gt;radio_Preserve.Name" xml:space="preserve">
<value>radio_Preserve</value>
</data>
<data name="&gt;&gt;radio_Preserve.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;radio_Preserve.Parent" xml:space="preserve">
<value>group_Colors</value>
</data>
<data name="&gt;&gt;radio_Preserve.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="radio_BandW.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="radio_BandW.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 20</value>
</data>
<data name="radio_BandW.Size" type="System.Drawing.Size, System.Drawing">
<value>85, 17</value>
</data>
<data name="radio_BandW.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="radio_BandW.Text" xml:space="preserve">
<value>Black and white</value>
</data>
<data name="&gt;&gt;radio_BandW.Name" xml:space="preserve">
<value>radio_BandW</value>
</data>
<data name="&gt;&gt;radio_BandW.Type" xml:space="preserve">
<value>System.Windows.Forms.RadioButton, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;radio_BandW.Parent" xml:space="preserve">
<value>group_Colors</value>
</data>
<data name="&gt;&gt;radio_BandW.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="group_Colors.Location" type="System.Drawing.Point, System.Drawing">
<value>183, 12</value>
</data>
<data name="group_Colors.Size" type="System.Drawing.Size, System.Drawing">
<value>154, 95</value>
</data>
<data name="group_Colors.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="group_Colors.Text" xml:space="preserve">
<value>Import colors</value>
</data>
<data name="&gt;&gt;group_Colors.Name" xml:space="preserve">
<value>group_Colors</value>
</data>
<data name="&gt;&gt;group_Colors.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;group_Colors.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;group_Colors.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="Button_Cancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="Button_Cancel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="Button_Cancel.Location" type="System.Drawing.Point, System.Drawing">
<value>264, 244</value>
</data>
<data name="Button_Cancel.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="Button_Cancel.TabIndex" type="System.Int32, mscorlib">
<value>16</value>
</data>
<data name="Button_Cancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="&gt;&gt;Button_Cancel.Name" xml:space="preserve">
<value>Button_Cancel</value>
</data>
<data name="&gt;&gt;Button_Cancel.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;Button_Cancel.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;Button_Cancel.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="Button_OK.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="Button_OK.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="Button_OK.Location" type="System.Drawing.Point, System.Drawing">
<value>183, 244</value>
</data>
<data name="Button_OK.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="Button_OK.TabIndex" type="System.Int32, mscorlib">
<value>15</value>
</data>
<data name="Button_OK.Text" xml:space="preserve">
<value>OK</value>
</data>
<data name="&gt;&gt;Button_OK.Name" xml:space="preserve">
<value>Button_OK</value>
</data>
<data name="&gt;&gt;Button_OK.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;Button_OK.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;Button_OK.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="button_ExportOptions.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_ExportOptions.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_ExportOptions.Location" type="System.Drawing.Point, System.Drawing">
<value>46, 19</value>
</data>
<data name="button_ExportOptions.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="button_ExportOptions.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="button_ExportOptions.Text" xml:space="preserve">
<value>Options...</value>
</data>
<data name="&gt;&gt;button_ExportOptions.Name" xml:space="preserve">
<value>button_ExportOptions</value>
</data>
<data name="&gt;&gt;button_ExportOptions.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_ExportOptions.Parent" xml:space="preserve">
<value>group_Export</value>
</data>
<data name="&gt;&gt;button_ExportOptions.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="group_Export.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 12</value>
</data>
<data name="group_Export.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 48</value>
</data>
<data name="group_Export.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="group_Export.Text" xml:space="preserve">
<value>Export</value>
</data>
<data name="&gt;&gt;group_Export.Name" xml:space="preserve">
<value>group_Export</value>
</data>
<data name="&gt;&gt;group_Export.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;group_Export.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;group_Export.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="check_CopyDwg.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="check_CopyDwg.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 19</value>
</data>
<data name="check_CopyDwg.Size" type="System.Drawing.Size, System.Drawing">
<value>144, 17</value>
</data>
<data name="check_CopyDwg.TabIndex" type="System.Int32, mscorlib">
<value>10</value>
</data>
<data name="check_CopyDwg.Text" xml:space="preserve">
<value>Copy DWG to folder</value>
</data>
<data name="&gt;&gt;check_CopyDwg.Name" xml:space="preserve">
<value>check_CopyDwg</value>
</data>
<data name="&gt;&gt;check_CopyDwg.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;check_CopyDwg.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;check_CopyDwg.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="button_Browse.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_Browse.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_Browse.Location" type="System.Drawing.Point, System.Drawing">
<value>282, 93</value>
</data>
<data name="button_Browse.Size" type="System.Drawing.Size, System.Drawing">
<value>37, 23</value>
</data>
<data name="button_Browse.TabIndex" type="System.Int32, mscorlib">
<value>14</value>
</data>
<data name="button_Browse.Text" xml:space="preserve">
<value>...</value>
</data>
<data name="&gt;&gt;button_Browse.Name" xml:space="preserve">
<value>button_Browse</value>
</data>
<data name="&gt;&gt;button_Browse.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_Browse.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;button_Browse.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="textBox_Browse.Location" type="System.Drawing.Point, System.Drawing">
<value>96, 95</value>
</data>
<data name="textBox_Browse.Size" type="System.Drawing.Size, System.Drawing">
<value>180, 20</value>
</data>
<data name="textBox_Browse.TabIndex" type="System.Int32, mscorlib">
<value>13</value>
</data>
<data name="textBox_Browse.Text" xml:space="preserve">
<value>REX\Modules\DFreezing</value>
</data>
<data name="&gt;&gt;textBox_Browse.Name" xml:space="preserve">
<value>textBox_Browse</value>
</data>
<data name="&gt;&gt;textBox_Browse.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;textBox_Browse.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;textBox_Browse.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="label_Browse.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_Browse.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 98</value>
</data>
<data name="label_Browse.Size" type="System.Drawing.Size, System.Drawing">
<value>46, 13</value>
</data>
<data name="label_Browse.TabIndex" type="System.Int32, mscorlib">
<value>4</value>
</data>
<data name="label_Browse.Text" xml:space="preserve">
<value>Folder:</value>
</data>
<data name="&gt;&gt;label_Browse.Name" xml:space="preserve">
<value>label_Browse</value>
</data>
<data name="&gt;&gt;label_Browse.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_Browse.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;label_Browse.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="combo_Version.Location" type="System.Drawing.Point, System.Drawing">
<value>96, 68</value>
</data>
<data name="combo_Version.Size" type="System.Drawing.Size, System.Drawing">
<value>180, 21</value>
</data>
<data name="combo_Version.TabIndex" type="System.Int32, mscorlib">
<value>12</value>
</data>
<data name="&gt;&gt;combo_Version.Name" xml:space="preserve">
<value>combo_Version</value>
</data>
<data name="&gt;&gt;combo_Version.Type" xml:space="preserve">
<value>System.Windows.Forms.ComboBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;combo_Version.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;combo_Version.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="label_Version.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_Version.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 71</value>
</data>
<data name="label_Version.Size" type="System.Drawing.Size, System.Drawing">
<value>43, 13</value>
</data>
<data name="label_Version.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="label_Version.Text" xml:space="preserve">
<value>Version</value>
</data>
<data name="&gt;&gt;label_Version.Name" xml:space="preserve">
<value>label_Version</value>
</data>
<data name="&gt;&gt;label_Version.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_Version.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;label_Version.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="text_DwgBaseName.Location" type="System.Drawing.Point, System.Drawing">
<value>96, 42</value>
</data>
<data name="text_DwgBaseName.Size" type="System.Drawing.Size, System.Drawing">
<value>180, 20</value>
</data>
<data name="text_DwgBaseName.TabIndex" type="System.Int32, mscorlib">
<value>11</value>
</data>
<data name="text_DwgBaseName.Text" xml:space="preserve">
<value>project name</value>
</data>
<data name="&gt;&gt;text_DwgBaseName.Name" xml:space="preserve">
<value>text_DwgBaseName</value>
</data>
<data name="&gt;&gt;text_DwgBaseName.Type" xml:space="preserve">
<value>System.Windows.Forms.TextBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;text_DwgBaseName.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;text_DwgBaseName.ZOrder" xml:space="preserve">
<value>6</value>
</data>
<data name="label_DwgBaseName.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="label_DwgBaseName.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 45</value>
</data>
<data name="label_DwgBaseName.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 13</value>
</data>
<data name="label_DwgBaseName.TabIndex" type="System.Int32, mscorlib">
<value>0</value>
</data>
<data name="label_DwgBaseName.Text" xml:space="preserve">
<value>Basic name:</value>
</data>
<data name="&gt;&gt;label_DwgBaseName.Name" xml:space="preserve">
<value>label_DwgBaseName</value>
</data>
<data name="&gt;&gt;label_DwgBaseName.Type" xml:space="preserve">
<value>System.Windows.Forms.Label, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;label_DwgBaseName.Parent" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;label_DwgBaseName.ZOrder" xml:space="preserve">
<value>7</value>
</data>
<data name="group_Copy.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 112</value>
</data>
<data name="group_Copy.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>8, 8, 8, 8</value>
</data>
<data name="group_Copy.Size" type="System.Drawing.Size, System.Drawing">
<value>325, 121</value>
</data>
<data name="group_Copy.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="group_Copy.Text" xml:space="preserve">
<value>Files</value>
</data>
<data name="&gt;&gt;group_Copy.Name" xml:space="preserve">
<value>group_Copy</value>
</data>
<data name="&gt;&gt;group_Copy.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;group_Copy.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;group_Copy.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<metadata name="folderBrowserDialogDwg.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<data name="Help.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Left</value>
</data>
<data name="Help.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="Help.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="Help.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 249</value>
</data>
<data name="Help.Size" type="System.Drawing.Size, System.Drawing">
<value>40, 13</value>
</data>
<data name="Help.TabIndex" type="System.Int32, mscorlib">
<value>17</value>
</data>
<data name="Help.Text" xml:space="preserve">
<value>Help</value>
</data>
<data name="&gt;&gt;Help.Name" xml:space="preserve">
<value>Help</value>
</data>
<data name="&gt;&gt;Help.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;Help.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;Help.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="check_Delete.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="check_Delete.Location" type="System.Drawing.Point, System.Drawing">
<value>6, 18</value>
</data>
<data name="check_Delete.Size" type="System.Drawing.Size, System.Drawing">
<value>128, 17</value>
</data>
<data name="check_Delete.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="check_Delete.Text" xml:space="preserve">
<value>Delete source view</value>
</data>
<data name="&gt;&gt;check_Delete.Name" xml:space="preserve">
<value>check_Delete</value>
</data>
<data name="&gt;&gt;check_Delete.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;check_Delete.Parent" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;check_Delete.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<data name="groupBox1.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 66</value>
</data>
<data name="groupBox1.Size" type="System.Drawing.Size, System.Drawing">
<value>165, 41</value>
</data>
<data name="groupBox1.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="groupBox1.Text" xml:space="preserve">
<value>View</value>
</data>
<data name="&gt;&gt;groupBox1.Name" xml:space="preserve">
<value>groupBox1</value>
</data>
<data name="&gt;&gt;groupBox1.Type" xml:space="preserve">
<value>System.Windows.Forms.GroupBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;groupBox1.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;groupBox1.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>351, 279</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Options</value>
</data>
<data name="&gt;&gt;folderBrowserDialogDwg.Name" xml:space="preserve">
<value>folderBrowserDialogDwg</value>
</data>
<data name="&gt;&gt;folderBrowserDialogDwg.Type" xml:space="preserve">
<value>System.Windows.Forms.FolderBrowserDialog, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>DialogOptions</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>REX.Common.REXExtensionForm, DRevitFreezeDrawing, Version=1.0.0.182, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
@@ -0,0 +1,114 @@
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
partial class DialogViewSel
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(DialogViewSel));
this.button_OK = new System.Windows.Forms.Button();
this.button_CheckNone = new System.Windows.Forms.Button();
this.button_CheckAll = new System.Windows.Forms.Button();
this.checkedList_Views = new System.Windows.Forms.CheckedListBox();
this.button_Cancel = new System.Windows.Forms.Button();
this.Help = new System.Windows.Forms.LinkLabel();
this.SuspendLayout();
//
// button_OK
//
resources.ApplyResources(this.button_OK, "button_OK");
this.button_OK.Name = "button_OK";
this.button_OK.UseVisualStyleBackColor = true;
this.button_OK.Click += new System.EventHandler(this.button_OK_Click);
//
// button_CheckNone
//
resources.ApplyResources(this.button_CheckNone, "button_CheckNone");
this.button_CheckNone.Name = "button_CheckNone";
this.button_CheckNone.UseVisualStyleBackColor = true;
this.button_CheckNone.Click += new System.EventHandler(this.button_CheckNone_Click);
//
// button_CheckAll
//
resources.ApplyResources(this.button_CheckAll, "button_CheckAll");
this.button_CheckAll.Name = "button_CheckAll";
this.button_CheckAll.UseVisualStyleBackColor = true;
this.button_CheckAll.Click += new System.EventHandler(this.button_CheckAll_Click);
//
// checkedList_Views
//
resources.ApplyResources(this.checkedList_Views, "checkedList_Views");
this.checkedList_Views.CheckOnClick = true;
this.checkedList_Views.FormattingEnabled = true;
this.checkedList_Views.Name = "checkedList_Views";
//
// button_Cancel
//
resources.ApplyResources(this.button_Cancel, "button_Cancel");
this.button_Cancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.button_Cancel.Name = "button_Cancel";
this.button_Cancel.UseVisualStyleBackColor = true;
this.button_Cancel.Click += new System.EventHandler(this.button_Cancel_Click_1);
//
// Help
//
resources.ApplyResources(this.Help, "Help");
this.Help.Name = "Help";
this.Help.TabStop = true;
this.Help.LinkClicked += new System.Windows.Forms.LinkLabelLinkClickedEventHandler(this.Help_LinkClicked);
//
// DialogViewSel
//
this.AcceptButton = this.button_OK;
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.button_Cancel;
this.Controls.Add(this.Help);
this.Controls.Add(this.button_Cancel);
this.Controls.Add(this.button_OK);
this.Controls.Add(this.button_CheckNone);
this.Controls.Add(this.button_CheckAll);
this.Controls.Add(this.checkedList_Views);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedSingle;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "DialogViewSel";
this.Load += new System.EventHandler(this.DialogViewSel_Load);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button button_OK;
private System.Windows.Forms.Button button_CheckNone;
private System.Windows.Forms.Button button_CheckAll;
private System.Windows.Forms.CheckedListBox checkedList_Views;
private System.Windows.Forms.Button button_Cancel;
private System.Windows.Forms.LinkLabel Help;
}
}
@@ -0,0 +1,244 @@
//
// (C) Copyright 2016 by Autodesk, Inc. All rights reserved.
//
// 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 ITS 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;
using System.Collections.Generic;
using System.Windows.Forms;
using Autodesk.Revit.DB;
using REX.Common;
using Autodesk.REX.Framework;
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
/// <summary>
/// Dialog to select views to be exported/freezed
/// </summary>
partial class DialogViewSel : REXExtensionForm
{
#region<members>
List<REXView> m_REXViewList;
#endregion
public DialogViewSel(REXExtension argExt) : base(argExt)
{
m_REXViewList = new List<REXView>();
InitializeComponent();
this.Icon = ThisExtension.GetIcon();
}
//***********************************************************************
public void SetLists(List<Autodesk.Revit.DB.View> argViewList)
{
m_REXViewList.Clear();
foreach (Autodesk.Revit.DB.View v in argViewList)
{
m_REXViewList.Add(new REXView(v));
}
m_REXViewList.Sort(CompareViewsByName);
checkedList_Views.Items.Clear();
InitCheckedList();
CheckNone();
}
//***********************************************************************
private void InitCheckedList()
{
foreach (REXView rv in m_REXViewList)
{
checkedList_Views.Items.Add(rv.Name);
rv.Tag = checkedList_Views.Items.Count - 1;
rv.ifVisible = true;
}
}
//***********************************************************************
private void CheckNone()
{
for (int i = 0; i < checkedList_Views.Items.Count; i++)
checkedList_Views.SetItemChecked(i, false);
}
//***********************************************************************
private void CheckAll()
{
for (int i = 0; i < checkedList_Views.Items.Count; i++)
checkedList_Views.SetItemChecked(i, true);
}
//***********************************************************************
/// <summary>
/// this function returns SelectedViews
/// </summary>
/// <returns></returns>
public List<Autodesk.Revit.DB.View> GetSelectedViews()
{
List<Autodesk.Revit.DB.View> list = new List<Autodesk.Revit.DB.View>();
foreach (REXView rv in m_REXViewList)
{
if (rv.ifChecked)
{
list.Add(rv.ViewElement);
}
}
return list;
}
//*************************************************************************
/// <summary>
/// this functions get checked items to m_REXViewList
/// </summary>
private void GetCheckedItems()
{
foreach (REXView rv in m_REXViewList)
{
rv.ifChecked = false;
}
for (int i = 0; i < checkedList_Views.Items.Count; i++)
{
bool check = checkedList_Views.GetItemChecked(i);
if (check)
{
foreach (REXView rv in m_REXViewList)
{
if (rv.Tag == i)
{
rv.ifChecked = true;
break;
}
}
}
}
}
//***********************************************************************
private void CheckFromSelection()
{
foreach (REXView rv2 in m_REXViewList)
{
if (rv2.ifChecked)
{
checkedList_Views.SetItemChecked(rv2.Tag, true);
}
}
}
//***********************************************************************
private void DialogViewSel_Load(object sender, EventArgs e)
{
CheckNone();
CheckFromSelection();
}
//***********************************************************************
private void button_CheckNone_Click(object sender, EventArgs e)
{
CheckNone();
}
//***********************************************************************
private void button_CheckAll_Click(object sender, EventArgs e)
{
CheckAll();
}
//***********************************************************************
private void button_OK_Click(object sender, EventArgs e)
{
GetCheckedItems();
this.Hide();
}
//***********************************************************************
private void button_Cancel_Click_1(object sender, EventArgs e)
{
this.Hide();
}
private void Help_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
{
REXCommand Cmd = new REXCommand(REXCommandType.Help);
ThisExtension.Command(ref Cmd);
}
/// <summary>
/// This function is an Comparison to sort views by name
/// </summary>
private static int CompareViewsByName(REXView arg1, REXView arg2)
{
return arg1.Name.CompareTo(arg2.Name);
}
}
//***********************************************************************
//***********************************************************************
//***********************************************************************
//***********************************************************************
internal class REXView
{
public string Name;
public Autodesk.Revit.DB.View ViewElement;
public bool ifView;
public int Tag;
public bool ifChecked;
public bool ifVisible;
public REXView()
{
}
public REXView(Autodesk.Revit.DB.View argView)
{
ViewElement = argView;
Name = argView.get_Parameter(BuiltInParameter.VIEW_FAMILY).AsString() + ": " + argView.Name;
if (argView.ViewType == Autodesk.Revit.DB.ViewType.DrawingSheet)
ifView = false;
else
ifView = true;
}
public REXView(REXView argRV)
{
this.ifChecked = argRV.ifChecked;
this.ifVisible = argRV.ifVisible;
this.Tag = argRV.Tag;
this.ifView = argRV.ifView;
this.Name = argRV.Name;
this.ViewElement = argRV.ViewElement;
}
public void CopyMembersTo(REXView argRV)
{
argRV.ifChecked = this.ifChecked;
argRV.ifView = this.ifView;
argRV.ifVisible = this.ifVisible;
argRV.Name = this.Name;
argRV.Tag = this.Tag;
argRV.ViewElement = this.ViewElement;
}
public void CopyDlgImportantMembFrom(REXView argRV)
{
this.ifChecked = argRV.ifChecked;
this.ifVisible = argRV.ifVisible;
this.Tag = argRV.Tag;
}
}
}
@@ -0,0 +1,327 @@
<?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="button_OK.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_OK.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
<data name="button_OK.Location" type="System.Drawing.Point, System.Drawing">
<value>300, 312</value>
</data>
<data name="button_OK.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<assembly alias="mscorlib" name="mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="button_OK.TabIndex" type="System.Int32, mscorlib">
<value>7</value>
</data>
<data name="button_OK.Text" xml:space="preserve">
<value>OK</value>
</data>
<data name="&gt;&gt;button_OK.Name" xml:space="preserve">
<value>button_OK</value>
</data>
<data name="&gt;&gt;button_OK.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_OK.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_OK.ZOrder" xml:space="preserve">
<value>2</value>
</data>
<data name="button_CheckNone.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_CheckNone.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_CheckNone.Location" type="System.Drawing.Point, System.Drawing">
<value>341, 41</value>
</data>
<data name="button_CheckNone.Size" type="System.Drawing.Size, System.Drawing">
<value>115, 23</value>
</data>
<data name="button_CheckNone.TabIndex" type="System.Int32, mscorlib">
<value>3</value>
</data>
<data name="button_CheckNone.Text" xml:space="preserve">
<value>Unselect All</value>
</data>
<data name="&gt;&gt;button_CheckNone.Name" xml:space="preserve">
<value>button_CheckNone</value>
</data>
<data name="&gt;&gt;button_CheckNone.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_CheckNone.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_CheckNone.ZOrder" xml:space="preserve">
<value>3</value>
</data>
<data name="button_CheckAll.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_CheckAll.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_CheckAll.Location" type="System.Drawing.Point, System.Drawing">
<value>341, 12</value>
</data>
<data name="button_CheckAll.Size" type="System.Drawing.Size, System.Drawing">
<value>115, 23</value>
</data>
<data name="button_CheckAll.TabIndex" type="System.Int32, mscorlib">
<value>2</value>
</data>
<data name="button_CheckAll.Text" xml:space="preserve">
<value>Select All</value>
</data>
<data name="&gt;&gt;button_CheckAll.Name" xml:space="preserve">
<value>button_CheckAll</value>
</data>
<data name="&gt;&gt;button_CheckAll.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_CheckAll.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_CheckAll.ZOrder" xml:space="preserve">
<value>4</value>
</data>
<data name="checkedList_Views.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Top</value>
</data>
<data name="checkedList_Views.HorizontalScrollbar" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkedList_Views.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 12</value>
</data>
<data name="checkedList_Views.Margin" type="System.Windows.Forms.Padding, System.Windows.Forms">
<value>8, 8, 8, 8</value>
</data>
<data name="checkedList_Views.ScrollAlwaysVisible" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="checkedList_Views.Size" type="System.Drawing.Size, System.Drawing">
<value>322, 289</value>
</data>
<data name="checkedList_Views.TabIndex" type="System.Int32, mscorlib">
<value>1</value>
</data>
<data name="&gt;&gt;checkedList_Views.Name" xml:space="preserve">
<value>checkedList_Views</value>
</data>
<data name="&gt;&gt;checkedList_Views.Type" xml:space="preserve">
<value>System.Windows.Forms.CheckedListBox, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;checkedList_Views.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;checkedList_Views.ZOrder" xml:space="preserve">
<value>5</value>
</data>
<data name="button_Cancel.Anchor" type="System.Windows.Forms.AnchorStyles, System.Windows.Forms">
<value>Bottom, Right</value>
</data>
<data name="button_Cancel.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="button_Cancel.Location" type="System.Drawing.Point, System.Drawing">
<value>381, 312</value>
</data>
<data name="button_Cancel.Size" type="System.Drawing.Size, System.Drawing">
<value>75, 23</value>
</data>
<data name="button_Cancel.TabIndex" type="System.Int32, mscorlib">
<value>8</value>
</data>
<data name="button_Cancel.Text" xml:space="preserve">
<value>Cancel</value>
</data>
<data name="&gt;&gt;button_Cancel.Name" xml:space="preserve">
<value>button_Cancel</value>
</data>
<data name="&gt;&gt;button_Cancel.Type" xml:space="preserve">
<value>System.Windows.Forms.Button, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;button_Cancel.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;button_Cancel.ZOrder" xml:space="preserve">
<value>1</value>
</data>
<data name="Help.AutoSize" type="System.Boolean, mscorlib">
<value>True</value>
</data>
<data name="Help.ImeMode" type="System.Windows.Forms.ImeMode, System.Windows.Forms">
<value>NoControl</value>
</data>
<data name="Help.Location" type="System.Drawing.Point, System.Drawing">
<value>12, 317</value>
</data>
<data name="Help.Size" type="System.Drawing.Size, System.Drawing">
<value>40, 13</value>
</data>
<data name="Help.TabIndex" type="System.Int32, mscorlib">
<value>9</value>
</data>
<data name="Help.Text" xml:space="preserve">
<value>Help</value>
</data>
<data name="&gt;&gt;Help.Name" xml:space="preserve">
<value>Help</value>
</data>
<data name="&gt;&gt;Help.Type" xml:space="preserve">
<value>System.Windows.Forms.LinkLabel, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</data>
<data name="&gt;&gt;Help.Parent" xml:space="preserve">
<value>$this</value>
</data>
<data name="&gt;&gt;Help.ZOrder" xml:space="preserve">
<value>0</value>
</data>
<metadata name="$this.Localizable" type="System.Boolean, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
<value>True</value>
</metadata>
<data name="$this.AutoScaleDimensions" type="System.Drawing.SizeF, System.Drawing">
<value>6, 13</value>
</data>
<data name="$this.ClientSize" type="System.Drawing.Size, System.Drawing">
<value>468, 347</value>
</data>
<data name="$this.MinimumSize" type="System.Drawing.Size, System.Drawing">
<value>350, 253</value>
</data>
<data name="$this.Text" xml:space="preserve">
<value>Selected Views</value>
</data>
<data name="&gt;&gt;$this.Name" xml:space="preserve">
<value>DialogViewSel</value>
</data>
<data name="&gt;&gt;$this.Type" xml:space="preserve">
<value>REX.Common.REXExtensionForm, DRevitFreezeDrawing, Version=1.0.0.182, Culture=neutral, PublicKeyToken=null</value>
</data>
</root>
@@ -0,0 +1,92 @@
namespace REX.DRevitFreezeDrawing.Resources.Dialogs
{
partial class FreezeMainCtr
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(FreezeMainCtr));
this.group_Range = new System.Windows.Forms.GroupBox();
this.button_SelectV = new System.Windows.Forms.Button();
this.radio_SelectedV = new System.Windows.Forms.RadioButton();
this.radio_CurrentV = new System.Windows.Forms.RadioButton();
this.group_Range.SuspendLayout();
this.SuspendLayout();
//
// group_Range
//
this.group_Range.Controls.Add(this.button_SelectV);
this.group_Range.Controls.Add(this.radio_SelectedV);
this.group_Range.Controls.Add(this.radio_CurrentV);
resources.ApplyResources(this.group_Range, "group_Range");
this.group_Range.Name = "group_Range";
this.group_Range.TabStop = false;
this.group_Range.Enter += new System.EventHandler(this.group_Range_Enter);
//
// button_SelectV
//
resources.ApplyResources(this.button_SelectV, "button_SelectV");
this.button_SelectV.Name = "button_SelectV";
this.button_SelectV.UseVisualStyleBackColor = true;
this.button_SelectV.Click += new System.EventHandler(this.button_SelectV_Click);
//
// radio_SelectedV
//
resources.ApplyResources(this.radio_SelectedV, "radio_SelectedV");
this.radio_SelectedV.Name = "radio_SelectedV";
this.radio_SelectedV.TabStop = true;
this.radio_SelectedV.UseVisualStyleBackColor = true;
this.radio_SelectedV.CheckedChanged += new System.EventHandler(this.radio_SelectedV_CheckedChanged);
//
// radio_CurrentV
//
resources.ApplyResources(this.radio_CurrentV, "radio_CurrentV");
this.radio_CurrentV.Name = "radio_CurrentV";
this.radio_CurrentV.TabStop = true;
this.radio_CurrentV.UseVisualStyleBackColor = true;
this.radio_CurrentV.CheckedChanged += new System.EventHandler(this.radio_CurrentV_CheckedChanged);
//
// FreezeMainCtr
//
resources.ApplyResources(this, "$this");
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.group_Range);
this.Name = "FreezeMainCtr";
this.Load += new System.EventHandler(this.FreezeMainCtr_Load);
this.group_Range.ResumeLayout(false);
this.group_Range.PerformLayout();
this.ResumeLayout(false);
}
#endregion
private System.Windows.Forms.GroupBox group_Range;
private System.Windows.Forms.Button button_SelectV;
private System.Windows.Forms.RadioButton radio_SelectedV;
private System.Windows.Forms.RadioButton radio_CurrentV;
}
}

Some files were not shown because too many files have changed in this diff Show More