<?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: Control 'break' size in drawing view using iLogic? in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3792649#M141264</link>
    <description>&lt;P&gt;It looks like you fixed the compile error that you posted before. Here's an updated version that fixes a few other problems in&amp;nbsp;the rule.&lt;/P&gt;
&lt;P&gt;- BreakWithFactor is shared between the two Subs. It won't work if it's declared only in Main. The easiest way to do it is to declare it outside the Subs (at the VB Class level).&amp;nbsp; I moved Bmaat&amp;nbsp;there as well.&lt;BR /&gt;- IsNot does not generally work for string comparison.&amp;nbsp; Use &amp;lt;&amp;gt; instead.&lt;/P&gt;
&lt;P&gt;- Getting the midpoint of the sheet won't work unless the view is centered. It's better to use the view center. (I think we posted a simple example using the sheet center.&amp;nbsp;We should have used the view center there as well.)&lt;/P&gt;
&lt;P&gt;- The line to Add the break operation had an extra right parenthesis.&lt;/P&gt;</description>
    <pubDate>Thu, 28 Feb 2013 16:35:33 GMT</pubDate>
    <dc:creator>MjDeck</dc:creator>
    <dc:date>2013-02-28T16:35:33Z</dc:date>
    <item>
      <title>Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2929606#M141251</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way using iLogic or other method to automatically control the size of the 'break' in a drawing view? I have built a model which uses iLogic to control virtually everything, however the large variations in the length of the product mean that there are some interesting results when it comes to the broken drawing views updating.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ideally, it would be nice to locate the break at the absolute center of the view and then size it as a percentage of the view size along one axis or perhaps according to some other length based rule.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas are greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Feb 2011 05:14:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2929606#M141251</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-02-25T05:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2936682#M141252</link>
      <description>&lt;P&gt;On Inventor 2011, look at the iLogic 2011 Samples project. In the Drawings directory there is a file named BreakView.idw.&amp;nbsp; It has a rule that will adjust the width of a break in the view to maintain a constant view width.&amp;nbsp;&amp;nbsp;To do it,&amp;nbsp;it deletes and then&amp;nbsp;recreates the break.&amp;nbsp; Here is the rule:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;If (ActiveSheet.Name &amp;lt;&amp;gt; "Sheet:1") Then Return
Dim viewL = ActiveSheet.View("VIEW1")
Dim view = viewL.View
If (view.BreakOperations.Count &amp;gt; 0) Then
  view.BreakOperations(1).Delete
End If

Dim xMid As Double = ActiveSheet.Sheet.Width / 2
Dim modelDocName = IO.Path.GetFileName(viewL.ModelDocument.FullFileName)
Dim modelLength As Double = Parameter(modelDocName, "Length")
If (modelLength &amp;lt; 12) Then Return
Dim breakWidth As Double = (modelLength - 10) * 2.54
Dim startPt = ThisApplication.TransientGeometry.CreatePoint2d(xMid - breakWidth/2, 0)
Dim endPt = ThisApplication.TransientGeometry.CreatePoint2d(xMid + breakWidth/2, 0)
view.BreakOperations.Add(BreakOrientationEnum.kHorizontalBreakOrientation, startPt, endPt)

