<?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: TitleBlock in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3808999#M79715</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Scarta,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the shared paramter name to get the parameter , then read the parameter value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code snippet to show how to read the shared parameter value from the title block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="code-result" class="brush:vbnet"&gt;&amp;lt;TransactionAttribute(Autodesk.Revit.Attributes.TransactionMode.Manual)&amp;gt; _
Public Class RevitCommand2
	Implements IExternalCommand
	Public Function Execute(commandData As ExternalCommandData, ByRef messages As String, elements As ElementSet) As Result

		Dim app As UIApplication = commandData.Application
		Dim doc As Document = app.ActiveUIDocument.Document

		Dim sel As Selection = app.ActiveUIDocument.Selection
		Dim ref1 As Reference = sel.PickObject(ObjectType.Element, "Please pick title block")
		Dim tb As FamilyInstance = TryCast(doc.GetElement(ref1), FamilyInstance)
		'''title block is a FamilyInstance 
		If tb Is Nothing Then
			Return Result.Failed
		End If


		'If the target shared parameter is from the family symbol/ family type.
		Dim param2 As Parameter = tb.get_Parameter("SharedParameterName")

		'If the target shared parameter is from the family instance.
		'Parameter param = tb.get_Parameter("SharedParameterName"); //directly use the shared parameter name


		'show the fire rating in task dialog
		TaskDialog.Show("target shared parameter value", param2.AsString())

		Return Result.Succeeded
	End Function
End Class&lt;/PRE&gt;</description>
    <pubDate>Tue, 19 Mar 2013 15:33:02 GMT</pubDate>
    <dc:creator>Joe.Ye</dc:creator>
    <dc:date>2013-03-19T15:33:02Z</dc:date>
    <item>
      <title>TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3802588#M79714</link>
      <description>&lt;P&gt;HI, I am new in revit api&lt;/P&gt;&lt;P&gt;I have a sheet with a titleblock family&lt;/P&gt;&lt;P&gt;Family have shared parameters&lt;/P&gt;&lt;P&gt;i want to write a vb.net procedure that read the value of parameters. Where I can find a sample?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Mar 2013 13:04:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3802588#M79714</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-12T13:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3808999#M79715</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Scarta,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the shared paramter name to get the parameter , then read the parameter value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the code snippet to show how to read the shared parameter value from the title block.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="code-result" class="brush:vbnet"&gt;&amp;lt;TransactionAttribute(Autodesk.Revit.Attributes.TransactionMode.Manual)&amp;gt; _
Public Class RevitCommand2
	Implements IExternalCommand
	Public Function Execute(commandData As ExternalCommandData, ByRef messages As String, elements As ElementSet) As Result

		Dim app As UIApplication = commandData.Application
		Dim doc As Document = app.ActiveUIDocument.Document

		Dim sel As Selection = app.ActiveUIDocument.Selection
		Dim ref1 As Reference = sel.PickObject(ObjectType.Element, "Please pick title block")
		Dim tb As FamilyInstance = TryCast(doc.GetElement(ref1), FamilyInstance)
		'''title block is a FamilyInstance 
		If tb Is Nothing Then
			Return Result.Failed
		End If


		'If the target shared parameter is from the family symbol/ family type.
		Dim param2 As Parameter = tb.get_Parameter("SharedParameterName")

		'If the target shared parameter is from the family instance.
		'Parameter param = tb.get_Parameter("SharedParameterName"); //directly use the shared parameter name


		'show the fire rating in task dialog
		TaskDialog.Show("target shared parameter value", param2.AsString())

		Return Result.Succeeded
	End Function
End Class&lt;/PRE&gt;</description>
      <pubDate>Tue, 19 Mar 2013 15:33:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3808999#M79715</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-03-19T15:33:02Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809131#M79716</link>
      <description>&lt;P&gt;HI,..&lt;/P&gt;&lt;P&gt;thanks I will try it!!&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 17:12:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809131#M79716</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-19T17:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809136#M79717</link>
      <description>&lt;P&gt;i receive an error on the line tb.get_parameter the vb editor say "is not a member of autodesk.revit.db.familyistance"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;any idea?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Mar 2013 17:17:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809136#M79717</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-19T17:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809595#M79718</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry, I used the code converter to convert the C# to VB.net. The code was not converted completely correct.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is the one should work.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE id="code-result" class="brush:vbnet"&gt;&amp;lt;TransactionAttribute(Autodesk.Revit.Attributes.TransactionMode.Manual)&amp;gt; _
