<?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: Add weld symbols on a drawingview through VBA in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3124058#M139469</link>
    <description>&lt;P&gt;Thank you for your quick replying .En，I've noticed that there're several&amp;nbsp; API methods about weld symbols in the inventor VBA 'HELP 'file,So I think &amp;nbsp;there should be some way to add weld symbols through VBA,or some way to make weld symbols display on the drawing .Would you please tell me how to&amp;nbsp;create weld symbols&amp;nbsp; automatically on the drawing,because my teacher have asked&amp;nbsp;me to&amp;nbsp;deal with&amp;nbsp;something like this&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards !&lt;/P&gt;</description>
    <pubDate>Mon, 15 Aug 2011 12:14:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-15T12:14:27Z</dc:date>
    <item>
      <title>Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3123948#M139467</link>
      <description>&lt;P&gt;Hello,everyone ! Is there any way to create welds on a drawing ? I'd appreciate it if anyone can give me a hand .&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 09:18:43 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3123948#M139467</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-15T09:18:43Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3123994#M139468</link>
      <description>&lt;P&gt;Unfortunately this is still&amp;nbsp;not exposed.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 10:22:35 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3123994#M139468</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-08-15T10:22:35Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3124058#M139469</link>
      <description>&lt;P&gt;Thank you for your quick replying .En，I've noticed that there're several&amp;nbsp; API methods about weld symbols in the inventor VBA 'HELP 'file,So I think &amp;nbsp;there should be some way to add weld symbols through VBA,or some way to make weld symbols display on the drawing .Would you please tell me how to&amp;nbsp;create weld symbols&amp;nbsp; automatically on the drawing,because my teacher have asked&amp;nbsp;me to&amp;nbsp;deal with&amp;nbsp;something like this&amp;nbsp;?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best regards !&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 12:14:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3124058#M139469</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-15T12:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3128178#M139470</link>
      <description>&lt;P&gt;Well,it doesn't matter .Thank you all the same ! It seems that I have to reach the goal with "sketchsymbol" instead .&lt;/P&gt;</description>
      <pubDate>Thu, 18 Aug 2011 07:50:47 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3128178#M139470</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-18T07:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3138874#M139471</link>
      <description>&lt;P&gt;Hi， I have to come here to ask you for help.，because there is few people replying me if I post my problems on the discussion board . Er，my problem is ：How to change the arrow style of sketch symbol with leader .For example,how to change the dots into arrows ?Take&amp;nbsp; the following code to create a sketch symbol as example .Would you please tell how to change the arrow style ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best wishes to you !&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sub skech symbol( )&lt;/P&gt;&lt;P&gt;Dim oDoc As DrawingDocument&lt;BR /&gt;&amp;nbsp;Set oDoc = ThisApplication.ActiveDocuments&lt;/P&gt;&lt;P&gt;&amp;nbsp;Dim oSheet As Sheet&lt;BR /&gt;&amp;nbsp;Set oSheet = oDoc.ActiveSheet&lt;BR /&gt;&amp;nbsp;Dim oTG As TransientGeometry&lt;BR /&gt;&amp;nbsp;Set oTG = oapp.TransientGeometry&lt;BR /&gt;&amp;nbsp;Dim opoint(1 To 4) As Point2d&lt;BR /&gt;&amp;nbsp;Set opoint(1) = oTG.CreatePoint2d(15, 15)&lt;BR /&gt;&amp;nbsp;Set opoint(2) = oTG.CreatePoint2d(10, 10)&lt;BR /&gt;&amp;nbsp;Dim oLeaderPoints As ObjectCollection&lt;BR /&gt;&amp;nbsp;Set oLeaderPoints = oapp.TransientObjects.CreateObjectCollection&lt;BR /&gt;&amp;nbsp;Call oLeaderPoints.Add(opoint(1))&lt;BR /&gt;&amp;nbsp;Call oLeaderPoints.Add(opoint(2))&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Dim oSketch As DrawingSketch&lt;BR /&gt;&amp;nbsp;Dim oSketchedSymbolDef As SketchedSymbolDefinition&lt;BR /&gt;&amp;nbsp;Set oSketchedSymbolDef = oDoc.SketchedSymbolDefinitions.Add("Circular")&lt;BR /&gt;&amp;nbsp;Call oSketchedSymbolDef.Edit(oSketch)&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Dim oSketchLines(1 To 4) As SketchLine&lt;BR /&gt;&amp;nbsp;Set oSketchLines(1) = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(0, 5), oTG.CreatePoint2d(2.5, 5))&lt;BR /&gt;&amp;nbsp;Set oSketchLines(2) = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(0, 4.8), oTG.CreatePoint2d(2.5, 4.8))&lt;BR /&gt;&amp;nbsp;oSketchLines(2).LineType = kDashedLineType&lt;BR /&gt;&amp;nbsp;Set oSketchLines(3) = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(1, 5), oTG.CreatePoint2d(1, 5.6))&lt;BR /&gt;&amp;nbsp;Set oSketchLines(4) = oSketch.SketchLines.AddByTwoPoints(oTG.CreatePoint2d(1.5, 5), oTG.CreatePoint2d(1.5, 5.6))&lt;BR /&gt;&amp;nbsp;Call oSketch.GeometricConstraints.AddParallel(oSketchLines(1), oSketchLines(2))&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp; oSketchLines(1).StartSketchPoint.InsertionPoint = True&lt;BR /&gt;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Call oSketchedSymbolDef.ExitEdit(True)&lt;BR /&gt;&amp;nbsp;Dim oSketchedSymbol As SketchedSymbol&lt;BR /&gt;&amp;nbsp;Set oSketchedSymbol = oSheet.SketchedSymbols.AddWithLeader(oSketchedSymbolDef, oLeaderPoints)&lt;/P&gt;&lt;P&gt;End Sub&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 02:48:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3138874#M139471</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-29T02:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3139064#M139472</link>
      <description>&lt;P&gt;Firstly I would recommend that you create different post for different topic:).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To change the arrow style you can use the SketchedSymbol.Leader.ArrowheadType.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 09:34:04 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3139064#M139472</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-08-29T09:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3139138#M139473</link>
      <description>&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;Fogive my way to post different post for different topic .That's my way to look for you ,hehe .Well,it is effictive indeed . Anyway ,thank you greatly for your kindly replying .I have tried the method you give me ,but I'm warned that it is useless . I‘m a beginner of Inventor&amp;nbsp; and just use it as follows :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;Dim oSketchedSymbol As SketchedSymbol&lt;BR /&gt;&amp;nbsp;Set oSketchedSymbol = oSheet.SketchedSymbols.AddWithLeader(oSketchedSymbolDef, oLeaderPoints)&lt;BR /&gt;&amp;nbsp;oSketchedSymbol.Leader.ArrowheadType&lt;BR /&gt;&amp;nbsp;.......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Would you please give me some advice ? Thank you ahead !&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://forums.autodesk.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2011 11:55:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3139138#M139473</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-29T11:55:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3140298#M139474</link>
      <description>&lt;P&gt;You need to set it with the proper value you require, like below will set it to a small dot&amp;nbsp;arrow type:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oSketchedSymbol.Leader.ArrowheadType = kSmallDotArrowheadType&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2011 01:56:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3140298#M139474</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-08-30T01:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3140312#M139475</link>
      <description>&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt; It works smoothly .I can't thank you enough ,Zhang !&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2011 02:11:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3140312#M139475</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-30T02:11:39Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3154298#M139476</link>
      <description>&lt;P&gt;Hi,my friend,how are you going these days ? Those days I have posted my problem but there is no one to give me a reply .I have to come here to ask you for help now.&lt;/P&gt;&lt;P&gt;&amp;nbsp;My problem is &lt;STRONG&gt;how to create a sectionview with Three or more lines through VBA?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;Looking forward to your eraly replying !&lt;/P&gt;&lt;P&gt;Best regards!&lt;/P&gt;</description>
      <pubDate>Mon, 12 Sep 2011 14:14:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3154298#M139476</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-12T14:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3155112#M139477</link>
      <description>&lt;P&gt;I have already known creating sectionview with only one sketchline .The code is as follows:&lt;/P&gt;&lt;P&gt;Dim oPoint2 As Point2d&lt;BR /&gt;Set oPoint2 = oapp.TransientGeometry.CreatePoint2d(2, -7)&lt;BR /&gt;Dim oPoint3 As Point2d&lt;BR /&gt;Set oPoint3 = oapp.TransientGeometry.CreatePoint2d(2, 7)&lt;BR /&gt;Dim oPoint4 As Point2d&lt;BR /&gt;Set oPoint4 = oapp.TransientGeometry.CreatePoint2d(17.5, 18)&lt;/P&gt;&lt;P&gt;Dim oDrawingSketch As DrawingSketch&lt;BR /&gt;Set oDrawingSketch = oView1.Sketches.Add&lt;/P&gt;&lt;P&gt;oDrawingSketch.Edit&lt;BR /&gt;Dim oSketchLine As SketchLine&lt;BR /&gt;Set oSketchLine = oDrawingSketch.SketchLines.AddByTwoPoints(oPoint2, oPoint3)&lt;BR /&gt;oDrawingSketch.ExitEdit&lt;/P&gt;&lt;P&gt;Dim oView2 As SectionDrawingView&lt;BR /&gt;Set oView2 = oSheet.DrawingViews.AddSectionView(oView1, oDrawingSketch, oPoint4, kHiddenLineRemovedDrawingViewStyle, , False, " ")&lt;/P&gt;&lt;P&gt;oDrawingSketch.Visible = True&lt;/P&gt;&lt;P&gt;But what I want to do is to create a sectionview with more sketchlines .&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2011 01:18:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3155112#M139477</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-13T01:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3155190#M139478</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would recommand to create a new post for different topic so you can draw the attention from more people here as this post has been marked as soluted for another topic:).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Though for you current question, you want to create more sketch line segments as section line to create a section view, that you need to create the line segments which are end-to-end connected. Below is sample to create two line segments&amp;nbsp;which are connected and I highlight the code for which you need to pass in to create the new line segment:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oDrawingSketch.Edit&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dim oSketchLine As SketchLine&lt;/P&gt;