&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2011 20:00:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2936682#M141252</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-03-02T20:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2937036#M141253</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had looked around but the samples were the last place i had thought of... excellent advice!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm adapting the code &amp;nbsp;to suit my model, but i've got an error message appearing that says "The parameter is incorrect".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know the first section that removes the break is correct as that is working, it's just not creating the new break.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;!-- StartFragment --&gt;&lt;PRE&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ActiveSheet&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;View&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;DETAIL&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;SetCenter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;320&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;200&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;'&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;If changing center pos, remember to change break geometry below&lt;/SPAN&gt;&lt;SPAN style="font-style: italic; color: #808080;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ActiveSheet&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Name&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;Sheet:1&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Return&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;viewL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ActiveSheet&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;View&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;DETAIL&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;viewL&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;View&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOperations&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOperations&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;1&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Delete&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;End&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;xMid&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Double&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;320&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;modelLength&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Double&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;Parameter&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;2BFD_MESH.iam&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;BW_LEN&lt;/SPAN&gt;&lt;SPAN style="color: #008080;"&gt;"&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;modelLength&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;500&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Then&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Return&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;breakWidth&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;As&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Double&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;modelLength&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;450&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;4&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;startPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreatePoint2d&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;xMid&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;breakWidth&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;endPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreatePoint2d&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;xMid&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;breakWidth&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOperations&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOrientationEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kHorizontalBreakOrientation&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;startPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;endPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;P&gt;&lt;!-- EndFragment --&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Mar 2011 23:23:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2937036#M141253</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-02T23:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2937124#M141254</link>
      <description>&lt;P&gt;&amp;nbsp;I think the error is caused by the breakpoint being outside of the view.&amp;nbsp; I should have mentioned that these are Inventor API calls, and all API calls require coordinates and lengths in units of cm.&amp;nbsp; But iLogic works in document units. It looks like your drawing units are mm.&amp;nbsp;Here's some changes that should fix it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim startPt = ThisApplication.TransientGeometry.CreatePoint2d((xMid - breakWidth/2) * 0.1, 0)&lt;BR /&gt;Dim endPt = ThisApplication.TransientGeometry.CreatePoint2d((xMid + breakWidth/2) * 0.1, 0)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:43:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2937124#M141254</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-03-03T00:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2937144#M141255</link>
      <description>&lt;P&gt;As always Mike, you're right on the money.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It seems strange that the API requires units of centimetres when it's neither American nor metric! Oh well, live and learn...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For anyone interested in the add break function, there are additional parameters you can include to control the style and sizing of the symbol... For instance my line below uses the structural style symbol at 10 display size with a gap of 3mm.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;!-- StartFragment --&gt;&lt;PRE&gt;&lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOperations&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOrientationEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kHorizontalBreakOrientation&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;startPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;endPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakStyleEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kStructuralBreakStyle&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;10&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0.3&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;Once again, thanks for the help Mike!&lt;/P&gt;&lt;!-- EndFragment --&gt;</description>
      <pubDate>Thu, 03 Mar 2011 00:58:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2937144#M141255</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-03-03T00:58:52Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2973576#M141256</link>
      <description>&lt;P&gt;Hi Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have moved on to my next incarnation of this project, and the drawing now requires 2 breaks to be added to the view. I have managed to get the creation of the 2 new break lines to work fine, it's the removal of the existing breaks that is causing an issue for me. Can you please let me know what the syntax would be to clear all of the breaks on a particular view? Below is what you suggested to remove a single break, but now there is more than 1 on the view...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The obvious "view.BreakOperations(2).Delete" causes an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Name&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;lt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;Sheet:1&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Return&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;viewL&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;ActiveSheet&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;View&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;DETAIL&lt;/SPAN&gt;&lt;SPAN&gt;"&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;Dim&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;viewL&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;View&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BreakOperations&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;Count&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;&amp;gt;&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;0&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;Then&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;view&lt;/SPAN&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;SPAN&gt;BreakOperations&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;.&lt;/SPAN&gt;&lt;SPAN&gt;Delete&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;End&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;SPAN&gt;If&lt;/SPAN&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 01 Apr 2011 01:08:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2973576#M141256</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-01T01:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2973990#M141257</link>
      <description>&lt;P&gt;This will do it:&lt;/P&gt;
&lt;PRE&gt;For Each breakOp In view.BreakOperations
  breakOp.Delete
