<?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 Adding Dimensions to DrawingView WITHOUT selecting anything per hand? in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-dimensions-to-drawingview-without-selecting-anything-per/m-p/13104283#M173212</link>
    <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I am searching for quite a while for answers to my problem so maybe you can help me?&lt;/P&gt;&lt;P&gt;Given Situation: Developing in VB.Net no vba or ilogic&lt;/P&gt;&lt;P&gt;I have a Drawingdocumemt, the assemblydocument which is the represented document there as input parameters. This drawingdocumemt do have 1 sheet and about 2 views which am getting without a problem.&lt;/P&gt;&lt;P&gt;So lets say the known parameters are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub CreatyDimensions( DrwDoc as DrawingDocument, As&lt;SPAN&gt;mDoc as AssemblyDocument)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dim FrontView as DrawingView = DrgDoc.Sheets.Item(1).DrawingViews.Item("Frontview")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Two different possible Ways detected:&lt;/P&gt;&lt;P&gt;Dim oOcc as ComponentOccurence = GetMySearchedOcc(oDataTable) 'DataTable will know the name i need and the function returns the desired Occurence&lt;/P&gt;&lt;P&gt;Dim curves As DrawingCurvesEnumerator = FrontView.DrawingCurves(oOcc) 'Found this on ModTheMaschine Page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now... This should return all DrawingCurves belonging to that Occurence, n&lt;/P&gt;&lt;P&gt;But for an actual Dimension to be made I only found examples which uses a select from the user, which is not available in this case. I read that i could do via segments or proxies or GeometryIntend but... I have no clue if that is right or how that could be done.&lt;/P&gt;&lt;P&gt;Attribute Helper do not help because the Geometry I do need is controlled by geometry arrays and other things that might be there but not have to be there&lt;/P&gt;&lt;P&gt;&amp;nbsp;E.g. you have 11 Rectangular Elements and want to set a dimension to the mid one and the forst one. Its a multi body volume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Maybe someone can help me?&lt;/LI&gt;&lt;/UL&gt;</description>
    <pubDate>Wed, 23 Oct 2024 22:46:37 GMT</pubDate>
    <dc:creator>infoQ82EV</dc:creator>
    <dc:date>2024-10-23T22:46:37Z</dc:date>
    <item>
      <title>Adding Dimensions to DrawingView WITHOUT selecting anything per hand?</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-dimensions-to-drawingview-without-selecting-anything-per/m-p/13104283#M173212</link>
      <description>&lt;P&gt;Hey there,&lt;/P&gt;&lt;P&gt;I am searching for quite a while for answers to my problem so maybe you can help me?&lt;/P&gt;&lt;P&gt;Given Situation: Developing in VB.Net no vba or ilogic&lt;/P&gt;&lt;P&gt;I have a Drawingdocumemt, the assemblydocument which is the represented document there as input parameters. This drawingdocumemt do have 1 sheet and about 2 views which am getting without a problem.&lt;/P&gt;&lt;P&gt;So lets say the known parameters are&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Private Sub CreatyDimensions( DrwDoc as DrawingDocument, As&lt;SPAN&gt;mDoc as AssemblyDocument)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Dim FrontView as DrawingView = DrgDoc.Sheets.Item(1).DrawingViews.Item("Frontview")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'Two different possible Ways detected:&lt;/P&gt;&lt;P&gt;Dim oOcc as ComponentOccurence = GetMySearchedOcc(oDataTable) 'DataTable will know the name i need and the function returns the desired Occurence&lt;/P&gt;&lt;P&gt;Dim curves As DrawingCurvesEnumerator = FrontView.DrawingCurves(oOcc) 'Found this on ModTheMaschine Page&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now... This should return all DrawingCurves belonging to that Occurence, n&lt;/P&gt;&lt;P&gt;But for an actual Dimension to be made I only found examples which uses a select from the user, which is not available in this case. I read that i could do via segments or proxies or GeometryIntend but... I have no clue if that is right or how that could be done.&lt;/P&gt;&lt;P&gt;Attribute Helper do not help because the Geometry I do need is controlled by geometry arrays and other things that might be there but not have to be there&lt;/P&gt;&lt;P&gt;&amp;nbsp;E.g. you have 11 Rectangular Elements and want to set a dimension to the mid one and the forst one. Its a multi body volume.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Maybe someone can help me?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 23 Oct 2024 22:46:37 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/adding-dimensions-to-drawingview-without-selecting-anything-per/m-p/13104283#M173212</guid>
      <dc:creator>infoQ82EV</dc:creator>
      <dc:date>2024-10-23T22:46:37Z</dc:date>
    </item>
  </channel>
</rss>

