{\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 AutoJoin\b\f1\par \f0 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 Medium\line\b Category:\b0 Geometry\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Automatically join geometry of combinable elements\f1 .\f0\line\b Summary:\b0 \line This sample demonstrates how to automatically join geometry between multiple generic forms for use in family modeling and massing\f1 .\f0 \i\f1\par \b\i0\par \f0 Classes: \f1\par \pard\ltrpar\nowidctlpar\fi360\b0\f0 Autodesk.Revit.UI.IExternalCommand\f1\par \f0 Autodesk.Revit.DB.Document\f1\par \f0 Autodesk.Revit.DB.CombinableElement\f1\par \pard\ltrpar\nowidctlpar\b\par \f0 Project Files:\b0 \par Command.cs\f1\par \f0 Implement this method as an external command for Revit.\f1\par \f0 AutoJoin.cs\par Join all the overlapping generic forms in this document.\f1\par \f0 Intersection.cs\par Tell if two geometry objects are overlapping or not.\par \f1\par \b\f0 Description:\b0 \par This sample utilizes the method Document::CombineElements to join geometry between overlapping generic forms for use in family modeling and massing.\f1\par \par \f0 This sample provide a utility method to tell if two geometry objects are overlapping or not, based on the API method Face::Intersect(Curve).\f1\par \par \par \b\f0 Instructions:\cf1\b0 \f1\par \pard\ltrpar\nowidctlpar\li360\cf0\f0 This external command can be run on Revit family document\f1 .\par \par \pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 1.\tab Open a Revit family that includes generic forms (Sweep, Blend, Extrusion and Revolution)\f1 .\par \f0 2.\tab Run this external command and all overlapping generic forms are joined.\f1\par \pard\ltrpar\nowidctlpar\li360\par \f0 Optional:\par \pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Open a Revit family that includes generic forms (Sweep, Blend, Extrusion and Revolution).\f1\par \pard\ltrpar\nowidctlpar\fi-360\li360\f0 2.\tab Select multiple generic forms\f1 .\par \f0 3.\tab Run this external command and the selected generic forms are joined, whether or not they overlap.\f1\par \pard\ltrpar\nowidctlpar\li360\par \f0 \par }