<?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 My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing. in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13147347#M173900</link>
    <description>&lt;P&gt;The AddLinear method requires a GeometryIntent object created from the Sheet class, and Sheet.CreateGeometryIntent() can only accept edges within the view. How can I convert an edge in the model into an edge within the view?&lt;/P&gt;&lt;P&gt;Or, my approach might be incorrect. What are the correct steps to achieve my requirement?&lt;/P&gt;</description>
    <pubDate>Wed, 13 Nov 2024 05:45:46 GMT</pubDate>
    <dc:creator>1210550275</dc:creator>
    <dc:date>2024-11-13T05:45:46Z</dc:date>
    <item>
      <title>My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13147347#M173900</link>
      <description>&lt;P&gt;The AddLinear method requires a GeometryIntent object created from the Sheet class, and Sheet.CreateGeometryIntent() can only accept edges within the view. How can I convert an edge in the model into an edge within the view?&lt;/P&gt;&lt;P&gt;Or, my approach might be incorrect. What are the correct steps to achieve my requirement?&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 05:45:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13147347#M173900</guid>
      <dc:creator>1210550275</dc:creator>
      <dc:date>2024-11-13T05:45:46Z</dc:date>
    </item>
    <item>
      <title>Re: My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13147658#M173905</link>
      <description>&lt;P&gt;This is a sample, how to create drawing dimension to the specified edge in model. It requires update, because it doesn't contain your logic for edge selection, text positioning, works only for part, etc. But it can be used as starting point.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Expected dataset:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Drawing with single drawing view on active sheet&lt;/LI&gt;&lt;LI&gt;Drawing view references simple part with one extrusion of box&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;'Get relevant documents
dim drw as DrawingDocument = ThisDoc.Document
dim part As PartDocument = drw.ReferencedDocuments(1)

'Get edge in model
' !! This is just a sample. Modify it for your needs. !!
Dim partEdge = part.ComponentDefinition.Features.ExtrudeFeatures(1).EndFaces(1).Edges(1)

'Get drawing sheet and view
Dim drwSheet as Sheet = drw.ActiveSheet
Dim drwView as DrawingView = drwSheet.DrawingViews(1)

'Get drawing curve which corresponds with model edge
Dim edgeCurves As DrawingCurvesEnumerator = drwView.DrawingCurves(partEdge)
If edgeCurves.Count = 0 Then
    Logger.Error("There is no drawing curve for specified edge.")
    return
End If

'Create geometry intent for edge
Dim partEdgeIntent As GeometryIntent = drwSheet.CreateGeometryIntent(edgeCurves(1))

'Crete dimension
Dim textOrigin As Point2d = drwView.Position
drwSheet.DrawingDimensions.GeneralDimensions.AddLinear(textOrigin, partEdgeIntent, DimensionType := DimensionTypeEnum.kAlignedDimensionType)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Dataset preview&lt;/P&gt;&lt;DIV class=""&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2024-11-13_10-19-14.jpg" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1433272i7860F24B1588C0F2/image-size/medium?v=v2&amp;amp;px=400" role="button" title="2024-11-13_10-19-14.jpg" alt="2024-11-13_10-19-14.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 09:22:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13147658#M173905</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-11-13T09:22:04Z</dc:date>
    </item>
    <item>
      <title>Re: My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13149289#M173932</link>
      <description>&lt;P&gt;I really appreciate your help, it was a huge relief. I sincerely hope to have the opportunity to seek your advice again in the future.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Nov 2024 01:22:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13149289#M173932</guid>
      <dc:creator>1210550275</dc:creator>
      <dc:date>2024-11-14T01:22:07Z</dc:date>
    </item>
    <item>
      <title>Re: My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156237#M174025</link>
      <description>Hello,I have a question regarding the acquisition of a "side" as follows.&lt;BR /&gt;In the parts, you can manually assign a name to a certain face or edge, which will be displayed in "Named Geometric Elements". Suppose I name a face "Face 1" and name an edge within "Face 1" as "Edge 1".&lt;BR /&gt;Is there a method in the API that allows direct access to "Edge 1"?</description>
      <pubDate>Mon, 18 Nov 2024 02:40:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156237#M174025</guid>
      <dc:creator>1210550275</dc:creator>
      <dc:date>2024-11-18T02:40:40Z</dc:date>
    </item>
    <item>
      <title>Re: My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156518#M174027</link>
      <description>&lt;P&gt;You can use Attributes API, or iLogic.&lt;/P&gt;&lt;P&gt;If you want to use iLogic, you need to convert variable part to ICadDocument. Below is the sample how to do it.&lt;/P&gt;&lt;P&gt;This code can replace line 3 and 7 in above sample.&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;...
Dim part As PartDocument = drw.ReferencedDocuments(1)
Dim partCadDoc = New CadDoc(part)
Dim partEdge = partCadDoc.NamedEntities.TryGetEntity("Edge1")
...&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 07:04:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156518#M174027</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-11-18T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156566#M174029</link>
      <description>Thank you for your response.&lt;BR /&gt;Are there alternatives to these methods in the Inventor API?&lt;BR /&gt;I noticed that there is no NamedEntities object in the Inventor API. How can I achieve the same effect using the Inventor API?&lt;BR /&gt;</description>
      <pubDate>Mon, 18 Nov 2024 07:50:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156566#M174029</guid>
      <dc:creator>1210550275</dc:creator>
      <dc:date>2024-11-18T07:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156588#M174031</link>
      <description>&lt;P&gt;This information is stored in &lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-E06575AE-56CF-4229-8C93-64B95DB4831C" target="_blank"&gt;Attributes&lt;/A&gt;. Try to look at this part of the API. You need to know how it works.&lt;/P&gt;&lt;P&gt;For better understanding and testing you can use &lt;A href="https://ekinssolutions.com/nifty_attributes/" target="_blank"&gt;NiftyAttributes&lt;/A&gt; by Brian Ekkins.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Nov 2024 08:05:30 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13156588#M174031</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2024-11-18T08:05:30Z</dc:date>
    </item>
    <item>
      <title>Re: My requirement : Use the Inventor API to obtain a specific edge within a model feature and add dimension annotations to this edge in the engineering drawing.</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13158864#M174070</link>
      <description>Thanks~</description>
      <pubDate>Tue, 19 Nov 2024 02:58:34 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/my-requirement-use-the-inventor-api-to-obtain-a-specific-edge/m-p/13158864#M174070</guid>
      <dc:creator>1210550275</dc:creator>
      <dc:date>2024-11-19T02:58:34Z</dc:date>
    </item>
  </channel>
</rss>

