<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Revit API newbie in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298565#M81094</link>
    <description>&lt;P&gt;Maybe we should first make sure what are you trying to do. Are you trying to get a area (square meters etc) of some floor. Or is it something else that you want?&lt;/P&gt;</description>
    <pubDate>Thu, 19 Jan 2012 06:04:45 GMT</pubDate>
    <dc:creator>ollikat</dc:creator>
    <dc:date>2012-01-19T06:04:45Z</dc:date>
    <item>
      <title>Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293469#M81086</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm new in this Revit API..dont even have any background in programming...just basic programming. Need help to understand more about revit API. Now i'm trying out Revit API from Revit 2012 API Developer's Guide book. Got an error and not sure how to fix it:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are the codes:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using Autodesk.Revit.UI;&lt;BR /&gt;using Autodesk.Revit.DB;&lt;BR /&gt;using Autodesk.Revit.Attributes;&lt;BR /&gt;using Autodesk.Revit.UI.Selection;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;namespace Filtered_Element&lt;BR /&gt;{&lt;BR /&gt;[Transaction(TransactionMode.ReadOnly)]&lt;BR /&gt;public class Class1 : IExternalCommand&lt;BR /&gt;{&lt;BR /&gt;public Result Execute(ExternalCommandData commandData,&lt;BR /&gt;ref string message, ElementSet elements)&lt;BR /&gt;{&lt;BR /&gt;//Create a Filter to get all the doors in the document&lt;BR /&gt;ElementClassFilter familyInstanceFilter = new ElementClassFilter(typeof(FamilyInstance));&lt;BR /&gt;ElementCategoryFilter doorsCategoryFilter = new ElementCategoryFilter(BuiltInCategory.OST_Doors);&lt;BR /&gt;LogicalAndFilter doorInstanceFilter = new LogicalAndFilter(familyInstanceFilter, doorsCategoryFilter);&lt;BR /&gt;FilteredElementCollector collector = new FilteredElementCollector(&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;document&lt;/STRONG&gt;&lt;/FONT&gt;);&lt;BR /&gt;ICollection&amp;lt;ElementId&amp;gt; doors = collector.WherePasses(doorInstanceFilter).ToElementIds();&lt;BR /&gt;&lt;BR /&gt;string prompt = "The ids of the doors in the current document are:";&lt;BR /&gt;foreach(ElementId id in doors)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;prompt += "\n\t" + id.IntegerValue;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//Give the user some information&lt;BR /&gt;TaskDialog.Show("Revit", prompt);&lt;/P&gt;&lt;P&gt;return Result.Succeeded;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The name 'document' does not exist in the current context&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx in advanced.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nik-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 04:37:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293469#M81086</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-16T04:37:24Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293523#M81087</link>
      <description>&lt;P&gt;Basically the reason is that there aren't any object called "document" in your function. So how to get one...?&lt;BR /&gt;&lt;BR /&gt;Many (most...) of the API methods want to know the project document, which should be used. The reference for this document is provided in the ExternalCommandData argument of the&amp;nbsp;Execute() method. You can&amp;nbsp;assign it to a temporary variable or use it directly intead...pick your choise.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;FilteredElementCollector collector = new FilteredElementCollector(extCommData.Application.ActiveUIDocument.Document);

// OR...

