mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-09 14:41:37 +00:00
26 lines
2.4 KiB
Plaintext
26 lines
2.4 KiB
Plaintext
{\rtf1\fbidis\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052\deftab420{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset0 Times New Roman;}{\f2\fnil\fprq2\fcharset0 Txt;}}
|
|
{\colortbl ;\red0\green0\blue255;}
|
|
{\info{\horzdoc}{\*\lchars ([\'7b}{\*\fchars !),.:\'3b?D]\'7d}}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 ElementViewer\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 8.0\line\b Programming Language:\b0 VB.NET\line\b Skill Level:\b0 Medium\line\b Category:\b0 Geometry\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 View element wireframe.\line\b Summary:\b0 \line This program demonstrates the usage of element's geometry. This sample uses a helper program RevitViewer.\i \f1\par
|
|
\i0\f0\par
|
|
\b Classes:\b0 \f1\par
|
|
\pard\ltrpar\nowidctlpar\fi360\f0 Autodesk.Revit.DB.GeometryElement\par
|
|
Autodesk.Revit.DB.GeometryObject\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
\b Project Files:\b0\i \cf1\i0\f1\par
|
|
\cf0\f0 Main.vb\f1\par
|
|
\pard\ltrpar\nowidctlpar\li420\f0 This is the main DLL source file. It contains the class Command which implements interface IExternalCommand, and gets the geometry model from element to draw.\i\f1\par
|
|
\pard\ltrpar\nowidctlpar\i0\f0\par
|
|
\b Description:\b0 This sample demonstrates the following functionalities:\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li420\tx420\f2 -\tab\f0 The property Geometry can retrieve the geometric representation of the element. It will retrieve 3d representation of the element. Nothing will be returned for symbols, annotations or details. This involves extensive parsing or Revit's data structures, so try to minimize calls if performance is critical.\cf1\f1\par
|
|
\pard\ltrpar\nowidctlpar\cf0\f0\par
|
|
\b Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li420\tx420 1.\tab Draw an element first\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li420 2.\tab Then, select it.\par
|
|
3.\tab Run the external command. \par
|
|
4.\tab Expected result: It will show the element's geometry in a wireframe in a viewer.\par
|
|
\pard\ltrpar\nowidctlpar\qj Note: Some elements don\rquote t expose geometry, for example, curtain wall and dimension.\par
|
|
In case of a curtain wall, try selecting a whole wall by a window/box instead of a single pick. \par
|
|
So that internal components will be selected and its geometry will be able to be displayed.\par
|
|
}
|
|
|