添加项目文件。
This commit is contained in:
18
IFCReader/App.config
Normal file
18
IFCReader/App.config
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<configuration>
|
||||
<startup>
|
||||
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.7.2" />
|
||||
</startup>
|
||||
<runtime>
|
||||
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Memory" publicKeyToken="cc7b13ffcd2ddd51" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.1.1" newVersion="4.0.1.1" />
|
||||
</dependentAssembly>
|
||||
<dependentAssembly>
|
||||
<assemblyIdentity name="System.Runtime.CompilerServices.Unsafe" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" />
|
||||
<bindingRedirect oldVersion="0.0.0.0-4.0.4.1" newVersion="4.0.4.1" />
|
||||
</dependentAssembly>
|
||||
</assemblyBinding>
|
||||
</runtime>
|
||||
</configuration>
|
||||
81
IFCReader/App.xaml
Normal file
81
IFCReader/App.xaml
Normal file
@@ -0,0 +1,81 @@
|
||||
<Application
|
||||
x:Class="IFCReader.App"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:local="clr-namespace:IFCReader"
|
||||
StartupUri="MainWindow.xaml">
|
||||
<Application.Resources>
|
||||
<Style x:Key="MainWindow" TargetType="Window">
|
||||
<Setter Property="ShowInTaskbar" Value="False" />
|
||||
<Setter Property="FontSize" Value="14" />
|
||||
<Setter Property="WindowChrome.WindowChrome">
|
||||
<Setter.Value>
|
||||
<WindowChrome />
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
<Setter Property="Template">
|
||||
<Setter.Value>
|
||||
<ControlTemplate TargetType="{x:Type Window}">
|
||||
<Grid>
|
||||
<!-- Title Panel -->
|
||||
<DockPanel LastChildFill="True">
|
||||
<Border
|
||||
x:Name="titlebar"
|
||||
Height="{x:Static SystemParameters.CaptionHeight}"
|
||||
DockPanel.Dock="Top">
|
||||
<Border.Background>
|
||||
<!--<SolidColorBrush Color="Black" />-->
|
||||
<LinearGradientBrush StartPoint="0,0" EndPoint="1,1">
|
||||
<LinearGradientBrush.GradientStops>
|
||||
<GradientStop Offset="0.0" Color="#0F1E69" />
|
||||
<GradientStop Offset="1.0" Color="DarkGray" />
|
||||
</LinearGradientBrush.GradientStops>
|
||||
</LinearGradientBrush>
|
||||
</Border.Background>
|
||||
<Grid>
|
||||
<!-- Title text only -->
|
||||
<TextBlock
|
||||
HorizontalAlignment="Center"
|
||||
VerticalAlignment="Top"
|
||||
Background="Transparent"
|
||||
Text="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Title}" />
|
||||
</Grid>
|
||||
</Border>
|
||||
<!-- Provides the actual content control -->
|
||||
<Border Margin="0">
|
||||
<AdornerDecorator>
|
||||
<ContentPresenter Content="{TemplateBinding Content}" />
|
||||
</AdornerDecorator>
|
||||
</Border>
|
||||
</DockPanel>
|
||||
|
||||
<!-- Provides the actual window border -->
|
||||
<Border
|
||||
Margin="0,0,0,0"
|
||||
Background="#F4F4F4"
|
||||
BorderBrush="White"
|
||||
BorderThickness="1,1,1,1"
|
||||
Grid.ZIndex="-1" />
|
||||
|
||||
<!-- This is the top left system button -->
|
||||
<!--<Button
|
||||
Margin="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=(WindowChrome.WindowChrome).ResizeBorderThickness}"
|
||||
Padding="1"
|
||||
HorizontalAlignment="Left"
|
||||
VerticalAlignment="Top"
|
||||
Command="{x:Static SystemCommands.ShowSystemMenuCommand}"
|
||||
CommandParameter="{Binding ElementName=CalcWindow}"
|
||||
WindowChrome.IsHitTestVisibleInChrome="True">
|
||||
<Image
|
||||
Width="16"
|
||||
Height="16"
|
||||
Source="{Binding RelativeSource={RelativeSource TemplatedParent}, Path=Icon}"
|
||||
WindowChrome.IsHitTestVisibleInChrome="True" />
|
||||
</Button>-->
|
||||
</Grid>
|
||||
</ControlTemplate>
|
||||
</Setter.Value>
|
||||
</Setter>
|
||||
</Style>
|
||||
</Application.Resources>
|
||||
</Application>
|
||||
17
IFCReader/App.xaml.cs
Normal file
17
IFCReader/App.xaml.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.Data;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows;
|
||||
|
||||
namespace IFCReader
|
||||
{
|
||||
/// <summary>
|
||||
/// App.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class App : Application
|
||||
{
|
||||
}
|
||||
}
|
||||
36
IFCReader/IFCReader.csproj
Normal file
36
IFCReader/IFCReader.csproj
Normal file
@@ -0,0 +1,36 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<OutputType>WinExe</OutputType>
|
||||
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
|
||||
<UseWPF>true</UseWPF>
|
||||
<LangVersion>11.0</LangVersion>
|
||||
<ImportWindowsDesktopTargets>true</ImportWindowsDesktopTargets>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="ManagedEsent" Version="1.9.4" />
|
||||
<PackageReference Include="Microsoft.CSharp" Version="4.7.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Abstractions" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Configuration.Binder" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.DependencyInjection.Abstractions" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Logging.Abstractions" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Options" Version="2.1.1" />
|
||||
<PackageReference Include="Microsoft.Extensions.Primitives" Version="2.1.1" />
|
||||
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
|
||||
<PackageReference Include="System.Buffers" Version="4.5.1" />
|
||||
<PackageReference Include="System.Data.DataSetExtensions" Version="4.5.0" />
|
||||
<PackageReference Include="System.Memory" Version="4.5.4" />
|
||||
<PackageReference Include="System.Numerics.Vectors" Version="4.5.0" />
|
||||
<PackageReference Include="System.Runtime.CompilerServices.Unsafe" Version="4.5.3" />
|
||||
<PackageReference Include="Xbim.Common" Version="5.1.341" />
|
||||
<PackageReference Include="Xbim.Essentials" Version="5.1.341" />
|
||||
<PackageReference Include="Xbim.Ifc" Version="5.1.341" />
|
||||
<PackageReference Include="Xbim.Ifc2x3" Version="5.1.341" />
|
||||
<PackageReference Include="Xbim.Ifc4" Version="5.1.341" />
|
||||
<PackageReference Include="Xbim.IO.Esent" Version="5.1.341" />
|
||||
<PackageReference Include="Xbim.IO.MemoryModel" Version="5.1.341" />
|
||||
<PackageReference Include="Xbim.Tessellator" Version="5.1.341" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
32
IFCReader/MainWindow.xaml
Normal file
32
IFCReader/MainWindow.xaml
Normal file
@@ -0,0 +1,32 @@
|
||||
<Window
|
||||
x:Class="IFCReader.MainWindow"
|
||||
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
||||
xmlns:local="clr-namespace:IFCReader"
|
||||
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
||||
Title="属性读取"
|
||||
Width="250"
|
||||
Height="200"
|
||||
mc:Ignorable="d">
|
||||
<Grid>
|
||||
<UniformGrid Margin="5" Columns="1">
|
||||
<DockPanel Margin="5">
|
||||
<TextBlock VerticalAlignment="Center" Text="文件路径:" />
|
||||
<TextBox x:Name="IfcFilePath" VerticalContentAlignment="Center" />
|
||||
</DockPanel>
|
||||
<Button
|
||||
Margin="5"
|
||||
Click="OpenFile"
|
||||
Content="打开IFC文件" />
|
||||
<Button
|
||||
Margin="5"
|
||||
Click="WriteJosn"
|
||||
Content="导出Json" />
|
||||
<Button
|
||||
Margin="5"
|
||||
Click="WriteTxt"
|
||||
Content="导出txt" />
|
||||
</UniformGrid>
|
||||
</Grid>
|
||||
</Window>
|
||||
194
IFCReader/MainWindow.xaml.cs
Normal file
194
IFCReader/MainWindow.xaml.cs
Normal file
@@ -0,0 +1,194 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
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 Microsoft.Win32;
|
||||
|
||||
using Newtonsoft.Json;
|
||||
|
||||
using Xbim.Ifc;
|
||||
using Xbim.Ifc2x3.PropertyResource;
|
||||
using Xbim.Ifc4.Interfaces;
|
||||
using Xbim.Ifc4.Kernel;
|
||||
using Xbim.Ifc4.ProductExtension;
|
||||
using Xbim.Ifc4.PropertyResource;
|
||||
|
||||
namespace IFCReader
|
||||
{
|
||||
/// <summary>
|
||||
/// MainWindow.xaml 的交互逻辑
|
||||
/// </summary>
|
||||
public partial class MainWindow : Window
|
||||
{
|
||||
public StringBuilder Message { get; private set; } = new();
|
||||
public string JsonMessage { get; private set; }
|
||||
|
||||
public MainWindow()
|
||||
{
|
||||
InitializeComponent();
|
||||
}
|
||||
|
||||
private void ReadIFC(string fileName)
|
||||
{
|
||||
var model = IfcStore.Open(fileName);
|
||||
List<IFCElement> elements = new();
|
||||
var collection = model.Instances.OfType<IIfcElement>();
|
||||
foreach (var obj in collection)
|
||||
{
|
||||
Message.AppendLine("构件分割线----------------------------构件分割线");
|
||||
Message.AppendLine(obj.Name);
|
||||
|
||||
IFCElement element = new() { Name = obj.Name };
|
||||
elements.Add(element);
|
||||
//类型属性
|
||||
var typeGroups = obj.IsTypedBy.SelectMany(r => r.RelatingType.HasPropertySets);
|
||||
foreach (var property in typeGroups)
|
||||
{
|
||||
if (property is IIfcPropertySet group)
|
||||
{
|
||||
Message.AppendLine($"<类型属性分组>: {group.Name}-------------------");
|
||||
var ps = group.PropertySetDefinitions.OfType<IIfcPropertySet>().SelectMany(pset => pset.HasProperties);
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
element.Groups.Add(new Group() { Name = group.Name, Properties = keyValuePairs });
|
||||
|
||||
foreach (var item in ps)
|
||||
{
|
||||
if (item is IIfcPropertySingleValue propSingle)
|
||||
{
|
||||
Message.AppendLine($"<类型属性>: {propSingle.Name}, <值>: {propSingle.NominalValue}");
|
||||
//element.Groups.Add(propSingle.Name, propSingle.NominalValue.ToString());
|
||||
keyValuePairs.Add(propSingle.Name, propSingle.NominalValue.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
//if (group is IIfcPropertySet propertySet)
|
||||
//{
|
||||
// Message.AppendLine($"Set:{propertySet.Name}, Value:{propertySet.PropertySetDefinitions}");
|
||||
//}
|
||||
}
|
||||
//实例属性
|
||||
|
||||
var insGroups = obj.IsDefinedBy.SelectMany(r => r.RelatingPropertyDefinition.PropertySetDefinitions);
|
||||
////在这种情况下, 只考虑属性集。
|
||||
//.OfType<IIfcPropertySet>();
|
||||
////从所有属性集中获取所有属性
|
||||
//.SelectMany(pset => pset.HasProperties);
|
||||
//分组
|
||||
|
||||
foreach (var group in insGroups)
|
||||
{
|
||||
Message.AppendLine($"<实例属性分组>: {group.Name}");
|
||||
var ps = group.PropertySetDefinitions.OfType<IIfcPropertySet>().SelectMany(pset => pset.HasProperties);
|
||||
Dictionary<string, string> keyValuePairs = new Dictionary<string, string>();
|
||||
element.Groups.Add(new Group() { Name = group.Name, Properties = keyValuePairs });
|
||||
|
||||
foreach (var item in ps)
|
||||
{
|
||||
if (item is IIfcPropertySingleValue propSingle)
|
||||
{
|
||||
Message.AppendLine($"<实例属性>: {propSingle.Name}, <值>: {propSingle.NominalValue}");
|
||||
//element.Groups.Add(propSingle.Name, propSingle.NominalValue.ToString());
|
||||
keyValuePairs.Add(propSingle.Name, propSingle.NominalValue.ToString());
|
||||
}
|
||||
}
|
||||
//if (group is IIfcPropertySet propertySet)
|
||||
//{
|
||||
// Message.AppendLine($"Set:{propertySet.Name}, Value:{propertySet.PropertySetDefinitions}");
|
||||
//}
|
||||
}
|
||||
|
||||
//var setting = new JsonSerializerSettings();
|
||||
//setting.PreserveReferencesHandling = PreserveReferencesHandling.Objects;
|
||||
//setting.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
|
||||
//JsonMessage += JsonConvert.SerializeObject(insGroups, setting);
|
||||
}
|
||||
JsonMessage = JsonConvert.SerializeObject(elements, Formatting.Indented);
|
||||
//var setting = new JsonSerializerSettings();
|
||||
//setting.PreserveReferencesHandling = PreserveReferencesHandling.Objects;
|
||||
//setting.ReferenceLoopHandling = ReferenceLoopHandling.Ignore;
|
||||
//JsonMessage = JsonConvert.SerializeObject(collection, setting);
|
||||
}
|
||||
|
||||
private void OpenFile(object sender, RoutedEventArgs e)
|
||||
{
|
||||
OpenFileDialog dialog = new OpenFileDialog() { Filter = "IFC文件|*.ifc", Multiselect = false };
|
||||
if (dialog.ShowDialog() == true)
|
||||
{
|
||||
IfcFilePath.Text = dialog.FileName;
|
||||
ReadIFC(dialog.FileName);
|
||||
}
|
||||
}
|
||||
|
||||
private void WriteJosn(object sender, RoutedEventArgs e)
|
||||
{
|
||||
WriteJsonFile(JsonMessage);
|
||||
}
|
||||
|
||||
private void WriteJsonFile(string jsonMessage)
|
||||
{
|
||||
var filePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + "\\属性信息.json";
|
||||
|
||||
using (FileStream fs = new FileStream(filePath, FileMode.Create))
|
||||
{
|
||||
//写入
|
||||
using (StreamWriter sw = new StreamWriter(fs))
|
||||
{
|
||||
sw.WriteLine(jsonMessage);
|
||||
}
|
||||
}
|
||||
System.Diagnostics.Process.Start(filePath);
|
||||
}
|
||||
|
||||
private void WriteTxt(object sender, RoutedEventArgs e)
|
||||
{
|
||||
WriteTextFile(Message);
|
||||
}
|
||||
|
||||
public void WriteTextFile(StringBuilder sb, string fileName = "IFC属性集")
|
||||
{
|
||||
var filePath = Environment.GetFolderPath(Environment.SpecialFolder.Desktop) + $"\\{fileName}.txt";
|
||||
File.WriteAllText(filePath, sb.ToString());
|
||||
System.Diagnostics.Process.Start(filePath);
|
||||
}
|
||||
}
|
||||
|
||||
public class IFCElement
|
||||
{
|
||||
[JsonProperty("元素")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("属性")]
|
||||
public List<Group> Groups { get; set; } = new();
|
||||
}
|
||||
|
||||
public class Group
|
||||
{
|
||||
[JsonProperty("分组名称")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("参数")]
|
||||
public Dictionary<string, string> Properties = new Dictionary<string, string>();
|
||||
}
|
||||
|
||||
public class Property
|
||||
{
|
||||
[JsonProperty("参数")]
|
||||
public string Name { get; set; }
|
||||
|
||||
[JsonProperty("值")]
|
||||
public string Value { get; set; }
|
||||
}
|
||||
//public record Property(string Key, string Value);
|
||||
}
|
||||
55
IFCReader/Properties/AssemblyInfo.cs
Normal file
55
IFCReader/Properties/AssemblyInfo.cs
Normal file
@@ -0,0 +1,55 @@
|
||||
using System.Reflection;
|
||||
using System.Resources;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Windows;
|
||||
|
||||
// 有关程序集的一般信息由以下
|
||||
// 控制。更改这些特性值可修改
|
||||
// 与程序集关联的信息。
|
||||
[assembly: AssemblyTitle("IFCReader")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("")]
|
||||
[assembly: AssemblyProduct("IFCReader")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// 将 ComVisible 设置为 false 会使此程序集中的类型
|
||||
//对 COM 组件不可见。如果需要从 COM 访问此程序集中的类型
|
||||
//请将此类型的 ComVisible 特性设置为 true。
|
||||
[assembly: ComVisible(false)]
|
||||
|
||||
//若要开始生成可本地化的应用程序,请设置
|
||||
//.csproj 文件中的 <UICulture>CultureYouAreCodingWith</UICulture>
|
||||
//在 <PropertyGroup> 中。例如,如果你使用的是美国英语。
|
||||
//使用的是美国英语,请将 <UICulture> 设置为 en-US。 然后取消
|
||||
//对以下 NeutralResourceLanguage 特性的注释。 更新
|
||||
//以下行中的“en-US”以匹配项目文件中的 UICulture 设置。
|
||||
|
||||
//[assembly: NeutralResourcesLanguage("en-US", UltimateResourceFallbackLocation.Satellite)]
|
||||
|
||||
|
||||
[assembly: ThemeInfo(
|
||||
ResourceDictionaryLocation.None, //主题特定资源词典所处位置
|
||||
//(未在页面中找到资源时使用,
|
||||
//或应用程序资源字典中找到时使用)
|
||||
ResourceDictionaryLocation.SourceAssembly //常规资源词典所处位置
|
||||
//(未在页面中找到资源时使用,
|
||||
//、应用程序或任何主题专用资源字典中找到时使用)
|
||||
)]
|
||||
|
||||
|
||||
// 程序集的版本信息由下列四个值组成:
|
||||
//
|
||||
// 主版本
|
||||
// 次版本
|
||||
// 生成号
|
||||
// 修订号
|
||||
//
|
||||
//可以指定所有这些值,也可以使用“生成号”和“修订号”的默认值
|
||||
//通过使用 "*",如下所示:
|
||||
// [assembly: AssemblyVersion("1.0.*")]
|
||||
[assembly: AssemblyVersion("1.0.0.0")]
|
||||
[assembly: AssemblyFileVersion("1.0.0.0")]
|
||||
71
IFCReader/Properties/Resources.Designer.cs
generated
Normal file
71
IFCReader/Properties/Resources.Designer.cs
generated
Normal file
@@ -0,0 +1,71 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// 此代码由工具生成。
|
||||
// 运行时版本: 4.0.30319.42000
|
||||
//
|
||||
// 对此文件的更改可能导致不正确的行为,如果
|
||||
// 重新生成代码,则所做更改将丢失。
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
namespace IFCReader.Properties
|
||||
{
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 强类型资源类,用于查找本地化字符串等。
|
||||
/// </summary>
|
||||
// 此类是由 StronglyTypedResourceBuilder
|
||||
// 类通过类似于 ResGen 或 Visual Studio 的工具自动生成的。
|
||||
// 若要添加或移除成员,请编辑 .ResX 文件,然后重新运行 ResGen
|
||||
// (以 /str 作为命令选项),或重新生成 VS 项目。
|
||||
[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>
|
||||
/// 返回此类使用的缓存 ResourceManager 实例。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Resources.ResourceManager ResourceManager
|
||||
{
|
||||
get
|
||||
{
|
||||
if ((resourceMan == null))
|
||||
{
|
||||
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("IFCReader.Properties.Resources", typeof(Resources).Assembly);
|
||||
resourceMan = temp;
|
||||
}
|
||||
return resourceMan;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 重写当前线程的 CurrentUICulture 属性,对
|
||||
/// 使用此强类型资源类的所有资源查找执行重写。
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
internal static global::System.Globalization.CultureInfo Culture
|
||||
{
|
||||
get
|
||||
{
|
||||
return resourceCulture;
|
||||
}
|
||||
set
|
||||
{
|
||||
resourceCulture = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
117
IFCReader/Properties/Resources.resx
Normal file
117
IFCReader/Properties/Resources.resx
Normal file
@@ -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>
|
||||
30
IFCReader/Properties/Settings.Designer.cs
generated
Normal file
30
IFCReader/Properties/Settings.Designer.cs
generated
Normal file
@@ -0,0 +1,30 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <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 IFCReader.Properties
|
||||
{
|
||||
|
||||
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
7
IFCReader/Properties/Settings.settings
Normal file
7
IFCReader/Properties/Settings.settings
Normal file
@@ -0,0 +1,7 @@
|
||||
<?xml version='1.0' encoding='utf-8'?>
|
||||
<SettingsFile xmlns="uri:settings" CurrentProfile="(Default)">
|
||||
<Profiles>
|
||||
<Profile Name="(Default)" />
|
||||
</Profiles>
|
||||
<Settings />
|
||||
</SettingsFile>
|
||||
25
IFCReader/packages.config
Normal file
25
IFCReader/packages.config
Normal file
@@ -0,0 +1,25 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<packages>
|
||||
<package id="ManagedEsent" version="1.9.4" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.Configuration" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.Configuration.Abstractions" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.Configuration.Binder" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.DependencyInjection.Abstractions" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.Logging" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.Logging.Abstractions" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.Options" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Microsoft.Extensions.Primitives" version="2.1.1" targetFramework="net472" />
|
||||
<package id="Newtonsoft.Json" version="13.0.3" targetFramework="net472" />
|
||||
<package id="System.Buffers" version="4.5.1" targetFramework="net472" />
|
||||
<package id="System.Memory" version="4.5.4" targetFramework="net472" />
|
||||
<package id="System.Numerics.Vectors" version="4.5.0" targetFramework="net472" />
|
||||
<package id="System.Runtime.CompilerServices.Unsafe" version="4.5.3" targetFramework="net472" />
|
||||
<package id="Xbim.Common" version="5.1.341" targetFramework="net472" />
|
||||
<package id="Xbim.Essentials" version="5.1.341" targetFramework="net472" />
|
||||
<package id="Xbim.Ifc" version="5.1.341" targetFramework="net472" />
|
||||
<package id="Xbim.Ifc2x3" version="5.1.341" targetFramework="net472" />
|
||||
<package id="Xbim.Ifc4" version="5.1.341" targetFramework="net472" />
|
||||
<package id="Xbim.IO.Esent" version="5.1.341" targetFramework="net472" />
|
||||
<package id="Xbim.IO.MemoryModel" version="5.1.341" targetFramework="net472" />
|
||||
<package id="Xbim.Tessellator" version="5.1.341" targetFramework="net472" />
|
||||
</packages>
|
||||
Reference in New Issue
Block a user