<?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: Passing iLogic parameter into dimension value for title block? in Inventor Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045548#M338657</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74757"&gt;@mcgyvr&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I'm not sure.. Don't think so as title block definitions don't support parameters for dimensions..&lt;/P&gt;&lt;P&gt;I would just use 2 title blocks and call it a day..&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I think it does because you can set dimension parameter values to others within the titleblock. When you edit a dimension, you can totally use "=d3", for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 18 Feb 2016 15:04:03 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-02-18T15:04:03Z</dc:date>
    <item>
      <title>Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6043807#M338652</link>
      <description>&lt;P&gt;Has anyone done this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 17:40:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6043807#M338652</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T17:40:07Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6043874#M338653</link>
      <description>&lt;P&gt;Possibly.. can you be more specific?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 18:14:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6043874#M338653</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2016-02-17T18:14:31Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6043905#M338654</link>
      <description>&lt;P&gt;Sure. I'm designing a title block that spans an&amp;nbsp;entire sheet height within defined borders, with a consistent width.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want the titleblock to remain the same width for both ANSI D and Arch D (Easy!), but I want the height of the "empty space" to change by some delta according to the (sheet height - the border gap on both sides). (the not so easy part)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to determine what the sheet size is based on an iLogic parameter, and pass that data into some dimension parameter within the title block definition, so I can adjust the size of two lines relative to the maximum sheet height and the borders.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 18:26:23 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6043905#M338654</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-17T18:26:23Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6044007#M338655</link>
      <description>&lt;P&gt;I'm not sure.. Don't think so as title block definitions don't support parameters for dimensions..&lt;/P&gt;
&lt;P&gt;I would just use 2 title blocks and call it a day..&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 17 Feb 2016 19:14:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6044007#M338655</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2016-02-17T19:14:39Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045547#M338656</link>
      <description>&lt;P&gt;I think it does because you can set dimension parameter values to others within the titleblock. When you edit a dimension, you can totally use "=d3", for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:03:32 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045547#M338656</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T15:03:32Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045548#M338657</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74757"&gt;@mcgyvr&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;I'm not sure.. Don't think so as title block definitions don't support parameters for dimensions..&lt;/P&gt;&lt;P&gt;I would just use 2 title blocks and call it a day..&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;BR /&gt;I think it does because you can set dimension parameter values to others within the titleblock. When you edit a dimension, you can totally use "=d3", for example.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 15:04:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045548#M338657</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T15:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045691#M338658</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;@Anonymous wrote:&lt;BR /&gt;
&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/74757"&gt;@mcgyvr&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I'm not sure.. Don't think so as title block definitions don't support parameters for dimensions..&lt;/P&gt;
&lt;P&gt;I would just use 2 title blocks and call it a day..&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;BR /&gt;I think it does because you can set dimension parameter values to others within the titleblock. When you edit a dimension, you can totally use "=d3", for example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I meant user or named parameters..&lt;/P&gt;
&lt;P&gt;Yes you can do = d3 but you can't do "BlockWidth=1" like you can do in regular Inventor files..&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would still use 2 title blocks and call it done&amp;nbsp;&amp;nbsp;(I'm sure you have spent far more time investigating this than if you were to just make the second block and call it a day).. I personally see no point in writing custom code to handle something that more than likely will never be modified again.. Once you have your title blocks set up there is a very slim chance they will be modified again..&lt;/P&gt;
&lt;P&gt;Sure it can happen in certain cases but tackle that when/if it ever happens...&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 16:13:12 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045691#M338658</guid>
      <dc:creator>mcgyvr</dc:creator>
      <dc:date>2016-02-18T16:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045820#M338659</link>
      <description>&lt;P&gt;HI RobertWK,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This can be done using the API &lt;STRONG&gt;TitleBlockDefinition.Sketch&amp;nbsp;&lt;/STRONG&gt;property,&amp;nbsp;attached is a quick&amp;nbsp;working example created with Inventor 2015.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also just as a tip, you can search and ask programming questions of this type on the Inventor Customization forum too:&lt;BR /&gt;&lt;A href="http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120" target="_blank"&gt;http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

Dim oTitleBlockDef As TitleBlockDefinition
oTitleBlockDef = oDrawDoc.TitleBlockDefinitions.Item(1)

Dim oSketch As DrawingSketch
oTitleBlockDef.Edit(oSketch)

Dim oDim As DimensionConstraint

For Each oDim In oSketch.DimensionConstraints
  If oDim.Parameter.Name = "d1" Then
  	'toggle the dimension value ( in inches)
  	If oDim.Parameter.Value = 2 * 2.54 Then
		oDim.Parameter.Value = 3 * 2.54
	Else
		oDim.Parameter.Value = 2 * 2.54
	End If			
  End If
