mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-11 23:43:17 +00:00
31 lines
2.4 KiB
Plaintext
31 lines
2.4 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 DistanceToPanels\line\b 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 Beginning\line\b Category:\b0 Geometry\f1\par
|
|
\b\f0 Type:\b0 ExternalCommand\line\line\b Subject:\b0 Divided surface panel measurement \par
|
|
\par
|
|
\b Summary:\b0 \line Measure the distance from a selected object to all divided surface panels. Store this value for each panel in an instance parameter Distance.\f1\par
|
|
\b\par
|
|
\f0 Classes:\b0 \par
|
|
\tab Autodesk.Revit.UI.IExternalCommand\par
|
|
\f1\fs22\tab\f0\fs20 Autodesk.Revit.DB.DividedSurface\par
|
|
\tab Autodesk.Revit.DB.Panel\par
|
|
\b\f1\par
|
|
\f0 Project Files:\par
|
|
\cf1\b0\par
|
|
\cf0 Command.cs\par
|
|
\tab This file contains the SetDistanceParam class and is invoked by the external command. This class is used to compute the distance data and update the parameter\f1 .\par
|
|
\f0\par
|
|
\b Description:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li720 1.\tab Find divided surfaces in the massing family\par
|
|
2.\tab Find all panels in the DividedSurface elements. The panels are FamilyInstance elements returned by the DividedSurface.GetTileFamilyInstance(GridNode, tileIndex) method.\par
|
|
3.\tab Find the location of the selected "origin" component.\par
|
|
4.\tab Check the parameters of each panel and set the "Distance" instance parameter with the distance from that panel to the origin component.\f1\par
|
|
\pard\ltrpar\nowidctlpar\b\par
|
|
\f0 Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li720\tx360 1.\tab Open a massing family with divided surfaces such as DistanceToPanels.rfa\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li720 2.\tab The divided surfaces should use a panel with a Distance instance parameter.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li720\tx360 3.\tab The massing family should include a family instance that will be used as the origin for the distance computation.\par
|
|
4.\tab Select the instance mentioned in step 3) and run this command\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li720 5.\tab The Distance parameter will be populated for each panel. This parameter can be scheduled in the project environment and used to drive the geometry of the panels.\par
|
|
}
|
|
|