<?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 Create Point2d from SketchPoint in Circular Pattern in Sketch VB.NET in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11175936#M36998</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inventor 2022&lt;/P&gt;&lt;P&gt;API Visual Studio VB.NET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try to Create a little bit Complex Sketch.&lt;/P&gt;&lt;P&gt;The Goal is to get Circulat Pattern of Lines in a SketchArc2d.&lt;/P&gt;&lt;P&gt;It works not bad, but only when i use simple Coordinates Points, for example 0,0 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_0-1652832310844.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068494iE1D8CB7A5327C23E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_0-1652832310844.png" alt="florianwenzelEJNZZ_0-1652832310844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_1-1652832334857.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068495i9FE7542368843515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_1-1652832334857.png" alt="florianwenzelEJNZZ_1-1652832334857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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-inline" image-alt="florianwenzelEJNZZ_1-1652831048724.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068484iB1B91ECD04EAC196/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_1-1652831048724.png" alt="florianwenzelEJNZZ_1-1652831048724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code:&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;&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;LI-CODE lang="general"&gt;Imports System.Runtime.InteropServices
Imports Inventor
Imports Microsoft.Win32



Module CommandFunctionButton_09
    Public Sub CommandFunctionfweButton_09()

        Dim oPartDoc As PartDocument = g_inventorApplication.ActiveDocument
        Dim oCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition
        Dim oTO As TransientObjects = g_inventorApplication.TransientObjects
        Dim oTG As TransientGeometry = g_inventorApplication.TransientGeometry



        Dim oCurve As Object = CType(g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kSketchCurveFilter, "Pick a Curve"), Object)

        Dim oPlane09 As Object = CType(g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kWorkPlaneFilter, "Pick a Plane"), Object)

        Dim oWorkSketch09 As PlanarSketch = oCompDef.Sketches.Add(oPlane09, False)

        Dim oEntity09 As SketchEntity
        oEntity09 = oWorkSketch09.AddByProjectingEntity(oCurve)


        Dim oSketchLine09a As SketchLine
        oSketchLine09a = oWorkSketch09.SketchLines.AddByTwoPoints(oEntity09.CenterSketchPoint, oEntity09.EndSketchPoint)

        Dim oSketchLine09b As SketchLine
        oSketchLine09b = oWorkSketch09.SketchLines.AddByTwoPoints(oEntity09.CenterSketchPoint, oEntity09.StartSketchPoint)

        Dim oRotatePoint2 As Point2d
        oRotatePoint2 = oTG.CreatePoint2d(10, 0)

        Dim oAngleDim As TwoLineAngleDimConstraint
        oAngleDim = oWorkSketch09.DimensionConstraints.AddTwoLineAngle(oSketchLine09a, oSketchLine09b, oRotatePoint2, True)

        Dim oValueAngle As Double
        oValueAngle = oAngleDim._DisplayValue

        Dim oValue1 As Double
        oValue1 = oValueAngle / 4

        Dim oValue2 As Double
        oValue2 = oValue1 * 2

        Dim oValue3 As Double
        oValue3 = oValue1 * 3

        Dim oColection As ObjectCollection
        oColection = oTO.CreateObjectCollection
        Call oColection.Add(oSketchLine09b)

        Dim oRotatePoint As Point2d
        oRotatePoint = oTG.CreatePoint2d(0, 0)


        Call oWorkSketch09.RotateSketchObjects(oColection, oRotatePoint, oValue1, True, False)
        Call oWorkSketch09.RotateSketchObjects(oColection, oRotatePoint, oValue2, True, False)
        Call oWorkSketch09.RotateSketchObjects(oColection, oRotatePoint, oValue3, True, False)

    End Sub