Next

oTitleBlockDef.ExitEdit(True)&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Feb 2016 17:19:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045820#M338659</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-02-18T17:19:50Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045912#M338660</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/105031"&gt;@Curtis_W&lt;/a&gt; wrote:&lt;BR /&gt;&lt;P&gt;HI RobertWK,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This can be done using the API &lt;STRONG&gt;TitleBlockDefinition.Sketch&amp;nbsp;&lt;/STRONG&gt;property,&amp;nbsp;attached is a quick&amp;nbsp;working example created with Inventor 2015.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;... (code) ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Does there have to be a rule, trigger that fires this?&lt;/P&gt;</description>
      <pubDate>Thu, 18 Feb 2016 18:05:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6045912#M338660</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-18T18:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6046062#M338661</link>
      <description>&lt;P&gt;Hi RobertWK,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would use a form to change the sheet size and trigger the rule. See the attached example file (Inventor 2015).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;If SheetSizeList = "D Arch" Then
	ActiveSheet.ChangeSize("24 x 36 (inches)", MoveBorderItems := True)
ElseIf SheetSizeList = "D ANSI" Then
	ActiveSheet.ChangeSize("D", MoveBorderItems := True)
ElseIf SheetSizeList = "C Size" Then
	ActiveSheet.ChangeSize("C", MoveBorderItems := True)
ElseIf SheetSizeList = "B Size" Then
	ActiveSheet.ChangeSize("B", MoveBorderItems := True)
ElseIf SheetSizeList = "A Size" Then
	ActiveSheet.ChangeSize("A", MoveBorderItems := True)
End If

''use this line to report SheetSizeList for testing
'InputBox("Sheet Size Is:", "iLogic",SheetSizeList )

''use this line to report ActiveSheet.Size for testing
'InputBox("Sheet Size Is:", "iLogic",ActiveSheet.Size )


Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

Dim oTitleBlockDef As TitleBlockDefinition
oTitleBlockDef = oDrawDoc.TitleBlockDefinitions.Item(1)

Dim oSketch As DrawingSketch
oTitleBlockDef.Edit(oSketch)

Dim oDim As DimensionConstraint

oValue = ActiveSheet.Height - (0.125 in * 2) 'where 0.125 in = the border margin

For Each oDim In oSketch.DimensionConstraints
  If oDim.Parameter.Name = "d0" Then
	oDim.Parameter.Value = oValue * 2.54 '2.54 coverts the value to inches			
  End If
Next

oTitleBlockDef.ExitEdit(True)

'zoom all
ThisApplication.ActiveView.Fit&lt;/PRE&gt;</description>
      <pubDate>Thu, 18 Feb 2016 19:22:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6046062#M338661</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-02-18T19:22:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047547#M338662</link>
      <description>&lt;P&gt;Curtis,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You are amazing!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 15:21:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047547#M338662</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T15:21:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047756#M338663</link>
      <description>&lt;P&gt;I put together this bit, but it seems to be causing a warning:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingDocument&lt;/SPAN&gt;
&lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ActiveDocument&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oTitleBlockDef&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;TitleBlockDefinition&lt;/SPAN&gt;
&lt;SPAN&gt;oTitleBlockDef&lt;/SPAN&gt; &lt;SPAN&gt;=&lt;/SPAN&gt; &lt;SPAN&gt;oDrawDoc&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;TitleBlockDefinitions&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Item&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;1&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;

&lt;SPAN&gt;Dim&lt;/SPAN&gt; &lt;SPAN&gt;oSketch&lt;/SPAN&gt; &lt;SPAN&gt;As&lt;/SPAN&gt; &lt;SPAN&gt;DrawingSketch&lt;/SPAN&gt;
&lt;SPAN&gt;oTitleBlockDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Edit&lt;/SPAN&gt;&lt;SPAN&g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&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;SPAN&gt;25&lt;/SPAN&gt; &lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;SPAN&gt;25&lt;/SPAN&gt; &lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; .&lt;/SPAN&gt;&lt;SPAN&gt;75&lt;/SPAN&gt; &lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;25&lt;/SPAN&gt; &lt;SPAN&gt;*&lt;/SPAN&gt; &lt;SPAN&gt;5&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;
&lt;SPAN&gt;End&lt;/SPAN&gt; &lt;SPAN&gt;If&lt;/SPAN&gt;


