Files
2024-12-12 10:25:07 +01:00

49 lines
4.2 KiB
Plaintext

{\rtf1\fbidis\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}}
\viewkind4\uc1\pard\ltrpar\b\f0\fs20 Application:\b0 PlaceFamilyInstanceByFace\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 2009.0\line\b Last Modified:\b0 02/26/2008\line\b Modified By:\b0 LL Autodesk\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 family instance on face.\line\b Summary:\b0 \line This sample demonstrates how to create family instance on face.\f1\fs21\par
\par
\b\f0\fs20 Classes: \par
\pard\ltrpar\fi360\b0 Autodesk.Revit.IExternalCommand\par
Autodesk.Revit.Creation.Document\par
Autodesk.Revit.Symbols.FamilySymbol\f1\par
\f0 Autodesk.Revit.Elements.FamilyInstance\par
Autodesk.Revit.Geometry.Face\par
Autodesk.Revit.Geometry.Options\par
Autodesk.Revit.Geometry.Solid\par
\pard\ltrpar\f1\fs21\par
\b\f0\fs20 Project Files:\b0\f1\fs21 \par
\f0\fs20 Command.cs\par
\pard\ltrpar\li360\tx720 This file contains the class Command which inherits from IExternalCommand interface and implements the Execute method.\par
\pard\ltrpar\f1\fs21\par
\f0\fs20 FamilyInstanceCreator.cs\par
\pard\ltrpar\li360\tx720 This is main data class for creating family Instance by face\f1 .\f0 It contains all operations in Revit.\f1\par
\pard\ltrpar\tx720\par
\pard\ltrpar\f0 PointUserControl.cs\par
\pard\ltrpar\li360\tx720 This class defines a user control for specifying point data which contains three text boxes for X, Y and Z coordinates of a point\f1 .\par
\pard\ltrpar\f0 \par
BasedType.cs\par
\pard\ltrpar\li360\tx720 This class contains a dialog which provides two options for user to choose the type to create the family instance. It provides two types - Point-based and Line-based. \par
\pard\ltrpar\f1\par
\f0 PlaceFamilyInstanceForm.cs\par
\pard\ltrpar\li360\tx720 This file contains a dialog which provides options to specify positions and face on which the family instance will be placed.\f1\par
\pard\ltrpar\fs21\par
\b\f0\fs20 Description\f1\fs21 :\b0 \par
\f0\fs20 This sample will demonstrate how to create family instance on face.\par
\f1\fs21\par
\b\f0\fs20 Instructions\f1\fs21 :\b0 \par
\pard\ltrpar\fi-360\li360\tx360\f0\fs20 1.\tab Draw some elements with face geometry in current document\f1 .\par
\pard\ltrpar\fi-360\li360\f0 2.\tab Select an element and execute the command\f1 .\par
\f0 3.\tab Choose a type in the \ldblquote Based Type\rdblquote dialog and click \ldblquote Next\rdblquote button. \f1\par
\f0 4.\tab Specify the face, family symbol and positions information. \f1\par
\f0 5.\tab Click \ldblquote Create\rdblquote button to create a family instance\f1 .\par
\pard\ltrpar\fs21\par
\b\f0\fs20 Notes\f1\fs21 :\b0 \par
\pard\ltrpar\fi-360\li360\tx360\f0\fs20 1.\tab Prepare your Revit project. \par
\pard\ltrpar\li360 Open or new a Revit project and make sure there are some face-based and point-based family symbols in the project. A sample project file PlaceFamilyInstanceByFace.rvt is available in the sample\rquote s folder.\f1\par
\pard\ltrpar\fi-360\li360\tx360\f0 2.\tab Currently in API there is no good way to check whether a family symbol is face-based and point-based/line based. User must know clear about the family symbol selected to create a family instance. The sample will skip validating that and just provide message if creation fails. \f1\par
\pard\ltrpar\fi-360\li360\f0 3.\tab The default family symbol is the one provided in this sample. (Line: \ldblquote Line-based\rdblquote ; Point: \ldblquote Point-based\rdblquote )\f1\par
\f0 4.\tab The default value of start point is the minimum point of this selected face. The default value of end point is the maximum point of this selected face. \f1\par
\f0 5.\tab The default value of location point is the center point in bounding box of the selected face\f1\par
\f0 6.\tab Please copy the rfa files to the Revit installation folder or load them into current document if you use the DLL of this sample directly in Revit. Nothing to do when you debug this project.\f1\par
\pard\ltrpar\par
}