Next
&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Apr 2011 13:08:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/2973990#M141257</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2011-04-01T13:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3778276#M141258</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When reading the posts in this subject, I was very apreciated. That while I was searching for doing the same rules for my assembly; with the same reason. (too large for drawing sheet).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When i copied the lines to my Rule in iLogic, i think i see an problem with those lines.&lt;/P&gt;&lt;P&gt;Especially the last 3 lines gives me errors. iLogic doesn't understand the frases.&lt;/P&gt;&lt;P&gt;&lt;!-- StartFragment --&gt;&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;startPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreatePoint2d&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;xM&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;?&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;breakWidth&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0.1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;endPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-weight: bold;"&gt;ThisApplication&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;CreatePoint2d&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;xM&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;?&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;id&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;+&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;breakWidth&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;/&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;2&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-weight: bold;"&gt;*&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0.1&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;0&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;view&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOperations&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;BreakOrientationEnum&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;kHor&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;?&lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;izontalBreakOrientation&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;startPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000;"&gt;endPt&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-weight: bold;"&gt;)&lt;/SPAN&gt;&lt;/PRE&gt;&lt;P&gt;&lt;!-- EndFragment --&gt;In my iLogic, the words 'Dim' and 'ThisApplication' where known by iLogic, even the characters like /, *, + and the numbers. But words like TransientGeometry.CreatePoint2d where brown, so i think iLogic doesn't understand it, isn't it?&lt;/P&gt;&lt;P&gt;1 error more in the last line, kHorizontalBreakOrientation was the same problem; 'kHor' is not a member of &lt;SPAN style="color: #800000;"&gt;Inventor.BreakOrientationEnum, he said.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG align="center" title="Edit Rule Rule0_2013-02-12_15-09-05.jpg" src="https://forums.autodesk.com/t5/image/serverpage/image-id/47193i321299A15CC732AA/image-size/original?v=mpbl-1&amp;amp;px=-1" border="0" alt="Edit Rule Rule0_2013-02-12_15-09-05.jpg" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I hope someone could help me with this code,&amp;nbsp;I like to use this.&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HvHelden&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 14:13:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3778276#M141258</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-12T14:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3778953#M141259</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The brown colour does not mean that iLogic does not understand the property - as you can see in the previously posted posts as well, which are working for others.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It seems that your code just has some organizational issues:&lt;/P&gt;
&lt;P&gt;- the "0)" line should be ending the previous line instead of starting a new one&lt;/P&gt;
&lt;P&gt;- remove the "?" question marks from the code&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cheers,&lt;/P&gt;</description>
      <pubDate>Tue, 12 Feb 2013 22:16:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3778953#M141259</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2013-02-12T22:16:07Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3779167#M141260</link>
      <description>&lt;P&gt;Hello!&lt;/P&gt;&lt;P&gt;Thanks for your reply,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The suggests you did weren't the problem, in my iLogic rule none ?-symbol visible, and the "0)" point is the end of an line, &lt;SPAN style="color: #808080; font-style: italic;"&gt;view.BreakOperations.Add&lt;/SPAN&gt; stands on an new line.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've rewrite some line's (except copy, only overwrite by myself) and errors from before were resolved!&lt;/P&gt;&lt;P&gt;Current problem is only the 'view' in &lt;SPAN style="color: #808080; font-style: italic;"&gt;view.BreakOperations.Add(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;iLogic gives me the error: "Error on Line 49 : 'view' is ambiguous, imported from the namespaces or types 'Inventor, System.Windows.Forms'."&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After retype the word 'view' and more, the ambiguous error occur.&lt;/P&gt;&lt;P&gt;MjDeck and Adrew.reynolds, dit that error in your rule even occur?&lt;/P&gt;&lt;P&gt;I'am very curious about the reason.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance for help!&lt;/P&gt;&lt;P&gt;HvHelden&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;PS: (The 'delete-break lines' work fine)&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 09:12:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3779167#M141260</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-13T09:12:15Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3779202#M141261</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My guess is that your code indeed ended up with some special characters - perhaps not exactly a "?" but other ones that are not visible in the iLogic editor.&lt;/P&gt;
&lt;P&gt;This assumption is supported by the fact that:&lt;/P&gt;
&lt;P&gt;- when you copy pasted your code into the discussion forum, then the formatting got messed up and "?" characters appeared&lt;/P&gt;
&lt;P&gt;- the error said "Error on Line 37: 'kHor' is not a member of 'Inventor.BreakOrientationEnum'." - i.e. there was something in between "kHor" and "izontalBreakOrientation" that prevented the iLogic interpreter from processing the complete string of "&lt;SPAN&gt;kHor&lt;/SPAN&gt;&lt;SPAN&gt;izontalBreakOrientation"&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- once you rewrote some of the parts they started working&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I would suggest copying all your code from the iLogic editor into Notepad and see what you get (maybe by now you removed all the nasty special characters by rewriting things, but maybe not) If some funny characters show up or lines are broken up wrong, then correct those and then copy/paste back the code from Notepad into the iLogic editor.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 10:04:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3779202#M141261</guid>
      <dc:creator>adam.nagy</dc:creator>
      <dc:date>2013-02-13T10:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3779680#M141262</link>
      <description>&lt;P&gt;HvHelden,&lt;BR /&gt;&amp;nbsp;To help us to resolve this error:&lt;BR /&gt;&amp;nbsp;"Error on Line 49 : 'view' is ambiguous, imported from the namespaces or types 'Inventor, System.Windows.Forms'."&lt;BR /&gt;can you post the complete text of your rule?&lt;BR /&gt;To avoid formatting problems, please copy and paste the text to Notepad. Then save the file as a txt file, and attach that file to your post.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Feb 2013 17:42:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3779680#M141262</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2013-02-13T17:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3792235#M141263</link>
      <description>&lt;P&gt;Hello Adam and Mike,&lt;/P&gt;&lt;P&gt;Thank you for helping sofar.&lt;/P&gt;&lt;P&gt;It's a few weeks ago that i have worked on the rule, because of i had more functions than only do engineering work.&lt;/P&gt;&lt;P&gt;I hope you can remember my problem, and help me solve it.&lt;/P&gt;&lt;P&gt;In this post, i place the textfile 'Rule0' with the iLogic rule from the .idw.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;P&gt;HvH&lt;/P&gt;&lt;PRE&gt;Sub Main