&lt;SPAN&gt;oTitleBlockDef&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;ExitEdit&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;True&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;
&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Error in rule: INSERT_BLOCK, in document: title_development.idw&lt;/P&gt;&lt;P&gt;Unable to cast COM object of type 'System.__ComObject' to class type 'System.String'. Instances of types that represent COM components cannot be cast to types that do not represent COM components; however they can be cast to interfaces as long as the underlying COM component supports QueryInterface calls for the IID of the interface.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where can I find documentation about objects and functions for the Inventor iLogic api/sdk?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 16:51:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047756#M338663</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T16:51:58Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047793#M338664</link>
      <description>&lt;P&gt;Hi RobertWK,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does your title block have prompted entries in it?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API reference info:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://inventortrenches.blogspot.com/2013/10/ilogic-how-to-learn-inventors.html" target="_blank"&gt;http://inventortrenches.blogspot.com/2013/10/ilogic-how-to-learn-inventors.html&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 17:05:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047793#M338664</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-02-19T17:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047808#M338665</link>
      <description>&lt;P&gt;Not yet, but it will, eventually.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 17:11:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047808#M338665</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T17:11:19Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047887#M338666</link>
      <description>&lt;P&gt;Hi RobertWK,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;A couple of things. My earlier examples found the titleblock by Item number (ex: DrawDoc.TitleBlockDefinitions.Item(1), but if you intend to call it by name, you can just set the oTitleBlockDef to do so&amp;nbsp;as in the example below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Unfortunately, it doesn't appear that you can do the same for the dimension (unless I missed it), so I've used an For Each to find "d0"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, the ActiveSheet.Height comes in as Inches (it's an iLogic call) , but the Parameter Value (Inventor API call) uses Inventor's internal units of cm's so a conversion is needed.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And lastly, I tested this with a prompted entry in the title block and it doesn't seem to cause an issue, so you can ignore that question from earlier.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Dim oDrawDoc As DrawingDocument
oDrawDoc = ThisApplication.ActiveDocument

Dim oTitleBlockDef As TitleBlockDefinition
oTitleBlockDef = oDrawDoc.TitleBlockDefinitions.Item("A-B")

Dim oSketch As DrawingSketch
oTitleBlockDef.Edit(oSketch)

Dim oDim As DimensionConstraint

'find d0
For Each oDim In oSketch.DimensionConstraints
	If oDim.Parameter.Name = "d0" Then
		Exit For
	End If
Next

If ActiveSheet.Height = 11  Then
    oDim.Parameter.Value = (8.5 - 0.25  - 0.25  - 0.75 - (0.25*5)) * 2.54
Else If ActiveSheet.Height = 17 Then
    oDim.Parameter.Value = (11 - 0.25 - 0.25 - 0.75 - (0.25 * 5)) * 2.54
End If

oTitleBlockDef.ExitEdit(True)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 17:59:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047887#M338666</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-02-19T17:59:11Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047921#M338667</link>
      <description>&lt;P&gt;Thanks a ton &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has been an immeasurable amount of help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:03:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047921#M338667</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T18:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047986#M338668</link>
      <description>&lt;P&gt;Nevermind. Fixed it with Case.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 18:38:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6047986#M338668</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T18:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6048092#M338669</link>
      <description>&lt;P&gt;Curtis,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The for loop to find the dimension of 'd0' is failing to run all the time, probably because of an indexing problem or some kind of return value. I have to run the rule multiple times for it to 'fire'.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there a way to directly address the 'd0' dimension without having to find it?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 19:16:00 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6048092#M338669</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-02-19T19:16:00Z</dc:date>
    </item>
    <item>
      <title>Re: Passing iLogic parameter into dimension value for title block?</title>
      <link>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6048199#M338670</link>
      <description>&lt;P&gt;Hi RobertWK,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you know that it is always going to be d0 (i.e. the first dimension in the sketch) then I think you can just use:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;oDim = oSketch.DimensionConstraints.Item(1)&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As this will designate the first dimension constraint / parameter as oDim&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope this helps.&lt;BR /&gt;Best of luck to you in all of your Inventor pursuits,&lt;BR /&gt;Curtis&lt;BR /&gt;&lt;A href="http://inventortrenches.blogspot.com" target="_blank"&gt;http://inventortrenches.blogspot.com&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 Feb 2016 20:13:14 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-forum/passing-ilogic-parameter-into-dimension-value-for-title-block/m-p/6048199#M338670</guid>
      <dc:creator>Curtis_W</dc:creator>
      <dc:date>2016-02-19T20:13:14Z</dc:date>
    </item>
  </channel>
</rss>