End Module&lt;/LI-CODE&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;&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_2-1652831106703.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068487i78BE556988DE63AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_2-1652831106703.png" alt="florianwenzelEJNZZ_2-1652831106703.png" /&gt;&lt;/span&gt;&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;The Question is:&lt;/P&gt;&lt;P&gt;a) How to Create Point2d from SketchPoint, for example from Start or EndPoint of Sketchline or Center of Arc?&lt;/P&gt;&lt;P&gt;For Example, when the CenterPoint of Arc is somewere in space, or to define the Point2d by Dimmension etc..&lt;/P&gt;&lt;P&gt;Not to using X and Y Coords.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_0-1652833234435.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068505i0562539AD386689F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_0-1652833234435.png" alt="florianwenzelEJNZZ_0-1652833234435.png" /&gt;&lt;/span&gt;&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;b) How to Define the creating SketchLines via Feature "RotateSketchObject", so that i can later use this ?&lt;/P&gt;&lt;P&gt;as SketchLineR1, SketchLineR2, SketchLineR3 etc..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_1-1652832885753.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068502iDD0A5424B351A083/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_1-1652832885753.png" alt="florianwenzelEJNZZ_1-1652832885753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;c) How to Define&amp;nbsp; a existing already Arc2d in a Sketch via AddByProjectingEntity? for example to use the CenterPoint?&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-inline" image-alt="florianwenzelEJNZZ_3-1652833032747.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068504i9E68A6CDC8C0152F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_3-1652833032747.png" alt="florianwenzelEJNZZ_3-1652833032747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;d) with API Sketch RotateSketchObject is not exactly the same, as we manually (native) use in Sketch CircularPattern, does CircularPattern working also in Sketch?&amp;nbsp;&lt;/P&gt;&lt;P&gt;in&amp;nbsp;&amp;nbsp;RotateSketchObject we are not able to choose the count and etc...&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-inline" image-alt="florianwenzelEJNZZ_2-1652832981188.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068503iE18B661EF072F6F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_2-1652832981188.png" alt="florianwenzelEJNZZ_2-1652832981188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to make this with file &lt;STRONG&gt;Test_43&lt;/STRONG&gt;, without using Coords X,Y to define Point2d.&lt;/P&gt;&lt;P&gt;Is it possible, to Create the Point2d using other methode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any Sugestion&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 18 May 2022 06:55:36 GMT</pubDate>
    <dc:creator>florian_wenzel</dc:creator>
    <dc:date>2022-05-18T06:55:36Z</dc:date>
    <item>
      <title>Create Point2d from SketchPoint in Circular Pattern in Sketch VB.NET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11175936#M36998</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Inventor 2022&lt;/P&gt;&lt;P&gt;API Visual Studio VB.NET&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i try to Create a little bit Complex Sketch.&lt;/P&gt;&lt;P&gt;The Goal is to get Circulat Pattern of Lines in a SketchArc2d.&lt;/P&gt;&lt;P&gt;It works not bad, but only when i use simple Coordinates Points, for example 0,0 &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_0-1652832310844.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068494iE1D8CB7A5327C23E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_0-1652832310844.png" alt="florianwenzelEJNZZ_0-1652832310844.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_1-1652832334857.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068495i9FE7542368843515/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_1-1652832334857.png" alt="florianwenzelEJNZZ_1-1652832334857.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&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-inline" image-alt="florianwenzelEJNZZ_1-1652831048724.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068484iB1B91ECD04EAC196/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_1-1652831048724.png" alt="florianwenzelEJNZZ_1-1652831048724.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the code:&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;&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;LI-CODE lang="general"&gt;Imports System.Runtime.InteropServices
Imports Inventor
Imports Microsoft.Win32



