mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-06 05:01:35 +00:00
48 lines
4.7 KiB
Plaintext
48 lines
4.7 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\li1\b\f0\fs20 Application:\b0 Loads\line\b Revit Platform:\b0 Structure\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Medium\line\b Category:\b0 Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Operate Load Case, Load Nature, Load Usage and Load Combination.\line\b Summary:\b0 \line This sample shows how to operate Load Case, Load Nature, Load Usage and Load Combination\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\b\par
|
|
\f0 Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand\f1\par
|
|
\f0 Autodesk.Revit.DB.Structure.LoadCase\f1\par
|
|
\f0 Autodesk.Revit.DB.Structure.LoadNature\par
|
|
Autodesk.Revit.DB.Structure.LoadCombination\par
|
|
Autodesk.Revit.Creation.Document\par
|
|
\pard\ltrpar\nowidctlpar\fi361\b\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0 Project Files:\cf1\b0\par
|
|
\cf0 Loads.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360 There is a class named Loads which implements the IExternalCommand interface. This file uses the other files to show how to operate Load Case, Load Nature, Load Usage and Load Combination\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\fi240\par
|
|
\pard\ltrpar\nowidctlpar\f0 LoadCaseDeal.cs\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi360\f0 This file contains the functions to operate the Load Case and Load Nature.\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi240\par
|
|
\pard\ltrpar\nowidctlpar\f0 LoadCombinationDeal.cs\par
|
|
\pard\ltrpar\nowidctlpar\fi360 This file contains the functions to operate the Load Combination and Load Usage.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
LoadCaseTabPage.cs\par
|
|
\pard\ltrpar\nowidctlpar\fi360 This UserControl is used to deal with the operation of load case on the form\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\fi240\f0\par
|
|
\pard\ltrpar\nowidctlpar LoadCombinationTabPage:\par
|
|
\pard\ltrpar\nowidctlpar\fi360 This UserControl is used to deal with the operation of load combination on the form.\par
|
|
\pard\ltrpar\nowidctlpar\fi240\par
|
|
\pard\ltrpar\nowidctlpar\b Description:\b0 \par
|
|
Functionalities:\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 -\tab Get all the load cases, load natures, load combinations, load usages, and formulas in a Revit project.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 -\tab Present all existing Load Cases in current project including their names, case numbers, natures, and categories; Modify name, nature and category. Then allow users to \ldblquote Duplicate\rdblquote a new Load Case into current project, meanwhile displaying them on the dialog.\f1\par
|
|
\f0 -\tab Show all the load natures (including the existing natures in current project already and the added natures), which name can be modified, and an \ldblquote Add\rdblquote button allow to add a new one\f1 .\par
|
|
\f0 -\tab Add new Load Combination into current project and set its parameters such as load cases and load usages in creation. \par
|
|
-\tab Delete certain Load Combination or Load usage.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0 Implementation:\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 -\tab New load case and new load combination can be created by using NewLoadCase () and NewLoadCombination () methods in namespace Autodesk.Revit.Creation.Document.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 -\tab New load nature and load usage can be created by using NewLoadNature () and NewLoadUsage () method in namespace Autodesk.Revit.Creation.Document.\par
|
|
-\tab The load case element can be retrieved from a Load Instance object using the parameter named \ldblquote Load Case\rdblquote .\par
|
|
-\tab All the load natures, load cases, load combinations and load usages can be found by iterating through the document elements.\par
|
|
-\tab All objects have a Name property can be used to retrieve a user visible name.\par
|
|
\pard\ltrpar\nowidctlpar\b\par
|
|
Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Run the command, it will show all the load cases, load natures, load combinations, load usage, and formulas in Revit project\f1 .\f0 Using Revit Menu Command \ldblquote Setting->Structural Setting\rdblquote can open a similar dialog\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\f0 2.\tab Select a Load Case then you can duplicate a new Load Case in Load Cases Tab Page.\par
|
|
3.\tab Select a Load Nature then you can add a new Load Nature in Load Cases Tab Page.\par
|
|
4.\tab You can create a new Load or delete Combination in the Load Combination Tab Page by using the \ldblquote\ul A\ulnone dd\rdblquote or \ldblquote\ul D\ulnone elete\rdblquote buttons. You can also add or delete Load Combination Usage.\par
|
|
}
|
|
|