Teller=iTrigger0
'iLogicVb.RunRule("Gestandaardiseerde rol", "Rule0")
Dim BreakWithFactor As Double
Dim Bmaat=Parameter("Gestandaardiseerde rol.iam", "Bmaat")
Select Case Bmaat
Case &amp;lt;400
	ActiveSheet.View("Lengteaanzicht").ScaleString="1:2"
Case &amp;lt;1000
	ActiveSheet.View("Lengteaanzicht").ScaleString="1:5"
	BreakWithFactor=5
Case &amp;lt;1250
	ActiveSheet.View("Lengteaanzicht").ScaleString="1:7,5"
	BreakWithFactor=7.5
Case &amp;gt;1250
	ActiveSheet.View("Lengteaanzicht").ScaleString="1:10"
	BreakWithFactor=10

End Select

If "1:2" IsNot ActiveSheet.View("Lengteaanzicht").ScaleString Then
	DeleteBreaks
End If
End Sub

Sub DeleteBreaks
If (ActiveSheet.Name &amp;lt;&amp;gt; "Rol_compleet:1") Then Return
Dim viewL = ActiveSheet.View("Lengteaanzicht")
Dim view = viewL.View
If (view.BreakOperations.Count &amp;gt; 0) Then
  view.BreakOperations(1).Delete
End If

Dim xMid As Double = ActiveSheet.Sheet.Width / 2  'Helft van papierbreedte
Dim yMid As Double = ActiveSheet.Sheet.Height / 2  'Helft van papierhoogte
Dim modelDocName = IO.Path.GetFileName(viewL.ModelDocument.FullFileName)
Dim Bmaat As Double = Parameter("Gestandaardiseerde rol.iam", "Bmaat")
'If (Bmaat &amp;gt; 1000) Then Return
MessageBox.Show(Bmaat, "Bmaat=")
MessageBox.Show(Bmaat, "Bmaat=")
	
	Dim breakWidth As Double = (((Bmaat-300)/BreakWithFactor))	
	Dim startPt = ThisApplication.TransientGeometry.CreatePoint2d((xMid - (breakWidth*0.05)), yMid)
	Dim endPt = ThisApplication.TransientGeometry.CreatePoint2d((xMid + (breakWidth*0.05)), yMid)
MessageBox.Show(breakWidth, "Goed")
	
	'view.BreakOperations.Add(BreakOrientationEnum.kHorizontalBreakOrientation, startPt, endPt)
	', BreakStyleEnum.kStructuralBreakStyle, 10, 0.3)
End Sub&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 11:02:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3792235#M141263</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-02-28T11:02:51Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3792649#M141264</link>
      <description>&lt;P&gt;It looks like you fixed the compile error that you posted before. Here's an updated version that fixes a few other problems in&amp;nbsp;the rule.&lt;/P&gt;
&lt;P&gt;- BreakWithFactor is shared between the two Subs. It won't work if it's declared only in Main. The easiest way to do it is to declare it outside the Subs (at the VB Class level).&amp;nbsp; I moved Bmaat&amp;nbsp;there as well.&lt;BR /&gt;- IsNot does not generally work for string comparison.&amp;nbsp; Use &amp;lt;&amp;gt; instead.&lt;/P&gt;
&lt;P&gt;- Getting the midpoint of the sheet won't work unless the view is centered. It's better to use the view center. (I think we posted a simple example using the sheet center.&amp;nbsp;We should have used the view center there as well.)&lt;/P&gt;
&lt;P&gt;- The line to Add the break operation had an extra right parenthesis.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2013 16:35:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3792649#M141264</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2013-02-28T16:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3796098#M141265</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hi Mike!&lt;/P&gt;&lt;P&gt;Thanks for sharing that knowledge! &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 didn't know that lines between 'subs' are also read by VB. I've copied your attachment to the iLogic rule, and it works fine! Thereafter, I was busy with figuring out how the value of breakWidth works; and the view is always between the drawing sheet.&lt;/P&gt;&lt;P&gt;Now, I would use not only an horizontal break on&amp;nbsp;a view, but on vertical views too. (So that the length-shortening is in vertical direction). It gives me some bugs, while&amp;nbsp;i changes the endPt&amp;nbsp;and startPt&amp;nbsp;by&amp;nbsp;gives the yMid an (postive and&amp;nbsp;negative, respectively) offset, and xMid where only xMid.&lt;/P&gt;&lt;P&gt;After that, i saw the breakstyleorientation is horizontal vs. vertical, and then it works fine!&lt;/P&gt;&lt;P&gt;Thank you all for helping!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HvHelden&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 05 Mar 2013 09:29:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/3796098#M141265</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-03-05T09:29:36Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/6860372#M141266</link>
      <description>&lt;P&gt;Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How were you able to insert multiple breaks? I've been trying to do the same but I get an error on the last line. Thanks!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;If (ActiveSheet.Name &amp;lt;&amp;gt; "Sheet:1") Then Return