&lt;P&gt;Set oSketchLine = oDrawingSketch.SketchLines.AddByTwoPoints(oPoint2, oPoint3)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;' Create a new line segment, which connects to the above one&lt;/P&gt;
&lt;P&gt;Dim oNewLineSeg As SketchLine&lt;/P&gt;
&lt;P&gt;Set oNewLineSeg = oDrawingSketch.SketchLines.AddByTwoPoints(oSketchLine.&lt;STRONG&gt;&lt;FONT color="#800000"&gt;EndSketchPoint&lt;/FONT&gt;&lt;/STRONG&gt;, oPoint4)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;oDrawingSketch.ExitEdit&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>Tue, 13 Sep 2011 03:21:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3155190#M139478</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-09-13T03:21:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add weld symbols on a drawingview through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3155328#M139479</link>
      <description>&lt;P&gt;&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://forums.autodesk.com/i/smilies/16x16_smiley-very-happy.png" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;I know my problem now:&lt;/P&gt;&lt;P&gt;Set oSketchLines(1) = oDrawingSketch.SketchLines.AddByTwoPoints(oPoint2, oPoint3)&lt;BR /&gt;Set oSketchLines(2) = oDrawingSketch.SketchLines.AddByTwoPoints(oPoint3, oPoint4)&lt;BR /&gt;Set oSketchLines(3) = oDrawingSketch.SketchLines.AddByTwoPoints(oPoint4, oPoint5)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK,I'll follow your advice ! Now my remaiming problem is &lt;STRONG&gt;how to create a local sectionview as attached&lt;/STRONG&gt; .I'll post&amp;nbsp;it as a new &amp;nbsp;&amp;nbsp;topic on the board . Would you please give me a hand if no one reacts ?&lt;/P&gt;</description>
      <pubDate>Tue, 13 Sep 2011 07:40:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-weld-symbols-on-a-drawingview-through-vba/m-p/3155328#M139479</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-09-13T07:40:06Z</dc:date>
    </item>
  </channel>
</rss>