Document doc = extCommData.Application.ActiveUIDocument.Document;
FilteredElementCollector collector = new FilteredElementCollector(doc);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 06:22:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293523#M81087</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2012-01-16T06:22:16Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293533#M81088</link>
      <description>&lt;P&gt;Thx for the reply...appreciate it..&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i did try both of your solution..now another error occur..the error same as before but with different name "The name 'extCommData' does not exist in the current context".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are my coding:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using Autodesk.Revit.UI;&lt;BR /&gt;using Autodesk.Revit.DB;&lt;BR /&gt;using Autodesk.Revit.Attributes;&lt;BR /&gt;using Autodesk.Revit.UI.Selection;&lt;BR /&gt;using Autodesk.Revit.ApplicationServices;&lt;/P&gt;&lt;P&gt;namespace Filtered_Element&lt;BR /&gt;{&lt;BR /&gt;[Transaction(TransactionMode.ReadOnly)]&lt;BR /&gt;public class Class1 : IExternalCommand&lt;BR /&gt;{&lt;BR /&gt;public Result Execute(ExternalCommandData commandData,&lt;BR /&gt;ref string message, ElementSet elements)&lt;BR /&gt;{&lt;BR /&gt;//Create a Filter to get all the doors in the document&lt;BR /&gt;ElementClassFilter familyInstanceFilter = new ElementClassFilter(typeof(FamilyInstance));&lt;BR /&gt;ElementCategoryFilter doorsCategoryFilter = new ElementCategoryFilter(BuiltInCategory.OST_Doors);&lt;BR /&gt;LogicalAndFilter doorInstanceFilter = new LogicalAndFilter(familyInstanceFilter, doorsCategoryFilter);&lt;BR /&gt;Document doc = &lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;extCommData&lt;/STRONG&gt;&lt;/FONT&gt;.Application.ActiveUIDocument.Document;&lt;BR /&gt;FilteredElementCollector collector = new FilteredElementCollector(doc);&lt;BR /&gt;ICollection&amp;lt;ElementId&amp;gt; doors = collector.WherePasses(doorInstanceFilter).ToElementIds();&lt;BR /&gt;&lt;BR /&gt;string prompt = "The ids of the doors in the current document are:";&lt;BR /&gt;foreach(ElementId id in doors)&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;prompt += "\n\t" + id.IntegerValue;&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//Give the user some information&lt;BR /&gt;TaskDialog.Show("Revit", prompt);&lt;/P&gt;&lt;P&gt;return Result.Succeeded;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i'm not really good in programming..i might missing something...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx in advanced..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nik-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 06:46:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293533#M81088</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-16T06:46:47Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293537#M81089</link>
      <description>&lt;P&gt;Again...there aren't such a variable declared in the scope of the function. Sorry...I just wrote an example, I didn't check out what was the actual name of that argument in yor code. Your function is declared like this:&lt;BR /&gt;&lt;BR /&gt;public Result Execute(ExternalCommandData commandData, ref string message, ElementSet elements)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So instead you should use "commandData"&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 06:54:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293537#M81089</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2012-01-16T06:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293547#M81090</link>
      <description>&lt;P&gt;Got it...what a silly question from me..&lt;img id="smileyembarrassed" class="emoticon emoticon-smileyembarrassed" src="https://forums.autodesk.com/i/smilies/16x16_smiley-embarrassed.png" alt="Smiley Embarassed" title="Smiley Embarassed" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much...&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 06:59:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293547#M81090</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-16T06:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293677#M81091</link>
      <description>&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i hv 1 more question..&amp;lt;for now&amp;gt;..&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://forums.autodesk.com/i/smilies/16x16_smiley-tongue.png" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;how to get area value to be read in task dialog box..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;my codes are as below:&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using Autodesk.Revit.Attributes;&lt;BR /&gt;using Autodesk.Revit.DB;&lt;BR /&gt;using Autodesk.Revit.UI;&lt;BR /&gt;using Autodesk.Revit.ApplicationServices;&lt;/P&gt;&lt;P&gt;namespace Revit_DialogBox&lt;BR /&gt;{&lt;BR /&gt;[Transaction(TransactionMode.Automatic)]&lt;BR /&gt;public class Class1 : IExternalCommand&lt;BR /&gt;{&lt;BR /&gt;public Result Execute(ExternalCommandData commandData,&lt;BR /&gt;ref string message, ElementSet elements)&lt;BR /&gt;{&lt;BR /&gt;//Get the application and document from external data.&lt;BR /&gt;Application app = commandData.Application.Application;&lt;BR /&gt;Document activedoc = commandData.Application.ActiveUIDocument.Document;&lt;/P&gt;&lt;P&gt;//Create a Revit task dialog to communicate information to the user.&lt;BR /&gt;TaskDialog mainDialog = new TaskDialog("Hello, Revit");&lt;BR /&gt;mainDialog.MainInstruction = "Hello, Revit";&lt;BR /&gt;mainDialog.MainContent = "This sample shows how to use a Revit task dialog to communicate with the user."&lt;BR /&gt;+ "The command links below open additional task dialogs with more information.";&lt;/P&gt;&lt;P&gt;//Add commandLink option to task dialog&lt;BR /&gt;mainDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink1,&lt;BR /&gt;"View information about the Revit Installation");&lt;BR /&gt;mainDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink2,&lt;BR /&gt;"View information about the active document");&lt;BR /&gt;&lt;BR /&gt;//Set common buttons and default button. if no CommandButton or CommandLink is added,&lt;BR /&gt;//task dialog will show a Close button by default.&lt;BR /&gt;mainDialog.CommonButtons = TaskDialogCommonButtons.Close;&lt;BR /&gt;mainDialog.DefaultButton = TaskDialogResult.Close;&lt;/P&gt;&lt;P&gt;//Set footer text. Footer text is usually used to link to the help document.&lt;BR /&gt;mainDialog.FooterText = "&amp;lt;a href=\"&lt;A target="_blank" href="http://usa.autodesk.com/"&gt;http://usa.autodesk.com/&lt;/A&gt;\"&amp;gt;"&lt;BR /&gt;+ "Click here for the Revit API Developer Center&amp;lt;/a&amp;gt;";&lt;/P&gt;&lt;P&gt;TaskDialogResult tResult = mainDialog.Show();&lt;/P&gt;&lt;P&gt;//if the user clicks the first command link, a simple Task Dialog&lt;BR /&gt;//with only a close button shows information about the Revit installation.&lt;BR /&gt;if (TaskDialogResult.CommandLink1 == tResult)&lt;BR /&gt;{&lt;BR /&gt;TaskDialog dialog_CommandLink1 = new TaskDialog("Revit Build Information");&lt;BR /&gt;dialog_CommandLink1.MainInstruction = "Revit Version is: " + app.VersionName + "\n"&lt;BR /&gt;+ "Revit Version Number is: " + app.VersionNumber + "\n"&lt;BR /&gt;+ "Revit Version Build is: " + app.VersionBuild;&lt;/P&gt;&lt;P&gt;dialog_CommandLink1.Show();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//if the user clicks the second command link, a simple Task Dialog&lt;BR /&gt;//created by static method shows information about the active document&lt;BR /&gt;else if (TaskDialogResult.CommandLink2 == tResult)&lt;BR /&gt;{&lt;BR /&gt;TaskDialog.Show("Active Document Information",&lt;BR /&gt;"Active document: " + activedoc.Title + "\n"&lt;BR /&gt;+ "Active view name: " + activedoc.ActiveView.Name + "\n"&lt;BR /&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;+ "Floor Area: " + ParameterType.Area);&lt;/STRONG&gt;&lt;/FONT&gt;&lt;BR /&gt;}&lt;BR /&gt;return Result.Succeeded;&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the highlighted should read the area value..right? or not? the result that i get shown below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="area.JPG" src="http://forums.autodesk.com/t5/image/serverpage/image-id/19209iF040E5FD7CB21875/image-size/medium?v=mpbl-1&amp;amp;px=-1" align="center" title="area.JPG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;help&lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://forums.autodesk.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx in advanced..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nik-&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 10:09:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293677#M81091</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-16T10:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293699#M81092</link>
      <description>&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;ParameterType.Area.ToString("F");&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See explanations from &lt;A target="_blank" href="http://msdn.microsoft.com/en-us/library/c3s1ez6e.aspx#Y311"&gt;http://msdn.microsoft.com/en-us/library/c3s1ez6e.aspx#Y311&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2012 10:22:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3293699#M81092</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2012-01-16T10:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298521#M81093</link>
      <description>&lt;P&gt;nope..still not working...not sure how to solve this..i did try so many way to get the area value..&lt;/P&gt;&lt;P&gt;here are my code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;using System;&lt;BR /&gt;using System.Collections.Generic;&lt;BR /&gt;using System.Linq;&lt;BR /&gt;using System.Text;&lt;BR /&gt;using Autodesk.Revit.Attributes;&lt;BR /&gt;using Autodesk.Revit.DB;&lt;BR /&gt;using Autodesk.Revit.UI;&lt;BR /&gt;using Autodesk.Revit.ApplicationServices;&lt;/P&gt;&lt;P&gt;namespace Revit_DialogBox&lt;BR /&gt;{&lt;BR /&gt;[Transaction(TransactionMode.Automatic)]&lt;BR /&gt;public class Class1 : IExternalCommand&lt;BR /&gt;{&lt;BR /&gt;public Result Execute(ExternalCommandData commandData,&lt;BR /&gt;ref string message, ElementSet elements)&lt;BR /&gt;{&lt;BR /&gt;//Get the application and document from external data.&lt;BR /&gt;Application app = commandData.Application.Application;&lt;BR /&gt;Document activedoc = commandData.Application.ActiveUIDocument.Document;&lt;BR /&gt;//DimensionTypeSet param = commandData.Data.get_Item(Floor);&lt;/P&gt;&lt;P&gt;//Create a Revit task dialog to communicate information to the user.&lt;BR /&gt;TaskDialog mainDialog = new TaskDialog("Hello, Revit");&lt;BR /&gt;mainDialog.MainInstruction = "Hello, Revit";&lt;BR /&gt;mainDialog.MainContent = "This sample shows how to use a Revit task dialog to communicate with the user."&lt;BR /&gt;+ "The command links below open additional task dialogs with more information.";&lt;/P&gt;&lt;P&gt;//Add commandLink option to task dialog&lt;BR /&gt;mainDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink1,&lt;BR /&gt;"View information about the Revit Installation");&lt;BR /&gt;mainDialog.AddCommandLink(TaskDialogCommandLinkId.CommandLink2,&lt;BR /&gt;"View information about the active document");&lt;/P&gt;&lt;P&gt;//Set common buttons and default button. if no CommandButton or CommandLink is added,&lt;BR /&gt;//task dialog will show a Close button by default.&lt;BR /&gt;mainDialog.CommonButtons = TaskDialogCommonButtons.Close;&lt;BR /&gt;mainDialog.DefaultButton = TaskDialogResult.Close;&lt;/P&gt;&lt;P&gt;//Set footer text. Footer text is usually used to link to the help document.&lt;BR /&gt;mainDialog.FooterText = "&amp;lt;a href=\"&lt;A target="_blank" href="http://usa.autodesk.com/"&gt;http://usa.autodesk.com/&lt;/A&gt;\"&amp;gt;"&lt;BR /&gt;+ "Click here for the Revit API Developer Center&amp;lt;/a&amp;gt;";&lt;/P&gt;&lt;P&gt;TaskDialogResult tResult = mainDialog.Show();&lt;/P&gt;&lt;P&gt;//if the user clicks the first command link, a simple Task Dialog&lt;BR /&gt;//with only a close button shows information about the Revit installation.&lt;BR /&gt;if (TaskDialogResult.CommandLink1 == tResult)&lt;BR /&gt;{&lt;BR /&gt;TaskDialog dialog_CommandLink1 = new TaskDialog("Revit Build Information");&lt;BR /&gt;dialog_CommandLink1.MainInstruction = "Revit Version is: " + app.VersionName + "\n"&lt;BR /&gt;+ "Revit Version Number is: " + app.VersionNumber + "\n"&lt;BR /&gt;+ "Revit Version Build is: " + app.VersionBuild;&lt;/P&gt;&lt;P&gt;dialog_CommandLink1.Show();&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;//if the user clicks the second command link, a simple Task Dialog&lt;BR /&gt;//created by static method shows information about the active document&lt;BR /&gt;else if (TaskDialogResult.CommandLink2 == tResult)&lt;BR /&gt;{&lt;BR /&gt;BuiltInParameter area = BuiltInParameter.MASS_GROSS_AREA;&lt;BR /&gt;BuiltInParameter area3 = BuiltInParameter.ZONE_AREA;&lt;BR /&gt;BuiltInParameter area4 = BuiltInParameter.LEVEL_DATA_FLOOR_PERIMETER;&lt;BR /&gt;BuiltInParameterGroup area5 = BuiltInParameterGroup.PG_AREA;&lt;BR /&gt;BuiltInParameter area6 = BuiltInParameter.LEVEL_DATA_FLOOR_AREA;&lt;BR /&gt;AreaElemType area1 = AreaElemType.BOMAArea;&lt;BR /&gt;ParameterType area2 = ParameterType.Area;&lt;BR /&gt;BuiltInParameter area7 = BuiltInParameter.ROOM_AREA;&lt;BR /&gt;&lt;BR /&gt;int iarea = (int)area;&lt;BR /&gt;int iarea3 = (int)area3;&lt;BR /&gt;int iarea5 = (int)area5;&lt;BR /&gt;int iarea6 = (int)area6;&lt;BR /&gt;int iarea7 = (int)area7;&lt;BR /&gt;Int64 iarea2 = (Int64)area2;&lt;BR /&gt;Int64 iarea1 = (Int64)area1;&lt;BR /&gt;&lt;BR /&gt;TaskDialog.Show("Active Document Information",&lt;BR /&gt;"Active document: " + activedoc.Title + "\n"&lt;BR /&gt;+ "Active view name: " + activedoc.ActiveView.Name + "\n"&lt;BR /&gt;+ "Floor Area: " + activedoc.ActiveView.Level + "\n"&lt;BR /&gt;+ "Floor Area: " + activedoc.FloorTypes.Size + "\n"&lt;BR /&gt;+ "Floor Area: " + iarea1 + "\n"&lt;BR /&gt;+ "Floor Area: " + iarea2 + "\n"&lt;BR /&gt;+ "Floor Area: " + iarea3 + "\n"&lt;BR /&gt;+ "Floor Area: " + area4 + "\n"&lt;BR /&gt;+ "Floor Area: " + iarea5 + "\n"&lt;BR /&gt;+ "Floor Area: " + iarea6 + "\n"&lt;BR /&gt;+ "Floor Area: " + iarea7 + "\n"&lt;BR /&gt;+ "Floor Area: " + iarea);&lt;BR /&gt;}&lt;BR /&gt;return Result.Succeeded;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is what i get:&lt;/P&gt;&lt;P&gt;&lt;IMG title="result1.JPG" border="0" align="center" alt="result1.JPG" src="http://forums.autodesk.com/t5/image/serverpage/image-id/19487iA78C357FB07068D4/image-size/large?v=mpbl-1&amp;amp;px=-1" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;not sure what the numbers mean...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thx in advanced&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-nik-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 03:59:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298521#M81093</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-19T03:59:16Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298565#M81094</link>
      <description>&lt;P&gt;Maybe we should first make sure what are you trying to do. Are you trying to get a area (square meters etc) of some floor. Or is it something else that you want?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 06:04:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298565#M81094</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2012-01-19T06:04:45Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298573#M81095</link>
      <description>&lt;P&gt;what im trying to do is that i try to make my taskdialog box to read the area of the floor of my model (hv 3 level). &amp;nbsp;then i want to transfer this value to either excel/pdf/word..i know in revit there is a tool called Export to export the properties of the model in to csv files..but i want to make it as a new tool that only read the specific value such as area to be export to my report that i've created in excel/pdf/word...is it posibble to do that?&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 06:28:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298573#M81095</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-01-19T06:28:37Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298607#M81096</link>
      <description>&lt;P&gt;I don't know about excel and stuff. But the way you try to get the floor area is not correct. When you have got the floor element etc. which has this area parameter, then you can use it's Parameter property (inherited from Element) and read the value from the parametr you got (AsDouble(), AsString() etc...). What you are now doing is you are printing the values of enumerations.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Jan 2012 07:23:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3298607#M81096</guid>
      <dc:creator>ollikat</dc:creator>
      <dc:date>2012-01-19T07:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Revit API newbie</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3341913#M81097</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It has been a while...now i'm able to transfer some of the info from the actived revit file into the pdf format...but still i could not get the area value of the model from actived revit file into pdf format..maybe because i dont really understand the parameter used in the revit...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anyone show me which parameter should i use to call out area value?i've tried BuiltInParameter..but it doesn't seem right...hurmmm~~help...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thx...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Nik-&lt;/P&gt;</description>
      <pubDate>Wed, 22 Feb 2012 03:36:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/revit-api-newbie/m-p/3341913#M81097</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-02-22T03:36:25Z</dc:date>
    </item>
  </channel>
</rss>