Dim viewL = ActiveSheet.View("A")
Dim view = viewL.View

For Each breakOp In view.BreakOperations
 breakOp.Delete
Next


Dim xMid As Double = ActiveSheet.Sheet.Width / 2
Dim modelDocName = IO.Path.GetFileName(viewL.ModelDocument.FullFileName)
Dim CP_THICKNESS As Double = Parameter(modelDocName, "CP_THICKNESS")
Dim HG_OAL As Double = Parameter(modelDocName, "HG_OAL")
Dim BORE As Double = Parameter(modelDocName, "BORE")
If (HG_OAL &amp;lt; 4) Then Return
x1= (((HG_OAL/2)-CP_THICKNESS)*2)
x2 = (BORE*.6)*2
Dim startPt = ThisApplication.TransientGeometry.CreatePoint2d(xMid-x1, 0)
Dim endPt = ThisApplication.TransientGeometry.CreatePoint2d(xMid-X2, 0)
Dim startPt1 = ThisApplication.TransientGeometry.CreatePoint2d(xMid+X2, 0)
Dim endPt1 = ThisApplication.TransientGeometry.CreatePoint2d(xMid+X1, 0)

view.BreakOperations.Add(BreakOrientationEnum.kHorizontalBreakOrientation, startPt, endPt, BreakStyleEnum.kStructuralBreakStyle)
view.BreakOperations.Add(BreakOrientationEnum.kHorizontalBreakOrientation, startPt1, endPt1, BreakStyleEnum.kStructuralBreakStyle)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 07 Feb 2017 17:03:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/6860372#M141266</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-02-07T17:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9419984#M141267</link>
      <description>&lt;P&gt;Guys what you have done is very useful could somebody help me out, your solutions for me is like Chinese, I don't understand anything &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;Could you please send me a ilogic rule which I run for a single sheet and ask me the break gap size and set's it for all the breaks in all views in that sheet?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried selecting them all with a filter selection and then change but it only changes one of the selected randomly&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 12:10:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9419984#M141267</guid>
      <dc:creator>Manuelcamposcosta</dc:creator>
      <dc:date>2020-04-03T12:10:36Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9420889#M141268</link>
      <description>&lt;P&gt;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/8458080"&gt;@Manuelcamposcosta&lt;/a&gt;&amp;nbsp;, here's a rule that might do what you want. It sets the gap. But maybe you also want to set the length of the break?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 18:42:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9420889#M141268</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2020-04-03T18:42:34Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9420956#M141269</link>
      <description>&lt;P&gt;Here's the rule.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2020 18:54:48 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9420956#M141269</guid>
      <dc:creator>MjDeck</dc:creator>
      <dc:date>2020-04-03T18:54:48Z</dc:date>
    </item>
    <item>
      <title>Re: Control 'break' size in drawing view using iLogic?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9423422#M141270</link>
      <description>&lt;P&gt;I don't know what is called the length, is it the slider with Min. and Max.?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For me this is perfect it's exactly what I needed, I really appreciate your work, THANK YOU SO MUCH!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try to understand what you did I'm starting now, my main difficulty is to understand were do you find all those name for the variables that control specific parts of inventor.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way is there any option to preview the part without break's? If I'm editing a drawing someone made I need to know if I'm not hiding details, but right know the only way I found was to delete all of them and then apply them as needed.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Edit: I found a way to toggle on and off trough display options of the view but I can't see where the breaks will be.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 05 Apr 2020 19:27:42 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/control-break-size-in-drawing-view-using-ilogic/m-p/9423422#M141270</guid>
      <dc:creator>Manuelcamposcosta</dc:creator>
      <dc:date>2020-04-05T19:27:42Z</dc:date>
    </item>
  </channel>
</rss>

