<?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: Creating a 3D geometric conincident constraint in a 3D Sketch via VBA (testing) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713651#M115185</link>
    <description>&lt;P&gt;this works for me. (it assumes that there are 2x 2d sketches with at least 1 line in them)&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sketch1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sketches&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sketch2&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sketches&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(2)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;line1&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sketch1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;line2&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sketch2&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sketch3d&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch3D&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sketches3D&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;()


&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p1&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;line1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartSketchPoint&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p2&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;line2&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartSketchPoint&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;sketch3d&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines3D&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByTwoPoints&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;p1&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;p2&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' or the log way&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p3&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePoint&lt;/SPAN&gt;(1, 1, 1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p4&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePoint&lt;/SPAN&gt;(2, 2, 2)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;line&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SketchLine3D&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sketch3d&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines3D&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByTwoPoints&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;p3&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;p4&lt;/SPAN&gt;)

&lt;SPAN style="color: #800000;"&gt;line&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartSketchPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ConnectTo&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;line1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndSketchPoint&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;line&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndSketchPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ConnectTo&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;line2&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndSketchPoint&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Aug 2020 19:37:44 GMT</pubDate>
    <dc:creator>JelteDeJong</dc:creator>
    <dc:date>2020-08-26T19:37:44Z</dc:date>
    <item>
      <title>Creating a 3D geometric conincident constraint in a 3D Sketch via VBA (testing)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713318#M115175</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Created a 3D sketch and would like to constrain the end point of the line to another point which is constrained to 2D sketch.&amp;nbsp; We are able to constrain the 3D sketch to the point via the UI, but when attempting to do via code (VBA for testing) we are getting an error.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To be specific, a Run-time error '13': type mismatch.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   Dim oCoinConst As Inventor.CoincidentConstraint3D
   Set oCoinConst = oSketch3D.GeometricConstraints3D.AddCoincident(oLineA, OriginPoint)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;oLineA is a Sketch3D entity&lt;/P&gt;&lt;P&gt;OriginPoint is a Point&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Annotation 2020-08-26 112626.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/811655i3D657C34ECE47639/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-08-26 112626.png" alt="Annotation 2020-08-26 112626.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Module code:&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Public Sub Create3DSketch(name As String, mp As ObjectCollection) '  mp() As WorkPoint)
  
  Dim oCompDef As PartComponentDefinition
  Set oCompDef = myPartDoc.ComponentDefinition
  
  'Dim oSketch3D As Sketch3D (global variable)
  Set oSketch3D = oCompDef.Sketches3D.Add
  
  ' Name the newly created 3d sketch
  oSketch3D.name = UCSSkName
    
  Dim oTG As TransientGeometry
  Set oTG = ThisApplication.TransientGeometry
  
  Dim oOriginSP As SketchPoint3D
  ''set oOriginSP =
  Set oOriginSP = oSketch3D.SketchPoints3D.Add(OriginPoint, False)
  ''Call oOriginSP.ConnectTo(OriginPoint)
  
  ''   https://forums.autodesk.com/t5/inventor-customization/constraining-a-sketch-point-to-the-origin-using-vba/td-p/2387173
    
  Dim oLineA As SketchLine3D
  Dim oLineXaxis As SketchLine3D
  Dim oLineYaxis As SketchLine3D
  
  Set oLineA = oSketch3D.SketchLines3D.AddByTwoPoints(oOriginSP, mp.Item(2))
  Set oLineXaxis = oSketch3D.SketchLines3D.AddByTwoPoints(oLineA.EndSketchPoint, mp.Item(3), False)
  Set oLineYaxis = oSketch3D.SketchLines3D.AddByTwoPoints(oLineA.EndSketchPoint, mp.Item(4), False)
 
  ' Constrain oLineA to the z-axis
  Dim oParallalZ As ParallelToZAxisConstraint3D
  Set oParallalZ = oSketch3D.GeometricConstraints3D.AddParallelToZAxis(oLineA)
    
  ' Constrain oLineXaxis to the x-axis
  Dim oParallelX As ParallelToXAxisConstraint3D
  Set oParallelX = oSketch3D.GeometricConstraints3D.AddParallelToXAxis(oLineXaxis)
  
  ' Constrain oLineYaxis to the y-axis
  Dim oParallelY As ParallelToYAxisConstraint3D
  Set oParallelY = oSketch3D.GeometricConstraints3D.AddParallelToYAxis(oLineYaxis)
    
  oLineA.Construction = True
  oLineXaxis.Construction = True
  oLineYaxis.Construction = True
  
  Dim oLineLenConstr3D As LineLengthDimConstraint3D
  Set oLineLenConstr3D = oSketch3D.DimensionConstraints3D.AddLineLength(oLineA)
  ' oLineLenConstr3D.Driven = False
  
'  Dim oModelParam As UserParameter
'  Set oModelParam = oLineLenConstr3D.Parameter
      
   ' Constrain mp(0) with OriginPoint
   Dim oCoinConst As Inventor.CoincidentConstraint3D
   Set oCoinConst = oSketch3D.GeometricConstraints3D.AddCoincident(oLineA, OriginPoint)
         

