mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-20 12:12:04 +00:00
32 lines
2.9 KiB
Plaintext
32 lines
2.9 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 InplaceFamilyAnalyticalModel3D\line\b Revit Platform:\b0 Structure\line\b Revit Version:\b0 2010.0\line\b First Released For:\b0 2008.0\line\b Last Modified:\b0 02/26/2008\line\b Modified By:\b0 JY Autodesk\line\b Programming Language:\b0 VB.NET\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Structure\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 AnalyticalModel3D elements.\line\b Summary:\b0 \line This sample demonstrates how to read an analytical model 3D object from an in-place family instance.\par
|
|
\par
|
|
\b Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.IExternalCommand \par
|
|
Autodesk.Revit.Elements.FamilyInstance\par
|
|
Autodesk.Revit.Structural.AnalyticalModel3D\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Project Files:\b0 \cf1\par
|
|
\cf0 InplaceFamilyAnalyticalModel3D.vb\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This is the main DLL source file. It contains the class Command which inherits IExternalCommand interface and implements Execute method. And this class also dumps the family instance information (Family name, Family Symbol name and Family Instance name) and the curves of its 3D analytical model.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Description:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357\tx357 -\tab Iterate through the selection, picking out family instances that have a 3D analytical model.\par
|
|
-\tab Output family instance information\par
|
|
\pard\ltrpar\nowidctlpar\fi-363\li720\tx720 -\tab Family name (use FamilyInstance.Symbol.Family.Name)\par
|
|
-\tab Family Symbol name (use FamilyInstance.Symbol.Name)\par
|
|
\pard\ltrpar\nowidctlpar\fi-363\li720 -\tab Family Instance name (use FamilyInstance.Name)\par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357\tx357 -\tab Use FamilyInstance.AnalyticalModel property to access the analytical model and check if the type is AnalyticalModel3D. Then output the curve of this AnalyticalModel3D.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab Create an in-place structure column that has AnalyticalModel.\par
|
|
\pard\ltrpar\nowidctlpar\li360\par
|
|
[Tip]A sample project file InplaceFamilyAnalyticalModel3D.rvt is available in the sample\rquote s folder.\f1\par
|
|
\f0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 2.\tab Select some elements in which the in-place structure column is included.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 3.\tab Run this sample.\par
|
|
4.\tab Expected result: the selected column\rquote s basic information and the AnalyticalModel3D curves information will be dumped into InplaceFamilyAnalyticalModel3D.log file.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
}
|
|
|