mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 10:59:05 +00:00
47 lines
4.7 KiB
Plaintext
47 lines
4.7 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\blue0;\red0\green0\blue255;}
|
|
\viewkind4\uc1\pard\ltrpar\nowidctlpar\b\f0\fs20 Application:\b0 RvtSamples\f1\par
|
|
\b\f0 Revit Platform:\b0 All\f1\par
|
|
\b\f0 Revit Version:\b0 2010.0\f1\par
|
|
\b\f0 First Released For:\b0 2009.0\b\f1\par
|
|
\f0 Last Modified:\b0 02/26/2008\par
|
|
\b Modified By:\b0 LL Autodesk \f1\par
|
|
\b\f0 Programming Language:\b0 C#\f1\par
|
|
\b\f0 Skill Level:\b0 \cf1 Beginning\cf0\f1\par
|
|
\b\f0 Category:\b0 Basics\f1\par
|
|
\b\f0 Type: \b0 External\lang1036 Application\lang1033\f1\par
|
|
\par
|
|
\b\f0 Subject:\b0 Add menu items of samples to Revit.\line\b Summary:\b0\f1\par
|
|
\f0 This sample integrates all other samples excluding ExternalApplications into a panel named \ldblquote RvtSamples\rdblquote under menu \ldblquote Add-Ins\rdblquote\f1 .\par
|
|
\par
|
|
\b\f0 Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi180\li180\lang1036 Autodesk.Revit.ControlledApplication\f1\par
|
|
\f0 Autodesk.Revit.RibbonPanel\par
|
|
Autodesk.Revit.PulldownButton\par
|
|
Autodesk.Revit.PushButton\par
|
|
Autodesk.Revit.PulldownButtonData\par
|
|
\par
|
|
\lang1033\par
|
|
\pard\ltrpar\nowidctlpar\b Project Files:\b0 \f1\par
|
|
\f0 Application.cs\f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\lang1036\f0 It contains the class Application which implements interface IExternalApplication\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\lang1033\b\par
|
|
\f0 Description:\b0 \f1\par
|
|
\f0 This sample provides following functionalities.\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 -\tab Extract samples information from a provided text file named \ldblquote\b RvtSamples.txt\b0\rdblquote and parse them into menu items. The file can be customized and it must follow the following fixed format. \f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\f0 Every menu item consists of seven lines. \par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780 1.\tab The first line represents the name of the pulldown menu that the sample belongs to. This pulldown menu will be available on the Ribbon and the command(s) associated to it will be added as required. There are 12 pulldown menus included by default for organizing the samples in the Revit SDK. These 12 samples will have appropriate icons and will automatically appear in the Ribbon. If you choose to enter the name of a pulldown other than one of these 12, your pulldown will be added without an icon to the far right of the panel.\par
|
|
2.\tab The second line represents the display name of sample.\par
|
|
3.\tab The third line represents the description of the menu item.\f1\par
|
|
\f0 4.\tab The fourth line represents the \ldblquote RibbonItem.LargeImage\rdblquote property. This should be the path to a 32x32 pixel image file shown on the button for this command. Optional, leave this line blank if there is no image to show.\f1\par
|
|
\f0 5.\tab The fifth line represents the \ldblquote RibbonItem.Image\rdblquote property. This should be a path to a 16x16 pixel image file shown if the command is promoted to the Quick Access Toolbar. Optional, leave this line blank if there is no image to show.\f1\par
|
|
\f0 6.\tab The sixth line represents the path of the assembly location of the menu item. \f1\par
|
|
\pard\ltrpar\nowidctlpar\li720\b\f0 [NOTE] In the provided text file every item is provided a default path within drive Z. To run the sample successfully, the default path must be modified to the samples\rquote real paths on your local drive. Assuming your samples local path is C:\\Revit\\SDK2009, you can either replace all \ldblquote Z:\rdblquote in the text file with \ldblquote C:\\Revit\rdblquote or create a virtual drive Z (via running the dos command \ldblquote SUBST Z: C:\\Revit\\SDK2009\rdblquote )\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\fi-420\li780\b0\f0 4.\tab The last line represents the class name of the menu item.\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360 - \ldblquote\b RvtSamples.txt\b0\rdblquote can be customized to include other files contain sample list. The files must follow the above fixed format. Every file to be included in \ldblquote RvtSamples.txt\rdblquote should be added to \ldblquote RvtSamples.txt\rdblquote and the line should start with \ldblquote #include\rdblquote (case-sensitive free). The file path can be quoted in \ldblquote\rdblquote , <> or nothing.\f1\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b\f0 Instructions:\cf2\b0 \f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\cf0\f0 To use this sample, the external application item should be added into Revit.ini first. Once that is done, menu items of samples provided in the text file will be added to Revit automatically every time Revit starts up. \par
|
|
\pard\ltrpar\nowidctlpar\f1\par
|
|
}
|
|
|