mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-09 06:31:32 +00:00
27 lines
2.3 KiB
Plaintext
27 lines
2.3 KiB
Plaintext
{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
{\*\generator Msftedit 5.41.21.2509;}\viewkind4\uc1\pard\kerning2\b\f0\fs20 Application:\b0 \kerning0 AutoRoute\kerning2\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 2010.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 \kerning0 Beginning\kerning2\line\b Category:\b0 MEP\line\b Type:\b0 ExternalCommand\kerning0\line\line\b Subject:\b0 Route ducts and fittings.\line\b Summary:\b0 \line This sample demonstrates how to route a set of ducts and fittings between a base air supply equipment and 2 terminals\f1 .\par
|
|
\f0\par
|
|
\b Classes:\b0 \f1\par
|
|
\pard\li360\f0 Autodesk.Revit.DB.Mechanical.MechanicalSystem\f1\par
|
|
\f0 Autodesk.Revit.DB.Mechanical.Duct\f1\par
|
|
\f0 Autodesk.Revit.DB.FamilyInstance\f1\par
|
|
\f0 Autodesk.Revit.DB.Connector\f1\par
|
|
\f0 Autodesk.Revit.DB.Document\f1\par
|
|
\pard\f0\par
|
|
\b Project Files:\b0 \par
|
|
Command.cs\f1\par
|
|
\pard\li360\f0 This file contains the class Command which inherits from IExternalCommand. The function of it is to route a set of ducts and fittings between a base air supply equipment and 2 terminals.\f1\par
|
|
\par
|
|
\pard\b\f0 Description:\b0 \f1\par
|
|
\pard\fi-360\li360\tx360\f0 -\tab To create a mechanical system, use Document.Create.NewMechanicalSystem\f1 .\par
|
|
\pard\fi-360\li360\f0 -\tab To define the route, first find the bounding box that bounds all the three elements and then try the middle line, quarter lines on the X and Y axis as the trunk with a series of ducts that will be connected to the elements with fittings and ducts\f1 .\par
|
|
\pard\fi-360\li360\tx360\f0 -\tab To create duct, use Document.Create.NewDuct\f1 .\par
|
|
\f0 -\tab To create fittings, use Document.Create.NewElbowFitting and Document.Create.NewTeeFitting.\f1\par
|
|
\f0 -\tab To make a connection between connectors, use Connector.ConnectTo\f1\par
|
|
\pard\par
|
|
\b\f0 Instructions:\cf1\b0 \f1\par
|
|
\pard\fi-360\li360\tx360\cf0\f0 1.\tab Run the command. (Before that, you can move the positions of terminals and equipment)\f1\par
|
|
\pard\fi-360\li360\f0 2.\tab A mechanical system and its duct work will be created automatically.\par
|
|
}
|
|
|