Public Class RevitCommand2
	Implements IExternalCommand
	Public Function Execute(commandData As ExternalCommandData, ByRef messages As String, elements As ElementSet) As Result

		Dim app As UIApplication = commandData.Application
		Dim doc As Document = app.ActiveUIDocument.Document

		Dim sel As Selection = app.ActiveUIDocument.Selection
		Dim ref1 As Reference = sel.PickObject(ObjectType.Element, "Please pick title block")
		Dim tb As FamilyInstance = TryCast(doc.GetElement(ref1), FamilyInstance)
		'''title block is a FamilyInstance 
		If tb Is Nothing Then
			Return Result.Failed
		End If


		'If the target shared parameter is from the family symbol/ family type.&lt;STRONG&gt;
		Dim param2 As Parameter = tb.Parameter("SharedParameterName")

&lt;/STRONG&gt;		'If the target shared parameter is from the family instance.&lt;STRONG&gt;
		'Parameter param = tb.Parameter("SharedParameterName"); //directly use the shared parameter name&lt;/STRONG&gt;


		'show the fire rating in task dialog
		TaskDialog.Show("target shared parameter value", param2.AsString())

		Return Result.Succeeded
	End Function
End Class&lt;/PRE&gt;</description>
      <pubDate>Wed, 20 Mar 2013 01:53:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809595#M79718</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-03-20T01:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809729#M79719</link>
      <description>&lt;P&gt;HI...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a problem with this line:&lt;/P&gt;&lt;P&gt;'Parameter param = tb.get_Parameter("SharedParameterName"); //directly use the&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;vb editor say "Can not use Parameter as expression" and param is not declared&lt;/P&gt;</description>
      <pubDate>Wed, 20 Mar 2013 09:32:24 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3809729#M79719</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-20T09:32:24Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3811820#M79720</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hi Scarta,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Please remove the get_ &amp;nbsp;from below line.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;'Parameter param = tb.get_Parameter("SharedParameterName"); //directly use the&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;VB.NET doesn't need the get_ for when calling the class get properties.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 03:56:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3811820#M79720</guid>
      <dc:creator>Joe.Ye</dc:creator>
      <dc:date>2013-03-22T03:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3811894#M79721</link>
      <description>&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have removed the _get but the problem is Parameter param, the error is: "Parameter is a type that can not be use as espression"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I post he total code:&lt;/P&gt;&lt;P&gt;Region&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;"Imports"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;' Import the following name spaces in the project properties/references.&lt;/P&gt;&lt;P&gt;' Note: VB.NET has a slighly different way of recognizing name spaces than C#.&lt;/P&gt;&lt;P&gt;' if you explicitely set them in each .vb file, you will need to specify full name spaces.&lt;/P&gt;&lt;P&gt;'Imports System&lt;/P&gt;&lt;P&gt;'Imports Autodesk.Revit.DB&lt;/P&gt;&lt;P&gt;'Imports Autodesk.Revit.UI&lt;/P&gt;&lt;P&gt;'Imports Autodesk.Revit.ApplicationServices ' Application class&lt;/P&gt;&lt;P&gt;'Imports Autodesk.Revit.Attributes ' specific this if you want to save typing for attributes. e.g.,&lt;/P&gt;&lt;P&gt;'Imports Autodesk.Revit.UI.Selection ' for selection&lt;/P&gt;&lt;P&gt;Imports&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Revit&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Util&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Constant&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Imports&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Revit&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Util&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Imports&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;System&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Reflection&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;#End&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Region&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;#Region&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;"Description"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;' Revit Intro Lab - 2&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;' In this lab, you will learn how an element is represended in Revit.&lt;/P&gt;&lt;P&gt;' Disclaimer: minimum error checking to focus on the main topic.&lt;/P&gt;&lt;P&gt;'&lt;/P&gt;&lt;P&gt;#End&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Region&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;'&amp;lt;Autodesk.Revit.Attributes.Regeneration(Attributes.RegenerationOption.Manual)&amp;gt;&lt;/P&gt;&lt;P&gt;'&amp;lt;Autodesk.Revit.Attributes.Transaction(Attributes.TransactionMode.Manual)&amp;gt;_&lt;/P&gt;&lt;P&gt;'&amp;lt;TransactionAttribute(Autodesk.Revit.Attributes.TransactionMode.Manual)&amp;gt; _&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Transaction&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;TransactionMode&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Automatic&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;)&amp;gt; _&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Public&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Class&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;RevitCommand2&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Implements&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;IExternalCommand&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Public&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Function&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Execute&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;commandData&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;ExternalCommandData&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;ByRef&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;messages&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;String&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;elements&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;ElementSet&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Result&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;_&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Implements&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;IExternalCommand&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Execute&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;app&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;UIApplication&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;commandData&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Application&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;doc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Document&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;app&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;ActiveUIDocument&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Document&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;sel&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Selection&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;app&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;ActiveUIDocument&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Selection&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;ref1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Reference&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;sel&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;PickObject&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;ObjectType&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Element&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;, &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;"Please pick title block"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;tb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;FamilyInstance&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;TryCast&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;doc&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;GetElement&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;ref1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;), &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;FamilyInstance&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;'title block is a FamilyInstance &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;tb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Is&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Nothing&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Return&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Result&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Failed&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;If&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;'If the target shared parameter is from the family symbol/ family type.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Sh_Name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;tb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;BuiltInParameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;SHEET_NAME&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Sh_Number&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;tb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;BuiltInParameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;SHEET_NUMBER&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Sh_Scale&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;tb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;BuiltInParameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;SHEET_SCALE&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;)&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Dim&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;param&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;As&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;'Dim param2 As Parameter = tb.Parameter("D2")&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;'If the target shared parameter is from the family instance.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;param&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt; = &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;tb&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Parameter&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;(&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;&lt;FONT face="Consolas" color="#d69d85" size="2"&gt;"D2"&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;'//directly use the shared parameter name&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;'show the fire rating in task dialog&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;&lt;FONT face="Consolas" color="#608b4e" size="2"&gt;'TaskDialog.Show("target shared parameter value", param2.AsString())&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Return&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;&lt;FONT face="Consolas" color="#4ec9b0" size="2"&gt;Result&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;&lt;FONT face="Consolas" color="#dcdcdc" size="2"&gt;.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;&lt;FONT face="Consolas" color="#ffffff" size="2"&gt;Succeeded&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;End&lt;/P&gt;&lt;P&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;&lt;FONT face="Consolas" color="#569cd6" size="2"&gt;Class&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Mar 2013 08:17:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3811894#M79721</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-22T08:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3813565#M79722</link>
      <description>&lt;P&gt;hI..with this procedure i can retrieve built in parameter but when I check value for shared parameter i retrieve "nothing"&lt;/P&gt;&lt;P&gt;I have used bitchecker with the title block, but I not retrieved any shared parameter...&lt;/P&gt;&lt;P&gt;please download rvt file from &lt;A target="_blank" href="http://www.fxcrender.com/download/u17.zip"&gt;http://www.fxcrender.com/download/u17.zip&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this is the code: and i upload the rvt file&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;#Region "Imports"
' Import the following name spaces in the project properties/references. 
' Note: VB.NET has a slighly different way of recognizing name spaces than C#. 
' if you explicitely set them in each .vb file, you will need to specify full name spaces. 

'Imports System
'Imports Autodesk.Revit.DB
'Imports Autodesk.Revit.UI
'Imports Autodesk.Revit.ApplicationServices  ' Application class
'Imports Autodesk.Revit.Attributes ' specific this if you want to save typing for attributes. e.g., 
'Imports Autodesk.Revit.UI.Selection ' for selection 

Imports Revit.Util.Constant
Imports Revit.Util
Imports System.Reflection

#End Region

#Region "Description"
' Revit Intro Lab - 2 
' 
' In this lab, you will learn how an element is represended in Revit. 
' Disclaimer: minimum error checking to focus on the main topic. 
' 
#End Region


'&amp;lt;Autodesk.Revit.Attributes.Regeneration(Attributes.RegenerationOption.Manual)&amp;gt;
'&amp;lt;Autodesk.Revit.Attributes.Transaction(Attributes.TransactionMode.Manual)&amp;gt;_

'&amp;lt;TransactionAttribute(Autodesk.Revit.Attributes.TransactionMode.Manual)&amp;gt; _
&amp;lt;Transaction(TransactionMode.Automatic)&amp;gt; _
Public Class RevitCommand2
    Implements IExternalCommand


    Public Function Execute(commandData As ExternalCommandData, ByRef messages As String, elements As ElementSet) As Result _
        Implements IExternalCommand.Execute

        Dim app As UIApplication = commandData.Application
        Dim doc As Document = app.ActiveUIDocument.Document

        Dim sel As Selection = app.ActiveUIDocument.Selection
        Dim ref1 As Reference = sel.PickObject(ObjectType.Element, "Please pick title block")
        Dim tb As FamilyInstance = TryCast(doc.GetElement(ref1), FamilyInstance)
        'title block is a FamilyInstance 


        If tb Is Nothing Then
            Return Result.Failed
        End If


        'If the target shared parameter is from the family symbol/ family type.
        Dim Sh_Name As Parameter = tb.Parameter(BuiltInParameter.SHEET_NAME)
        'Dim Sh_Number As Parameter = tb.Parameter(BuiltInParameter.SHEET_NUMBER)
        'Dim Sh_Scale As Parameter = tb.Parameter(BuiltInParameter.SHEET_SCALE)





        'Dim param2 As Parameter = tb.Parameter("D2")

        'If the target shared parameter is from the family instance.
        'D2 is a shared parameter
        Dim param As Parameter = tb.Symbol.Parameter("D2") '//directly use the shared parameter name



        'show the fire rating in task dialog
        TaskDialog.Show("target shared parameter value", Sh_Name.AsString())

        Return Result.Succeeded



    End Function


End Class&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 10:19:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3813565#M79722</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-25T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3815140#M79723</link>
      <description>&lt;P&gt;Can anyone help me?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have installed Bitchecker and Revitlookup for check parameters, but the shared paramed are not show&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 26 Mar 2013 16:02:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3815140#M79723</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-26T16:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: TitleBlock</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3817046#M79724</link>
      <description>&lt;P&gt;Hi..&lt;/P&gt;&lt;P&gt;Ihave resolved the problem....I was finding the shared parameter on the Title block family, but sp was on the SHEET family!!&lt;/P&gt;&lt;P&gt;Thanks for your help!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stefano&lt;/P&gt;</description>
      <pubDate>Thu, 28 Mar 2013 06:43:45 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/titleblock/m-p/3817046#M79724</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-28T06:43:45Z</dc:date>
    </item>
  </channel>
</rss>

