integrate Revit 2025 SDK

This commit is contained in:
Jeremy Tammik
2024-04-11 13:47:20 +02:00
parent e786953544
commit f414362f2b
889 changed files with 26676 additions and 26865 deletions
@@ -1,5 +1,5 @@
//
// (C) Copyright 2003-2019 by Autodesk, Inc.
// (C) Copyright 2003-2023 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
@@ -22,7 +22,6 @@
using System.Reflection;
using System.Runtime.CompilerServices;
//
// General Information about an assembly is controlled through the following
@@ -34,7 +33,7 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("")]
[assembly: AssemblyCopyright("Copyright © Autodesk, Inc. 2009")]
[assembly: AssemblyCopyright("Copyright © Autodesk, Inc. 2023")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -79,3 +78,4 @@ using System.Runtime.CompilerServices;
[assembly: AssemblyDelaySign(false)]
[assembly: AssemblyKeyFile("")]
[assembly: AssemblyKeyName("")]
[assembly: System.Runtime.Versioning.SupportedOSPlatformAttribute("windows7.0")]
@@ -1,5 +1,5 @@
//
// (C) Copyright 2003-2019 by Autodesk, Inc.
// (C) Copyright 2003-2023 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
@@ -1,145 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Project Sdk="">
<PropertyGroup>
<ProjectType>Local</ProjectType>
<ProductVersion>9.0.30729</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{14B16804-1586-4D7F-8B43-D48C3EA15AE8}</ProjectGuid>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ApplicationIcon>
</ApplicationIcon>
<AssemblyKeyContainerName>
</AssemblyKeyContainerName>
<AssemblyName>BeamAndSlabNewParameter</AssemblyName>
<AssemblyOriginatorKeyFile>
</AssemblyOriginatorKeyFile>
<DefaultClientScript>JScript</DefaultClientScript>
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
<OutputType>Library</OutputType>
<RootNamespace>Revit.SDK.Samples.BeamAndSlabParameters.CS</RootNamespace>
<RunPostBuildEvent>OnBuildSuccess</RunPostBuildEvent>
<StartupObject>
</StartupObject>
<FileUpgradeFlags>
</FileUpgradeFlags>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
<TargetFrameworkVersion>v4.8</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<OutputPath>bin\Debug\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>true</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>false</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>full</DebugType>
<ErrorReport>prompt</ErrorReport>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<OutputPath>bin\Release\</OutputPath>
<AllowUnsafeBlocks>false</AllowUnsafeBlocks>
<BaseAddress>285212672</BaseAddress>
<CheckForOverflowUnderflow>false</CheckForOverflowUnderflow>
<ConfigurationOverrideFile>
</ConfigurationOverrideFile>
<DefineConstants>TRACE</DefineConstants>
<DocumentationFile>
</DocumentationFile>
<DebugSymbols>false</DebugSymbols>
<FileAlignment>4096</FileAlignment>
<NoStdLib>false</NoStdLib>
<NoWarn>
</NoWarn>
<Optimize>true</Optimize>
<RegisterForComInterop>false</RegisterForComInterop>
<RemoveIntegerChecks>false</RemoveIntegerChecks>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<WarningLevel>4</WarningLevel>
<DebugType>none</DebugType>
<ErrorReport>prompt</ErrorReport>
<!--Added [false] deterministic property to prevent CS8357 when AssemblyInfo.cs contains wildcard in version string-->
<Deterministic>False</Deterministic>
</PropertyGroup>
<Import Project="$(SolutionDir)VSProps\SDKSamples.Sdk.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
<DebugSymbols>true</DebugSymbols>
<OutputPath>bin\x64\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<BaseAddress>285212672</BaseAddress>
<FileAlignment>4096</FileAlignment>
<DebugType>full</DebugType>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
<OutputPath>bin\x64\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<BaseAddress>285212672</BaseAddress>
<Optimize>true</Optimize>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<FileAlignment>4096</FileAlignment>
<PlatformTarget>x64</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisRuleSet>MinimumRecommendedRules.ruleset</CodeAnalysisRuleSet>
</PropertyGroup>
<Import Project="$(SolutionDir)VSProps\SDKSamples.Sdk.targets" />
<PropertyGroup>
<RunPostBuildEvent>OnOutputUpdated</RunPostBuildEvent>
</PropertyGroup>
<ItemGroup>
<Reference Include="System">
<Name>System</Name>
</Reference>
<Reference Include="System.Data">
<Name>System.Data</Name>
</Reference>
<Reference Include="System.Drawing">
<Name>System.Drawing</Name>
</Reference>
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
<Reference Include="System.Xml">
<Name>System.XML</Name>
</Reference>
<Reference Include="System.Core">
<RequiredTargetFramework>3.5</RequiredTargetFramework>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AssemblyInfo.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="BeamAndSlabNewParameter.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="BeamAndSlabNewParameterForm.cs">
<SubType>Form</SubType>
</Compile>
<EmbeddedResource Include="BeamAndSlabNewParameterForm.resx">
<DependentUpon>BeamAndSlabNewParameterForm.cs</DependentUpon>
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<Import Project="$(SolutionDir)VSProps\SDKSamples.targets" />
<PropertyGroup>
<PreBuildEvent>
</PreBuildEvent>
<PostBuildEvent>set FILEFORSAMPLEREG="$(SolutionDir)..\..\..\..\Regression\API\SDKSamples\UpdateSampleDllForRegression.py"
if exist %25FILEFORSAMPLEREG%25 py -3 %25FILEFORSAMPLEREG%25 "$(ProjectPath)" "$(TargetPath)" "$(SolutionDir)"</PostBuildEvent>
</PropertyGroup>
@@ -0,0 +1,127 @@
namespace Revit.SDK.Samples.BeamAndSlabNewParameter.CS
{
public partial class BeamAndSlabParametersForm
{
private System.Windows.Forms.Button addParameterButton;
private System.Windows.Forms.Button displayValueButton;
private System.Windows.Forms.Button exitButton;
private System.Windows.Forms.ListBox attributeValueListBox;
private System.Windows.Forms.Label attributeValueLabel;
private System.Windows.Forms.Button findButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (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()
{
this.addParameterButton = new System.Windows.Forms.Button();
this.displayValueButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.attributeValueListBox = new System.Windows.Forms.ListBox();
this.attributeValueLabel = new System.Windows.Forms.Label();
this.findButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// addParameterButton
//
this.addParameterButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.addParameterButton.Location = new System.Drawing.Point(311, 65);
this.addParameterButton.Name = "addParameterButton";
this.addParameterButton.Size = new System.Drawing.Size(105, 26);
this.addParameterButton.TabIndex = 1;
this.addParameterButton.Text = "&Add";
this.addParameterButton.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.addParameterButton.Click += new System.EventHandler(this.addParameterButton_Click);
//
// displayValueButton
//
this.displayValueButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.displayValueButton.Location = new System.Drawing.Point(311, 111);
this.displayValueButton.Name = "displayValueButton";
this.displayValueButton.Size = new System.Drawing.Size(105, 26);
this.displayValueButton.TabIndex = 2;
this.displayValueButton.Text = "&Display Value";
this.displayValueButton.Click += new System.EventHandler(this.displayValueButton_Click);
//
// exitButton
//
this.exitButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.exitButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.exitButton.Location = new System.Drawing.Point(311, 203);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(105, 26);
this.exitButton.TabIndex = 4;
this.exitButton.Text = "&Exit";
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
//
// attributeValueListBox
//
this.attributeValueListBox.ItemHeight = 16;
this.attributeValueListBox.Location = new System.Drawing.Point(19, 46);
this.attributeValueListBox.Name = "attributeValueListBox";
this.attributeValueListBox.Size = new System.Drawing.Size(269, 228);
this.attributeValueListBox.TabIndex = 18;
this.attributeValueListBox.TabStop = false;
//
// attributeValueLabel
//
this.attributeValueLabel.Location = new System.Drawing.Point(19, 9);
this.attributeValueLabel.Name = "attributeValueLabel";
this.attributeValueLabel.Size = new System.Drawing.Size(279, 37);
this.attributeValueLabel.TabIndex = 19;
this.attributeValueLabel.Text = "Display the value of the Unique ID if present for all the selected elements";
//
// findButton
//
this.findButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.findButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.findButton.Location = new System.Drawing.Point(311, 157);
this.findButton.Name = "findButton";
this.findButton.Size = new System.Drawing.Size(105, 26);
this.findButton.TabIndex = 3;
this.findButton.Text = "&Find";
this.findButton.Click += new System.EventHandler(this.findButton_Click);
//
// BeamAndSlabParametersForm
//
this.CancelButton = this.exitButton;
this.ClientSize = new System.Drawing.Size(438, 292);
this.Controls.Add(this.attributeValueLabel);
this.Controls.Add(this.attributeValueListBox);
this.Controls.Add(this.addParameterButton);
this.Controls.Add(this.findButton);
this.Controls.Add(this.displayValueButton);
this.Controls.Add(this.exitButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "BeamAndSlabParametersForm";
this.ShowInTaskbar = false;
this.Text = "Beam and Slab New Parameters";
this.ResumeLayout(false);
}
#endregion
}
}
@@ -1,5 +1,5 @@
//
// (C) Copyright 2003-2019 by Autodesk, Inc.
// (C) Copyright 2003-2023 by Autodesk, Inc.
//
// Permission to use, copy, modify, and distribute this software in
// object code form for any purpose and without fee is hereby granted,
@@ -20,33 +20,17 @@
// (Rights in Technical Data and Computer Software), as applicable.
//
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using Autodesk.Revit.UI;
using TaskDialog = Autodesk.Revit.UI.TaskDialog;
namespace Revit.SDK.Samples.BeamAndSlabNewParameter.CS
{
/// <summary>
/// User Interface.
/// </summary>
public class BeamAndSlabParametersForm : System.Windows.Forms.Form
public partial class BeamAndSlabParametersForm : System.Windows.Forms.Form
{
private System.Windows.Forms.Button addParameterButton;
private System.Windows.Forms.Button displayValueButton;
private System.Windows.Forms.Button exitButton;
private System.Windows.Forms.ListBox attributeValueListBox;
private System.Windows.Forms.Label attributeValueLabel;
private Button findButton;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// constructor
/// </summary>
@@ -56,117 +40,6 @@ namespace Revit.SDK.Samples.BeamAndSlabNewParameter.CS
InitializeComponent();
m_dataBuffer = dataBuffer;
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(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()
{
this.addParameterButton = new System.Windows.Forms.Button();
this.displayValueButton = new System.Windows.Forms.Button();
this.exitButton = new System.Windows.Forms.Button();
this.attributeValueListBox = new System.Windows.Forms.ListBox();
this.attributeValueLabel = new System.Windows.Forms.Label();
this.findButton = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// addParameterButton
//
this.addParameterButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.addParameterButton.Location = new System.Drawing.Point(311, 65);
this.addParameterButton.Name = "addParameterButton";
this.addParameterButton.Size = new System.Drawing.Size(105, 26);
this.addParameterButton.TabIndex = 1;
this.addParameterButton.Text = "&Add";
this.addParameterButton.TextAlign = System.Drawing.ContentAlignment.TopCenter;
this.addParameterButton.Click += new System.EventHandler(this.addParameterButton_Click);
//
// displayValueButton
//
this.displayValueButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.displayValueButton.Location = new System.Drawing.Point(311, 111);
this.displayValueButton.Name = "displayValueButton";
this.displayValueButton.Size = new System.Drawing.Size(105, 26);
this.displayValueButton.TabIndex = 2;
this.displayValueButton.Text = "&Display Value";
this.displayValueButton.Click += new System.EventHandler(this.displayValueButton_Click);
//
// exitButton
//
this.exitButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.exitButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.exitButton.Location = new System.Drawing.Point(311, 203);
this.exitButton.Name = "exitButton";
this.exitButton.Size = new System.Drawing.Size(105, 26);
this.exitButton.TabIndex = 4;
this.exitButton.Text = "&Exit";
this.exitButton.Click += new System.EventHandler(this.exitButton_Click);
//
// attributeValueListBox
//
this.attributeValueListBox.ItemHeight = 16;
this.attributeValueListBox.Location = new System.Drawing.Point(19, 46);
this.attributeValueListBox.Name = "attributeValueListBox";
this.attributeValueListBox.Size = new System.Drawing.Size(269, 228);
this.attributeValueListBox.TabIndex = 18;
this.attributeValueListBox.TabStop = false;
//
// attributeValueLabel
//
this.attributeValueLabel.Location = new System.Drawing.Point(19, 9);
this.attributeValueLabel.Name = "attributeValueLabel";
this.attributeValueLabel.Size = new System.Drawing.Size(279, 37);
this.attributeValueLabel.TabIndex = 19;
this.attributeValueLabel.Text = "Display the value of the Unique ID if present for all the selected elements";
//
// findButton
//
this.findButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.findButton.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
this.findButton.Location = new System.Drawing.Point(311, 157);
this.findButton.Name = "findButton";
this.findButton.Size = new System.Drawing.Size(105, 26);
this.findButton.TabIndex = 3;
this.findButton.Text = "&Find";
this.findButton.Click += new System.EventHandler(this.findButton_Click);
//
// BeamAndSlabParametersForm
//
this.CancelButton = this.exitButton;
this.ClientSize = new System.Drawing.Size(438, 292);
this.Controls.Add(this.attributeValueLabel);
this.Controls.Add(this.attributeValueListBox);
this.Controls.Add(this.addParameterButton);
this.Controls.Add(this.findButton);
this.Controls.Add(this.displayValueButton);
this.Controls.Add(this.exitButton);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "BeamAndSlabParametersForm";
this.ShowInTaskbar = false;
this.Text = "Beam and Slab New Parameters";
this.ResumeLayout(false);
}
#endregion
// an instance of Command class
Command m_dataBuffer = null;