Module CommandFunctionButton_09
    Public Sub CommandFunctionfweButton_09()

        Dim oPartDoc As PartDocument = g_inventorApplication.ActiveDocument
        Dim oCompDef As PartComponentDefinition = oPartDoc.ComponentDefinition
        Dim oTO As TransientObjects = g_inventorApplication.TransientObjects
        Dim oTG As TransientGeometry = g_inventorApplication.TransientGeometry



        Dim oCurve As Object = CType(g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kSketchCurveFilter, "Pick a Curve"), Object)

        Dim oPlane09 As Object = CType(g_inventorApplication.CommandManager.Pick(SelectionFilterEnum.kWorkPlaneFilter, "Pick a Plane"), Object)

        Dim oWorkSketch09 As PlanarSketch = oCompDef.Sketches.Add(oPlane09, False)

        Dim oEntity09 As SketchEntity
        oEntity09 = oWorkSketch09.AddByProjectingEntity(oCurve)


        Dim oSketchLine09a As SketchLine
        oSketchLine09a = oWorkSketch09.SketchLines.AddByTwoPoints(oEntity09.CenterSketchPoint, oEntity09.EndSketchPoint)

        Dim oSketchLine09b As SketchLine
        oSketchLine09b = oWorkSketch09.SketchLines.AddByTwoPoints(oEntity09.CenterSketchPoint, oEntity09.StartSketchPoint)

        Dim oRotatePoint2 As Point2d
        oRotatePoint2 = oTG.CreatePoint2d(10, 0)

        Dim oAngleDim As TwoLineAngleDimConstraint
        oAngleDim = oWorkSketch09.DimensionConstraints.AddTwoLineAngle(oSketchLine09a, oSketchLine09b, oRotatePoint2, True)

        Dim oValueAngle As Double
        oValueAngle = oAngleDim._DisplayValue

        Dim oValue1 As Double
        oValue1 = oValueAngle / 4

        Dim oValue2 As Double
        oValue2 = oValue1 * 2

        Dim oValue3 As Double
        oValue3 = oValue1 * 3

        Dim oColection As ObjectCollection
        oColection = oTO.CreateObjectCollection
        Call oColection.Add(oSketchLine09b)

        Dim oRotatePoint As Point2d
        oRotatePoint = oTG.CreatePoint2d(0, 0)


        Call oWorkSketch09.RotateSketchObjects(oColection, oRotatePoint, oValue1, True, False)
        Call oWorkSketch09.RotateSketchObjects(oColection, oRotatePoint, oValue2, True, False)
        Call oWorkSketch09.RotateSketchObjects(oColection, oRotatePoint, oValue3, True, False)

    End Sub
End Module&lt;/LI-CODE&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;&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;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_2-1652831106703.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068487i78BE556988DE63AA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_2-1652831106703.png" alt="florianwenzelEJNZZ_2-1652831106703.png" /&gt;&lt;/span&gt;&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;The Question is:&lt;/P&gt;&lt;P&gt;a) How to Create Point2d from SketchPoint, for example from Start or EndPoint of Sketchline or Center of Arc?&lt;/P&gt;&lt;P&gt;For Example, when the CenterPoint of Arc is somewere in space, or to define the Point2d by Dimmension etc..&lt;/P&gt;&lt;P&gt;Not to using X and Y Coords.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_0-1652833234435.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068505i0562539AD386689F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_0-1652833234435.png" alt="florianwenzelEJNZZ_0-1652833234435.png" /&gt;&lt;/span&gt;&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;b) How to Define the creating SketchLines via Feature "RotateSketchObject", so that i can later use this ?&lt;/P&gt;&lt;P&gt;as SketchLineR1, SketchLineR2, SketchLineR3 etc..&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="florianwenzelEJNZZ_1-1652832885753.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068502iDD0A5424B351A083/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_1-1652832885753.png" alt="florianwenzelEJNZZ_1-1652832885753.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;c) How to Define&amp;nbsp; a existing already Arc2d in a Sketch via AddByProjectingEntity? for example to use the CenterPoint?&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-inline" image-alt="florianwenzelEJNZZ_3-1652833032747.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068504i9E68A6CDC8C0152F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_3-1652833032747.png" alt="florianwenzelEJNZZ_3-1652833032747.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;d) with API Sketch RotateSketchObject is not exactly the same, as we manually (native) use in Sketch CircularPattern, does CircularPattern working also in Sketch?&amp;nbsp;&lt;/P&gt;&lt;P&gt;in&amp;nbsp;&amp;nbsp;RotateSketchObject we are not able to choose the count and etc...&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-inline" image-alt="florianwenzelEJNZZ_2-1652832981188.png" style="width: 600px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/1068503iE18B661EF072F6F9/image-size/medium?v=v2&amp;amp;px=400" role="button" title="florianwenzelEJNZZ_2-1652832981188.png" alt="florianwenzelEJNZZ_2-1652832981188.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to make this with file &lt;STRONG&gt;Test_43&lt;/STRONG&gt;, without using Coords X,Y to define Point2d.&lt;/P&gt;&lt;P&gt;Is it possible, to Create the Point2d using other methode?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for any Sugestion&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 18 May 2022 06:55:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11175936#M36998</guid>
      <dc:creator>florian_wenzel</dc:creator>
      <dc:date>2022-05-18T06:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point2d from SketchPoint in Circular Pattern in Sketch VB.NET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179098#M36999</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Sketch circular pattern has no API. You are not able to create new circular pattern. But&amp;nbsp; you can copy existing circular pattern from one sketch to another.&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub CopyCircularPatternTest()
    Dim sk1 As PlanarSketch
    Dim sk As PlanarSketch
    
    Set sk1 = ActivePart.ComponentDefinition.Sketches(1)
    Set sk2 = ActivePart.ComponentDefinition.Sketches(2)
    
    Call sk1.CopyContentsTo(sk2)

