mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-09 14:41:37 +00:00
24 lines
2.2 KiB
Plaintext
24 lines
2.2 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 VersionChecking\line\b Revit Platform:\b0 All\line\b Revit Version:\b0 2011.0\line\b First Released For:\b0 9.0\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Parameters, Basics\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Version information of Revit application.\line\b Summary:\b0 \line This sample demonstrates how to get Revit version information: product name, product version and product build number.\par
|
|
\par
|
|
\b Classes:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi360 Autodesk.Revit.UI.IExternalCommand \par
|
|
Autodesk.Revit.ApplicationServices.Application\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Project Files:\b0 \cf1\par
|
|
\cf0 VersionChecking.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360\tx720 This file contains the class Command that inherits from IExternalCommand interface and implements the Execute method. Besides, the class implements all functionalities of getting relevant product information.\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b Description:\b0 \par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357\tx357 -\tab This sample adds a command named \ldblquote About Revit\rdblquote to display the product name, version and build number of the Revit main program in a dialog\f1 .\par
|
|
\f0 -\tab The product name can be accessed through Application.VersionName property.\par
|
|
\pard\ltrpar\nowidctlpar\fi-357\li357 -\tab The product version can be accessed through Application.VersionNumber property.\par
|
|
-\tab The build number can be accessed through Application.VersionBuild property.\par
|
|
\pard\ltrpar\nowidctlpar\f1\par
|
|
\b\f0 Instructions:\cf1\b0 \cf0\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360 1.\tab No context to execute this sample, please directly run this command.\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\f0 2.\tab Expected result: invoke this command a dialog will present with the product name, version and build number.\f1\par
|
|
\pard\ltrpar\nowidctlpar\f0\par
|
|
}
|
|
|