Files
2024-12-12 09:51:40 +01:00

39 lines
3.3 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 ModelLines\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 2008.2\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Elements\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Display and Create ModelLines.\line\b Summary:\b0 \line This sample shows how to get model lines of all kinds and how to create model lines using Revit API\f1 .\par
\b\par
\f0 Classes:\b0 \par
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand\f1\par
\f0 Autodesk.Revit.DB.ModelArc\par
Autodesk.Revit.DB.ModelLine\par
Autodesk.Revit.DB.ModelCurveArray\par
Autodesk.Revit.DB.ModelCurve\f1\par
\f0 Autodesk.Revit.DB.SketchPlane\f1\par
\f0 Autodesk.Revit.Creation.Application\f1\par
\f0 Autodesk.Revit.DB.Arc\f1\par
\f0 Autodesk.Revit.DB.XYZ\f1\par
\f0 Autodesk.Revit.DB.Line\f1\par
\pard\ltrpar\nowidctlpar\b\par
\f0 Project Files:\cf1\b0\par
\cf0\f1\par
\f0 ModelLines.cs\f1\par
\pard\ltrpar\nowidctlpar\li360\f0 This file contains the ModelLines Class which is the main class and takes charge of showing the number of each model line type and creating one instance for each type using Revit API.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
ModelLinesForm.cs\par
\pard\ltrpar\nowidctlpar\li360 This is the main form to show all the model lines and allow user to create model lines and sketch plan.\par
\pard\ltrpar\nowidctlpar\par
\b Description:\b0 \par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 -\tab Get the number of each model line type in a list. ModelLines can be located by iterating through the document elements, such as ModelArc, ModelEllipse and ModelLine and so forth.\par
\pard\ltrpar\nowidctlpar\fi-360\li360 -\tab For creating a ModelArc type model line, input three points to create it.\par
-\tab For creating a ModelLine type model line, input two points to create it.\par
-\tab For the other types, select a base model curve which provides the corresponding curve and then input offset vector from the selected base model curve.\par
-\tab Select a sketch plane to place the created model curve and you can also create a new sketch plane if you want. The creation of sketch plane can be done with NewSketchPlane() method in Autodesk.Revit.Creation.Document class.\par
-\tab The creation of model lines can be done with NewModelCurve() and NewModelCurveArray() methods in Autodesk.Revit.Creation.Document class.\par
\pard\ltrpar\nowidctlpar\b\f1\par
\f0 Instructions:\cf1\b0 \cf0\par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Draw some model lines in Revit.\par
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Load the ModelLines.dll and run the command\f1 ,\f0 it will get all model lines in Revit and display the number of each type.\par
3.\tab You can create a model line type by inputting some information on a sketch plan. Such as input three points to create a ModelArc type model line and then click the create button.\par
4.\tab You can also create a new sketch plan using the \ldblquote New\rdblquote button. You should supply two model lines to create it.\par
}