End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Will eventually tie the 3D sketch z elevation to a user parameter, but first things first.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reading.&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, 26 Aug 2020 16:30:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713318#M115175</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-26T16:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a 3D geometric conincident constraint in a 3D Sketch via VBA (testing)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713543#M115181</link>
      <description>&lt;P&gt;Doing some digging in the API help document and come to find out that trying to place the a conincident constraint between two points will fail, and it states that we should use the ConnectTo method on the sketchpoint3d object to merge two points.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;   'SketchPoint3D.ConnectTo( ConstrainingPoint As Object )
   Call oLineA.StartPoint.ConnectTo(OriginPoint)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Trying that approach, but now we're getting an error dialog.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Annotation 2020-08-26 132644.png" style="width: 535px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/811700i6145A64C4615559F/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-08-26 132644.png" alt="Annotation 2020-08-26 132644.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Keep, keeping on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'll figure it out eventually. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@B4D44A73814D7FC0D950DEDFACB97081/emoticons/1f642.png" alt=":slightly_smiling_face:" title=":slightly_smiling_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;M.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 18:34:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713543#M115181</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-26T18:34:31Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a 3D geometric conincident constraint in a 3D Sketch via VBA (testing)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713651#M115185</link>
      <description>&lt;P&gt;this works for me. (it assumes that there are 2x 2d sketches with at least 1 line in them)&lt;/P&gt;&lt;PRE&gt;&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;PartDocument&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisDoc&lt;/SPAN&gt;.&lt;SPAN style="color: #800080;"&gt;Document&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;doc&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ComponentDefinition&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sketch1&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sketches&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sketch2&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sketches&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(2)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;line1&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sketch1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;line2&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sketch2&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Item&lt;/SPAN&gt;(1)

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;sketch3d&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;Sketch3D&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;def&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Sketches3D&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;Add&lt;/SPAN&gt;()


&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p1&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;line1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartSketchPoint&lt;/SPAN&gt;
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p2&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;line2&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartSketchPoint&lt;/SPAN&gt;
&lt;SPAN style="color: #800000;"&gt;sketch3d&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines3D&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByTwoPoints&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;p1&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;p2&lt;/SPAN&gt;)

&lt;SPAN style="color: #808080;"&gt;' or the log way&lt;/SPAN&gt;

&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p3&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePoint&lt;/SPAN&gt;(1, 1, 1)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;p4&lt;/SPAN&gt; = &lt;SPAN style="color: #800080;"&gt;ThisApplication&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;TransientGeometry&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;CreatePoint&lt;/SPAN&gt;(2, 2, 2)
&lt;SPAN style="color: #ff0000;"&gt;Dim&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;line&lt;/SPAN&gt; &lt;SPAN style="color: #ff0000;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;SketchLine3D&lt;/SPAN&gt; = &lt;SPAN style="color: #800000;"&gt;sketch3d&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;SketchLines3D&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;AddByTwoPoints&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;p3&lt;/SPAN&gt;, &lt;SPAN style="color: #800000;"&gt;p4&lt;/SPAN&gt;)

&lt;SPAN style="color: #800000;"&gt;line&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;StartSketchPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ConnectTo&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;line1&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndSketchPoint&lt;/SPAN&gt;)
&lt;SPAN style="color: #800000;"&gt;line&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndSketchPoint&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;ConnectTo&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;line2&lt;/SPAN&gt;.&lt;SPAN style="color: #800000;"&gt;EndSketchPoint&lt;/SPAN&gt;)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 19:37:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713651#M115185</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2020-08-26T19:37:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a 3D geometric conincident constraint in a 3D Sketch via VBA (testing)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713751#M115188</link>
      <description>&lt;P&gt;No joy.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Works via iLogic, but not via VBA. &lt;img class="lia-deferred-image lia-image-emoji" src="https://forums.autodesk.com/html/@F462EEC827775DA92CB03B7FC147D389/emoticons/1f61e.png" alt=":disappointed_face:" title=":disappointed_face:" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-center" image-alt="Annotation 2020-08-26 152837.png" style="width: 999px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/811743i69477A0A8F190205/image-size/large?v=v2&amp;amp;px=999" role="button" title="Annotation 2020-08-26 152837.png" alt="Annotation 2020-08-26 152837.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;  
  Set oLineA = oSketch3D.SketchLines3D.AddByTwoPoints(oOriginSP, mp.Item(2))
  Set oLineXaxis = oSketch3D.SketchLines3D.AddByTwoPoints(oLineA.EndSketchPoint, mp.Item(3), False)
  Set oLineYaxis = oSketch3D.SketchLines3D.AddByTwoPoints(oLineA.EndSketchPoint, mp.Item(4), False)
  
  'SketchPoint3D.ConnectTo( ConstrainingPoint As Object )
  Call oLineA.StartSketchPoint.ConnectTo(OriginPoint)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Getting the error on the last line above.&lt;/P&gt;</description>
      <pubDate>Wed, 26 Aug 2020 20:39:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/creating-a-3d-geometric-conincident-constraint-in-a-3d-sketch/m-p/9713751#M115188</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-08-26T20:39:52Z</dc:date>
    </item>
  </channel>
</rss>

