Files
RevitSdkSamples/SDK/Samples/FamilyCreation/CreateAirHandler/CS/ReadMe_CreateAirHandler.rtf
T
2019-09-11 14:43:53 +02:00

40 lines
2.6 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\b\f0\fs20 Application:\b0 CreateAirHandler\b\f1\par
\f0 Revit Platform:\b0 MEP\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 Medium\line\b Category:\b0 Families\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Create one air handler and add connectors.\line\b Summary:\b0 \line This sample creates one air handler and adds connectors (piping, duct).\i\f1\par
\b\i0\par
\lang1036\f0 Classes: \f1\par
\pard\ltrpar\nowidctlpar\fi360\b0\f0 Autodesk.Revit.UI.IExternalCommand\f1\par
\f0 Autodesk.Revit.UI.UIDocument\f1\par
\lang1033\f0 Autodesk.Revit.Creation.FamilyItemFactory\f1\par
\f0 Autodesk.Revit.DB.Extrusion\par
Autodesk.Revit.DB.Mechanical.DuctConnector\par
Autodesk.Revit.DB.Plumbing.PipeConnector\par
Autodesk.Revit.DB.CombinableElement\f1\par
\pard\ltrpar\nowidctlpar\b\par
\f0 Project Files:\b0 \par
Command.cs\f1\par
\f0 This file contains the class Command that inherits from IExternalCommand and implements the Execute method to create some extrusions and add connectors on them\f1 .\par
\par
\b\f0 Description:\b0 \par
This sample first utilizes the OwnerFamily.FamilyCategory property to check the template.\f1\par
\par
\f0 And then this sample utilizes the NewExtrusion, NewPipeConnector, NewDuctConnector in Autodesk.Revit.Creation.FamilyItemFactory class to create handler and connectors, and utilizes xxxDuct properties to set proper parameters of connectors.\f1\par
\par
\f0 Finally, this sample utilizes the method Document::CombineElements to join the extrusions in one air handler\f1 .\par
\par
\par
\b\f0 Instructions:\cf1\b0 \par
\cf0 This external command can be run on Revit family.\f1\par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 1.\tab Update your Revit.ini by following lines: \f1\par
\pard\ltrpar\nowidctlpar\li360\f0 [ExternalCommands]\par
ECCount = 1\par
ECName1 = Create Air Handler\par
ECClassName1 = Revit.SDK.Samples.CreateAirHandler.CS.Command\par
ECAssembly1 = \i <your path>\f1\\\i0\f0 CreateAirHandler.dll\par
ECDescription1 = Create one air handler and add connectors.\f1\par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 2.\tab Create a Revit family with \ldblquote Mechanical Equipment\rdblquote template file.\f1\par
\pard\ltrpar\nowidctlpar\fi-360\li360\f0 3.\tab Run this external command and the air handler is created. \par
\pard\ltrpar\nowidctlpar \par
}