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

39 lines
2.4 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\b\f0\fs20 Application:\b0 CreateTruss\b\f1\par
\f0 Revit Platform:\b0 Structure\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 Truss\line\b Summary:\b0 \line This sample demonstrates how to create a mono truss in truss family document.\i\f1\par
\b\i0\par
\f0 Classes: \f1\par
\pard\ltrpar\fi360\b0\f0 Autodesk.Revit.UI.IExternalCommand\f1\par
\f0 Autodesk.Revit.DB.Document\f1\par
\pard\ltrpar\nowidctlpar\fi360\f0 Autodesk.Revit.DB.ModelCurve\f1\par
\pard\ltrpar\fi360\f0 Autodesk.Revit.DB.Family\par
Autodesk.Revit.Creation\f1 .\f0 ItemFactoryBase\par
Autodesk.Revit.Creation.FamilyItemFactory\f1\par
\par
\pard\ltrpar\b\par
\f0 Project Files:\b0 \par
Command.cs\f1\par
\f0 This file contains the class Command that inherits from IExternalCommand. The class implements the Execute method and be used to create a mono truss in truss family document.\f1\par
\par
\par
\b\f0 Description:\b0 \par
The sample utilizes the method NewModelCurve to create the truss curves and utilizes the TrussCurveType property of ModelCurve class to set their truss types.\par
Some useful constraints are added to the truss curves by the method NewAlignment\f1 .\par
\par
\par
\b\f0 Instructions:\cf1\b0 \f1\par
\pard\ltrpar\fi360\cf0\f0 This external command can be run on Revit family document\f1 .\par
\pard\ltrpar\fi-360\li360\tx360\f0 1.\tab Update your Revit.ini by following lines: \f1\par
\pard\ltrpar\li360\f0 [ExternalCommands]\par
ECCount = 1\par
ECName1 = Create Truss\f1\par
\f0 ECClassName1 = Revit.SDK.Samples.CreateTruss.CS.Command\f1\par
\f0 ECAssembly1 = \i <your path>\f1\\\i0\f0 CreateTruss.dll\f1\par
\f0 ECDescription1 = Create truss in truss family document.\f1\par
\pard\ltrpar\fi-360\li360\tx360\f0 2.\tab Start Revit\f1 .\par
\f0 3.\tab In order to use the sample, the user should manually create a family document with structural trusses template. If the template is not right, the command will fail.\par
4.\tab Run this external command and a mono truss is created in truss family document.\f1\par
\pard\ltrpar\li360\f0 \par
}