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

25 lines
2.1 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 DeleteDimensions\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Basics, Annotation\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Delete dimensions.\line\b Summary:\b0 \line Show how to delete Dimension elements.\b\par
\b0\par
\b Classes:\b0 \par
\pard\ltrpar\nowidctlpar\fi180\li180 Autodesk.Revit.UI.IExternalCommand \par
Autodesk.Revit.DB\lang1031 .Dimension\f1\par
\f0 Autodesk.Revit.DB.Element\par
\pard\ltrpar\nowidctlpar\li720\par
\pard\ltrpar\nowidctlpar\lang1033\b Project Files:\b0 \par
DeleteDimesions.cs\f1\par
\pard\ltrpar\nowidctlpar\li360\tx720\f0 This file contains a class Command that implements the IExternalCommand, the function of the class is to get the dimension objects from the selected elements and delete those that are not pinned.\f1\par
\pard\ltrpar\nowidctlpar\f0\par
\b Description:\b0 \par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 -\tab To get the select elements use Application.ActiveUIDocument.Selection.Elements.\par
\pard\ltrpar\nowidctlpar\fi-360\li360 -\tab To verify the dimension is pinned or not use Dimension.Pinned.\par
-\tab To delete a dimension use Document.Delete(ElementSet).\par
\pard\ltrpar\nowidctlpar\par
\b Instructions:\cf1\b0 \cf0\par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Open or new a Revit project and make sure all needed Dimensions are placed. A sample project file DeleteDimensions.rvt is available in the sample\rquote s folder.\par
\pard\ltrpar\nowidctlpar\fi-360\li360 2.\tab Select some dimensions to be deleted.\f1\par
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 3.\tab Run the command.\f1\par
\pard\ltrpar\nowidctlpar\fi-360\li360\f0 4.\tab The dimensions will be deleted if it is not pinned.\f1\par
}