<?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 The ”Sketch3d.IntersectionCurves.Add()” method of getting an intersection curve in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-sketch3d-intersectioncurves-add-method-of-getting-an/m-p/7039456#M71844</link>
    <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I want to get an intersection curve of a surface and a workplane, which can be achieved manually in Inventor, but I cannot achieve it through API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I checked some post in this forum and I found some solutions. A solution may be useful&amp;nbsp;as following, which comes from the post “&lt;A href="https://forums.autodesk.com/t5/inventor-customization/sketch-using-curve-generated-by-intersection-of-surface-and-a/m-p/5353147#M52415" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/sketch-using-curve-generated-by-intersection-of-surface-and-a/m-p/5353147#M52415&lt;/A&gt;”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The method mentioned as following:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Dim oIntersectionCurve1 As IntersectionCurve
Set oIntersectionCurve1 = oSketch3d.IntersectionCurves.Add(oSurf1.SurfaceBodies.Item(1), oBlueBoxBody)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;But when I used the method, an error arise as “&lt;STRONG&gt;Compile error: User-defined type not defined.&lt;/STRONG&gt;”, which can be seen in the following figure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My Inventor edition is "&lt;STRONG&gt;Autodesk Inventor Professional 2012&lt;/STRONG&gt;". I don’t know the reason. Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="111.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/348938i5160A03ABE8B01BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.png" alt="111.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 25 Apr 2017 01:58:50 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-04-25T01:58:50Z</dc:date>
    <item>
      <title>The ”Sketch3d.IntersectionCurves.Add()” method of getting an intersection curve</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-sketch3d-intersectioncurves-add-method-of-getting-an/m-p/7039456#M71844</link>
      <description>&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; I want to get an intersection curve of a surface and a workplane, which can be achieved manually in Inventor, but I cannot achieve it through API.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then I checked some post in this forum and I found some solutions. A solution may be useful&amp;nbsp;as following, which comes from the post “&lt;A href="https://forums.autodesk.com/t5/inventor-customization/sketch-using-curve-generated-by-intersection-of-surface-and-a/m-p/5353147#M52415" target="_blank"&gt;https://forums.autodesk.com/t5/inventor-customization/sketch-using-curve-generated-by-intersection-of-surface-and-a/m-p/5353147#M52415&lt;/A&gt;”&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The method mentioned as following:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;Dim oIntersectionCurve1 As IntersectionCurve
Set oIntersectionCurve1 = oSketch3d.IntersectionCurves.Add(oSurf1.SurfaceBodies.Item(1), oBlueBoxBody)&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;But when I used the method, an error arise as “&lt;STRONG&gt;Compile error: User-defined type not defined.&lt;/STRONG&gt;”, which can be seen in the following figure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;My Inventor edition is "&lt;STRONG&gt;Autodesk Inventor Professional 2012&lt;/STRONG&gt;". I don’t know the reason. Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="111.png" style="width: 705px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/348938i5160A03ABE8B01BC/image-size/large?v=v2&amp;amp;px=999" role="button" title="111.png" alt="111.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 25 Apr 2017 01:58:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/the-sketch3d-intersectioncurves-add-method-of-getting-an/m-p/7039456#M71844</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-25T01:58:50Z</dc:date>
    </item>
  </channel>
</rss>

