mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-06 05:01:35 +00:00
28 lines
2.3 KiB
Plaintext
28 lines
2.3 KiB
Plaintext
{\rtf1\ansi\ansicpg1252\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fswiss\fprq2\fcharset0 Arial;}{\f1\froman\fprq2\fcharset2 Symbol;}{\f2\froman\fprq2\fcharset0 Times New Roman;}}
|
|
{\*\generator Msftedit 5.41.15.1515;}\viewkind4\uc1\pard\nowidctlpar\b\f0\fs20 Application:\b0 SolidSolidCut\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 2011.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Geometry\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 \lang1036 Solid-Solid Cut and Uncut\lang1033 .\line\b Summary:\b0 \line Shows how to use \lang1036 Solid-Solid Cut and Uncut.\lang1033\par
|
|
\par
|
|
\lang1036\b Classes\b0 : \par
|
|
\pard\nowidctlpar\fi180\li180 Autodesk.Revit.IExternalCommand \par
|
|
\pard\nowidctlpar\fi360 Autodesk.Revit.DB.SolidSolidCutUtils\par
|
|
\pard\nowidctlpar\lang1033\b Project Files\b0 : \par
|
|
\pard\nowidctlpar\fi-360\li720\f1\'b7\tab\f0 Command.cs\par
|
|
\pard\nowidctlpar\li284 This file contains two classes which inherit from IExternalCommmand interface. \par
|
|
The function of the first class Cut is checking and adding cut between two solids. The function of the second class Uncut is removing the cut operation between two solids.\par
|
|
\pard\nowidctlpar\par
|
|
\b Description\b0 : \par
|
|
The sample defines two classes which inherit from IExternalCommand interface, and implement the Execute method with cut or uncut two solids operation.\par
|
|
The class Cut implements the function that can let the sphere cut the cube.\par
|
|
The class Uncut implements the function that can remove the cutting relationship between the sphere and the cube.\par
|
|
\pard\nowidctlpar\sa200\sl276\slmult1\f2\fs22\par
|
|
\pard\nowidctlpar\b\f0\fs20 Instructions\b0 : \par
|
|
\pard\nowidctlpar\fi-360\li720 1.\tab Open Revit application.\par
|
|
2.\tab Open the family file SolidSolidCut.rfa\f2 .\f0\par
|
|
3.\tab Run the command \ldblquote SolidSolidCut-Cut\rdblquote\f2 .\f0\par
|
|
4.\tab The sphere will cut the cube.\par
|
|
5.\tab Run the command \ldblquote SolidSolidCut-Uncut\rdblquote\par
|
|
6.\tab The cutting operation between the sphere and the cube will be removed.\par
|
|
\pard\nowidctlpar\par
|
|
\b Notes:\par
|
|
\b0 This Solid\f2 -\f0 Solid Cut operation only works when editing a conceptual mass family.\f2\par
|
|
}
|
|
|