mirror of
https://github.com/jeremytammik/RevitSdkSamples.git
synced 2026-08-17 19:09:03 +00:00
44 lines
3.5 KiB
Plaintext
44 lines
3.5 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 ProjectInfo\line\b Revit Platform:\b0 All\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 AL Autodesk\line\b Programming Language:\b0 C#\line\b Skill Level:\b0 Beginning\line\b Category:\b0 Basics\line\b Type:\b0 ExternalCommand\line\line\b Subject:\b0 Display project information.\line\b Summary:\b0 \line Demonstrates how to manipulate project information.\f1\par
|
|
\f0\par
|
|
\b Classes:\b0 \f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\f0 Autodesk.Revit.Document\f1\par
|
|
\f0 Autodesk.Revit.Elements.ProjectInfo\f1\par
|
|
\f0 Autodesk.Revit.Elements.gbXMLParamElem\f1\par
|
|
\f0 Autodesk.Revit.Parameters.BuildInParameter\f1\par
|
|
\f0 Autodesk.Revit.Parameters.BuildingType\f1\par
|
|
\f0 Autodesk.Revit.Symbols.MEPBuildingConstruction\f1\par
|
|
\f0 Autodesk.Revit.Parameters.ServiceType\f1\par
|
|
\f0 Autodesk.Revit.Site.ProjectLocation\par
|
|
Autodesk.Revit.Site.ProjectPosition\par
|
|
Autodesk.Revit.Construction\par
|
|
\f1\par
|
|
\pard\ltrpar\nowidctlpar\b\f0 Project Files:\b0 \par
|
|
Command.cs\f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\f0 This file contains the class Command which inherits from IExternalCommand.\f1\par
|
|
\par
|
|
\pard\ltrpar\nowidctlpar\f0 Wrappers.cs\f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\f0 This file contains interface IWrapper and its subclasses\f1 .\f0 Those classes are the wrappers of class ProjectInfo, gbXMLParamElem, Construction and ProjectPosition etc.\f1\par
|
|
\par
|
|
\pard\ltrpar\nowidctlpar\f0 ProjectInfoForm.cs\f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\f0 This file contains a Form class ProjectInfoForm which consists of ok\f1 ,\f0 cancel buttons and a PropertyGrid which will show the project information\f1 .\par
|
|
\par
|
|
\pard\ltrpar\nowidctlpar\f0 Converters.cs\par
|
|
\pard\ltrpar\nowidctlpar\li360 This file contains TypeConverters for PropertyGrid usage\f1 .\par
|
|
\par
|
|
\pard\ltrpar\nowidctlpar\f0 WrapperCustomDescriptor.cs\f1\par
|
|
\pard\ltrpar\nowidctlpar\li360\f0 This file contains a custom descriptor which is used with RevitVersionAttribute to control the visibility of properties in different Revit platform.\f1\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b\f0 Description:\b0 \f1\par
|
|
\f0 This sample is to show the same function as clicking Revit menu \ldblquote Settings->Project Information\'85\rdblquote that different platform of Revit will show different information.\f1\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\f0 -\tab To get the project information of a document, use Document.ProjectInformation property\f1 .\par
|
|
\f0 -\tab To get the \ldblquote Energy Data\rdblquote use ProjectInfo.gbXMLSettings\f1 .\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\f0 -\tab To get Construction, using gbXMLParamElem.BuildingConstruction.get_BuildingConstruction(ConstructionType)\f1 .\par
|
|
\f0 -\tab Using TypeConverterAttribute and DisplayNameAttribute to control the display of properties, using BrowsableAttribute and RevitVersionAttribute to control the visibility.\f1\par
|
|
\pard\ltrpar\nowidctlpar\par
|
|
\b\f0 Instructions:\cf1\b0 \f1\par
|
|
\pard\ltrpar\nowidctlpar\fi-360\li360\tx360\cf0\f0 1.\tab Run the command, there shows a form.\f1\par
|
|
\f0 2.\tab Modify some information in the PropertyGrid, then click \ldblquote OK\rdblquote button to save the changes\f1 .\par
|
|
}
|
|
|