End Sub&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the case when you don't need to create circular pattern and just need sketch lines in the right position, you can use something like this&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;Sub CopyCircularPatternTest2()
    
    'Planar sketch must be active
    Dim oSketch As PlanarSketch
    Set oSketch = ThisApplication.ActiveEditObject
    
    'Sketch mus contains at least one SketchArc
    Dim arc As SketchArc
    Set arc = oSketch.SketchArcs(1)
    
    'Define lines count (pattern elements count)
    Dim linesCount As Integer
    linesCount = 5
    
    Dim centerPoint As SketchPoint
    Set centerPoint = arc.CenterSketchPoint
    
    Dim arcEvaluator As Curve2dEvaluator
    Set arcEvaluator = arc.Geometry.Evaluator
    
    Dim minParam As Double
    Dim maxParam As Double
    Call arcEvaluator.GetParamExtents(minParam, maxParam)
    
    Dim paramDiff As Double
    paramDiff = (maxParam - minParam) / (linesCount - 1)

    Dim pointParams() As Double
    ReDim pointParams(linesCount - 1)
    
    Dim i As Integer
    For i = 0 To linesCount - 1
        pointParams(i) = minParam + i * paramDiff
    Next
    
    Dim pointCoords() As Double
    Call arcEvaluator.GetPointAtParam(pointParams, pointCoords)
    
    Dim j As Integer
    For j = 0 To linesCount - 1
        Dim xIndex As Double
        Dim yIndex As Double
        xIndex = j * 2
        yIndex = j * 2 + 1
        
        Dim x As Double
        Dim y As Double
        x = pointCoords(xIndex)
        y = pointCoords(yIndex)
        
        Dim endPoint As Point2d
        Set endPoint = ThisApplication.TransientGeometry.CreatePoint2d(x, y)
        
        Dim newLine As SketchLine
        Set newLine = oSketch.SketchLines.AddByTwoPoints(centerPoint, endPoint)
        
        'Fixed position
        'Call oSketch.GeometricConstraints.AddGround(newLine.EndSketchPoint)
        
        'Coincindent constraint to sketch arc
        Call oSketch.GeometricConstraints.AddCoincident(arc, newLine.EndSketchPoint)
        
    Next
    
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 19 May 2022 07:14:10 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179098#M36999</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2022-05-19T07:14:10Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point2d from SketchPoint in Circular Pattern in Sketch VB.NET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179137#M37000</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;thanks a lot.&lt;/P&gt;&lt;P&gt;So, if you want to Create Point2d, is the only way with Coords XY ?&lt;/P&gt;&lt;P&gt;I asking, because i saw in a Sample :&lt;STRONG&gt;&lt;EM&gt;Creation a balloon API Sample&lt;/EM&gt; (&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=GUID-83BFFEE3-BB4C-421A-BE9F-A9AF5D6D43CB" target="_blank"&gt;Inventor 2022 Help | Creation a balloon | Autodesk&lt;/A&gt;) , that they create a Point2d from a&amp;nbsp;&lt;/STRONG&gt;&lt;U&gt;DrawingCurveSegment.&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Is possible to create a Point2d&amp;nbsp; from LineSegment2d ?&lt;/STRONG&gt;&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 07:44:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179137#M37000</guid>
      <dc:creator>florian_wenzel</dc:creator>
      <dc:date>2022-05-19T07:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point2d from SketchPoint in Circular Pattern in Sketch VB.NET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179524#M37001</link>
      <description>&lt;P&gt;If you want to create new Point2D, you need to use this method:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="general"&gt;ThisApplication.TransientGeometry.CreatePoint2d(x, y)&lt;/LI-CODE&gt;&lt;P&gt;But sometimes you can obtain the point2D object as result of method (Point2D.Copy()) or as a property value.&lt;/P&gt;&lt;P&gt;For more info see &lt;A href="https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-92C5A5D1-E75B-4F2A-8644-41ED7F032D84" target="_blank" rel="noopener"&gt;API reference&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 11:03:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179524#M37001</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2022-05-19T11:03:29Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point2d from SketchPoint in Circular Pattern in Sketch VB.NET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179611#M37002</link>
      <description>&lt;P&gt;ok,&lt;/P&gt;&lt;P&gt;and what mean this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=GUID-7C135F41-A1E3-44D8-A8FD-D24D68A67087" target="_blank" rel="noopener"&gt;Inventor 2020 Help | LineSegment2d.MidPoint Property | Autodesk&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Description&lt;/P&gt;&lt;P class=""&gt;Gets the mid point of the line segment.&lt;/P&gt;&lt;P&gt;Syntax&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LineSegment2d.&lt;/SPAN&gt;&lt;STRONG&gt;MidPoint&lt;/STRONG&gt;&lt;SPAN&gt;() As&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=Point2d" target="_blank" rel="noopener"&gt;Point2d&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Property Value&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This is a read only property whose value is a&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://help.autodesk.com/view/INVNTOR/2020/ENU/?guid=Point2d" target="_blank" rel="noopener"&gt;Point2d&lt;/A&gt;&lt;SPAN&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can i create Point2d from LineSegment2d?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, is possible to Convert SketchLine in a lineSegment2d?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;When, then how.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 11:43:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179611#M37002</guid>
      <dc:creator>florian_wenzel</dc:creator>
      <dc:date>2022-05-19T11:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Create Point2d from SketchPoint in Circular Pattern in Sketch VB.NET</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179668#M37003</link>
      <description>&lt;P&gt;ok,&lt;/P&gt;&lt;P&gt;i got it&lt;/P&gt;&lt;LI-CODE lang="general"&gt;       Dim oSketchLine01 As SketchLine
        oSketchLine01 = oWorkSketch01.SketchLines.AddByTwoPoints(oWorkPoint01, oWorkPoint02)

        Dim oSketchArc01 As SketchArc
        oSketchArc01 = oWorkSketch01.SketchArcs.AddByThreePoints(oWorkPoint03, oWorkPoint05, oWorkPoint04)




        Dim oLineSegment01 As LineSegment2d
        oLineSegment01 = oSketchLine01.Geometry

        Dim oPoint As Point2d
        oPoint = oLineSegment01.MidPoint

        Dim oSketchLine02 As SketchLine
        oSketchLine02 = oWorkSketch01.SketchLines.AddByTwoPoints(oPoint, oWorkPoint03)&lt;/LI-CODE&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 May 2022 12:08:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/create-point2d-from-sketchpoint-in-circular-pattern-in-sketch-vb/m-p/11179668#M37003</guid>
      <dc:creator>florian_wenzel</dc:creator>
      <dc:date>2022-05-19T12:08:21Z</dc:date>
    </item>
  </channel>
</rss>

