<?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 Centerlines through VBA in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3117890#M139922</link>
    <description>&lt;P&gt;Thank you very much for your replying.You have reminded me of solving the problem in answer way as following ：&lt;/P&gt;&lt;P&gt;'添加中心线create centerlines with centermarks .&lt;BR /&gt;Dim oCenterlines As Centerlines&lt;BR /&gt;Set oCenterlines = oSheet.Centerlines&lt;BR /&gt;Dim oCentermark As Centermark&lt;BR /&gt;Dim oMarks As ObjectCollection&lt;BR /&gt;Set oMarks = oapp.TransientObjects.CreateObjectCollection&lt;/P&gt;&lt;P&gt;Set oCentermark = oSheet.Centermarks(8)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(9)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Call oCenterlines.Add(oMarks)&lt;BR /&gt;oMarks.Clear&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(6)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(7)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Call oCenterlines.Add(oMarks)&lt;BR /&gt;oMarks.Clear&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(1)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(3)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Call oCenterlines.Add(oMarks)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem is that I don't know how to make centerlines in your way though I understand what you mean .&lt;/P&gt;&lt;P&gt;And the way above to create centerlines is not so convinient because I just don‘t know how to&amp;nbsp;pick out the centermarks&amp;nbsp;，so I have to try again and again&amp;nbsp;.&lt;/P&gt;&lt;P&gt;How can I create these centerlines without these&amp;nbsp;centermarks ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides,please forgive me&amp;nbsp;causing &amp;nbsp;you&amp;nbsp; so much trouble .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 09 Aug 2011 12:52:27 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2011-08-09T12:52:27Z</dc:date>
    <item>
      <title>Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3089780#M139916</link>
      <description>&lt;P&gt;Can you please let me know the API to be used to get the Centerlines on a drawing view using work points.&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Jul 2011 12:57:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3089780#M139916</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-07-13T12:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3090992#M139917</link>
      <description>&lt;P&gt;Use the CenterMarks.AddByWorkFeature to create the center marks from the work points, then call the Centerlines.Add to create a center line on the center marks.&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2011 03:36:41 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3090992#M139917</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-07-14T03:36:41Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3115868#M139918</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;BR /&gt;&lt;BR /&gt;Excuse me ,Mr(s) Zhang .I've created centermarks for a drawingview,but I don't know how to choose both the centermarks of each cylinder to create a centerline，because there are several&amp;nbsp; cylinders on the same drawingview.Can you tell&amp;nbsp;what &amp;nbsp;should I do next？Woule you please give me a sample ?Thank you very much !&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Sat, 06 Aug 2011 09:24:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3115868#M139918</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-06T09:24:01Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3115874#M139919</link>
      <description>&lt;P&gt;Here is part of my code:&lt;/P&gt;&lt;P&gt;Dim oCentermarks As Centermarks&lt;BR /&gt;Set oCentermarks = oSheet.Centermarks&lt;BR /&gt;Dim oDrawingCurve As DrawingCurve&lt;BR /&gt;For Each oDrawingCurve In oView.DrawingCurves&lt;BR /&gt;&amp;nbsp;If oDrawingCurve.CurveType = kCircleCurve Or _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oDrawingCurve.CurveType = kCircularArcCurve Or _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oDrawingCurve.CurveType = kEllipseFullCurve Or _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oDrawingCurve.CurveType = kEllipticalArcCurve Or _&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; oDrawingCurve.CurveType = kBSplineCurve Then&lt;BR /&gt;&amp;nbsp;Dim oGeometryIntent As GeometryIntent&lt;BR /&gt;&amp;nbsp;Set oGeometryIntent = oSheet.CreateGeometryIntent(oDrawingCurve)&lt;BR /&gt;&amp;nbsp;Call oCentermarks.Add(oGeometryIntent, True, False)&lt;BR /&gt;&amp;nbsp;End If&lt;BR /&gt;Next&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;Dim oCenterlines As Centerlines&lt;BR /&gt;&amp;nbsp;Set oCenterlines = oSheet.Centerlines&lt;BR /&gt;&amp;nbsp;Dim oMarks As ObjectCollection&lt;BR /&gt;&amp;nbsp;Set oMarks = oapp.TransientObjects.CreateObjectCollection&lt;BR /&gt;&amp;nbsp;Dim oCentermark As Centermark&lt;BR /&gt;&amp;nbsp;For Each oCentermark In oSheet.Centermarks&lt;/P&gt;&lt;P&gt;oMarks.Add oCentermark&lt;/P&gt;&lt;P&gt;Next&lt;BR /&gt;&amp;nbsp;Set oGeometryIntent = oSheet.CreateGeometryIntent(oMarks)&lt;BR /&gt;&amp;nbsp;Call oCenterlines.Add(oMarks)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 06 Aug 2011 09:32:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3115874#M139919</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-06T09:32:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3115878#M139920</link>
      <description />
      <pubDate>Sat, 06 Aug 2011 09:50:21 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3115878#M139920</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-06T09:50:21Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3116322#M139921</link>
      <description>&lt;P&gt;This is up to you to determine which center marks you want to use to create a centerline. For example, if you want to create a centerline bases on the left(or right)&amp;nbsp;two center marks, which have their position the same X-coordinate value, then you can compare their coordinates(CenterMark.Position). Or if you have other criteria for determining the center marks, just apply it to them.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2011 02:45:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3116322#M139921</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-08-08T02:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3117890#M139922</link>
      <description>&lt;P&gt;Thank you very much for your replying.You have reminded me of solving the problem in answer way as following ：&lt;/P&gt;&lt;P&gt;'添加中心线create centerlines with centermarks .&lt;BR /&gt;Dim oCenterlines As Centerlines&lt;BR /&gt;Set oCenterlines = oSheet.Centerlines&lt;BR /&gt;Dim oCentermark As Centermark&lt;BR /&gt;Dim oMarks As ObjectCollection&lt;BR /&gt;Set oMarks = oapp.TransientObjects.CreateObjectCollection&lt;/P&gt;&lt;P&gt;Set oCentermark = oSheet.Centermarks(8)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(9)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Call oCenterlines.Add(oMarks)&lt;BR /&gt;oMarks.Clear&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(6)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(7)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Call oCenterlines.Add(oMarks)&lt;BR /&gt;oMarks.Clear&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(1)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Set oCentermark = oSheet.Centermarks(3)&lt;BR /&gt;oMarks.Add oCentermark&lt;BR /&gt;Call oCenterlines.Add(oMarks)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But the problem is that I don't know how to make centerlines in your way though I understand what you mean .&lt;/P&gt;&lt;P&gt;And the way above to create centerlines is not so convinient because I just don‘t know how to&amp;nbsp;pick out the centermarks&amp;nbsp;，so I have to try again and again&amp;nbsp;.&lt;/P&gt;&lt;P&gt;How can I create these centerlines without these&amp;nbsp;centermarks ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Besides,please forgive me&amp;nbsp;causing &amp;nbsp;you&amp;nbsp; so much trouble .&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 09 Aug 2011 12:52:27 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3117890#M139922</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-09T12:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3119168#M139923</link>
      <description>&lt;P&gt;The Centerlines.Add would accept the CenterEntities collection with GeometryIntent objects included. So you firstly should create the GeometryIntent object which reference the center marks you want to create centerline on. Below is a snippet of code modified&amp;nbsp;with yours:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Set oCentermark = oSheet.Centermarks(8)
Dim oCenterlinePt As GeometryIntent
Set oCenterlinePt = oSheet.CreateGeometryIntent(oCentermark)

oMarks.Add oCenterlinePt
Set oCentermark = oSheet.Centermarks(9)
Set oCenterlinePt = oSheet.CreateGeometryIntent(oCentermark)

oMarks.Add oCenterlinePt
Call oCenterlines.Add(oMarks)
oMarks.Clear&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;Please try if&amp;nbsp;it works for you.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Aug 2011 02:33:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3119168#M139923</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-08-10T02:33:44Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3120666#M139924</link>
      <description>&lt;P&gt;Hello,Mr(s) Zhang.I appreciate it that you have given me so much advice .With your help,I have solved many difficult problems.But nowI hope you can help me with the following probiem(please forgive me for my poor English):How can I&amp;nbsp;create chamfernotes using"Chamfernotes.Add"?Would you please give me an "VBA code"example? Thanks to you again and again.&lt;/P&gt;</description>
      <pubDate>Thu, 11 Aug 2011 02:23:02 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3120666#M139924</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-11T02:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3122190#M139925</link>
      <description>&lt;P&gt;Would you please tell me how to add centerlines（&lt;SPAN&gt;symmetry axis）&lt;/SPAN&gt;for the following views ?&lt;/P&gt;</description>
      <pubDate>Fri, 12 Aug 2011 03:19:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3122190#M139925</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-12T03:19:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123404#M139926</link>
      <description>&lt;P&gt;Aha,how are you going these days ? I'm sorry to cause&amp;nbsp; you trouble again . I have met with another kind of centerlines problems,that is symmetry axis .Woule please tell me the API to create symmetry axis ？I want to create the two &amp;nbsp;red horizonal centerlines in the figure attached .&lt;/P&gt;&lt;P&gt;Best wishes .&lt;/P&gt;</description>
      <pubDate>Sat, 13 Aug 2011 07:43:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123404#M139926</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-13T07:43:49Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123558#M139927</link>
      <description>&lt;P&gt;Aha,I have found a way to get centerlines:&lt;/P&gt;&lt;P&gt;Dim oCenterlines As Centerlines&lt;BR /&gt;Set oCenterlines = oSheet.Centerlines&lt;BR /&gt;Dim oDrawingCurve1 As DrawingCurve&lt;BR /&gt;Set oDrawingCurve1 = oSheet.DrawingViews(2).DrawingCurves.Item(2)&lt;BR /&gt;Dim oDrawingCurve2 As DrawingCurve&lt;BR /&gt;Set oDrawingCurve2 = oSheet.DrawingViews(2).DrawingCurves.Item(15)&lt;BR /&gt;Dim oGeometryIntent1 As GeometryIntent&lt;BR /&gt;Set oGeometryIntent1 = oSheet.CreateGeometryIntent(oDrawingCurve1)&lt;BR /&gt;Dim oGeometryIntent2 As GeometryIntent&lt;BR /&gt;Set oGeometryIntent2 = oSheet.CreateGeometryIntent(oDrawingCurve2)&lt;BR /&gt;Call oCenterlines.AddBisector(oGeometryIntent1, oGeometryIntent2)&lt;/P&gt;&lt;P&gt;Dim oDrawingCurve3 As DrawingCurve&lt;BR /&gt;Set oDrawingCurve3 = oSheet.DrawingViews(2).DrawingCurves.Item(1)&lt;BR /&gt;Dim oDrawingCurve4 As DrawingCurve&lt;BR /&gt;Set oDrawingCurve4 = oSheet.DrawingViews(2).DrawingCurves.Item(14)&lt;BR /&gt;Dim oGeometryIntent3 As GeometryIntent&lt;BR /&gt;Set oGeometryIntent3 = oSheet.CreateGeometryIntent(oDrawingCurve3)&lt;BR /&gt;Dim oGeometryIntent4 As GeometryIntent&lt;BR /&gt;Set oGeometryIntent4 = oSheet.CreateGeometryIntent(oDrawingCurve4)&lt;BR /&gt;Call oCenterlines.AddBisector(oGeometryIntent3, oGeometryIntent4)&lt;/P&gt;&lt;P&gt;The last problem is that there are so many drawingcurves on the views that I don't know how to choose a special curve from them.For example,I don't know which curve is the 14th curve. Is there any good&amp;nbsp;way to choose the curves needed ？&lt;/P&gt;&lt;P&gt;Best regards ！&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2011 00:46:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123558#M139927</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-14T00:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123578#M139928</link>
      <description>&lt;P&gt;Hope you have got most questions solved, I was not available to look into your questions last two days. For this question that you want to choose a specific drawing curve, my suggestion is that you can use either of below ways to find it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. If you want to annotate a drawing curve which from a specific model edge, that you could find the cooresponding drawing curve with the DrawingView.DrawingCurves(ModelEdge), with passing in the ModelEdge object that it would return the cooresponding drawing curve that you require.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If you just select(highlight) a drawing curve on a drawing view, and want to check which index it is in the DrawingCurves collection, below is a sample code for getting the index for the selected drawing curve:&lt;/P&gt;
&lt;PRE&gt;Dim oDoc As DrawingDocument
    Set oDoc = ThisApplication.ActiveDocument
    
    ' say you have a drawing curve segment selected on the sheet
    Dim oSelectedCurve As DrawingCurve
    Set oSelectedCurve = oDoc.SelectSet.Item(1).Parent
    
    Dim oDrawingView As DrawingView
    Set oDrawingView = oSelectedCurve.Parent
    
    Dim oCurve As DrawingCurve
    Dim iIndex As Integer
    iIndex = 1
    
    For Each oCurve In oDrawingView.DrawingCurves
        If oCurve Is oSelectedCurve Then
            Debug.Print "The selected drawing curve is the " &amp;amp; iIndex &amp;amp; "th curve on the drawing view."
        
        End If
        iIndex = iIndex + 1
    Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;3. This is similar with the first way, but you could use the drawing curve type and/or coordinates to determine which curve is you need. Say you want to find a specific circular drawing curve with a specified diameter, that you could iterate all the drawing curves and check whether the DrawingCurve.ProjectedCurveType = kCircularArcCurve2d, and then check&amp;nbsp;the arc's radius and its center position with your requirement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There maybe other ways that you can find&amp;nbsp;if you have specific rules/requirement for it:). Hope this helps.&lt;/P&gt;</description>
      <pubDate>Sun, 14 Aug 2011 05:00:07 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123578#M139928</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-08-14T05:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123958#M139929</link>
      <description>&lt;P&gt;Thanks a lot ,my friend ,for giving me so much help without any impatience .You're my good online teacher .Aha,I hope you can help me deal with the following problem&amp;nbsp; nothing to do wih centerlines ,which I have submited on the Autodesk Inventor Customization board :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to add weld symbols on a drawing ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm sorry to give you trouble again .I can't thank you enough ,no matter whether it would be solved .&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 09:36:06 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3123958#M139929</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-15T09:36:06Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3124080#M139930</link>
      <description>&lt;P&gt;Sorry，what I want to say is ：Is there any way to add weld symbols on the drawing through VBA .If not，Is there any way to create weld symbols automatically on the drawing .&lt;/P&gt;&lt;P&gt;&amp;nbsp; Best wishes to you ！&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2011 12:28:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3124080#M139930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-15T12:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3125186#M139931</link>
      <description>&lt;P&gt;Hi,My teacher Zhang .I have tried the second way to choose the special drawingcurves on thedrawingview .&lt;/P&gt;&lt;P&gt;Unfortunately ,I failed ,trying the code without any result .Maybe there is something lost.I have add several lines to the code ,but there is no change ,still without rusults.En,would you please help me out ?Haha,I'm sorry to bother you every day.&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;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oDoc As DrawingDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oDoc = oapp.ActiveDocument&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oActiveSheet As Sheet&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oActiveSheet = oDoc.ActiveSheet&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oDrawingCurveSegment As DrawingCurveSegment&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oDrawingCurveSegment = oDoc.SelectSet.Item(1)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ' say you have a drawing curve segment selected on the sheet&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oSelectedCurve As DrawingCurve&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oSelectedCurve = oDrawingCurveSegment.Parent&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oDrawingView As DrawingView&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Set oDrawingView = oSelectedCurve.Parent&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim oCurve As DrawingCurve&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Dim iIndex As Integer&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; iIndex = 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For Each oCurve In oDrawingView.DrawingCurves&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If oCurve Is oSelectedCurve Then&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debug.Print "The selected drawing curve is the " &amp;amp; iIndex &amp;amp; "th curve on the drawing view."&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; End If&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; iIndex = iIndex + 1&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Next&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2011 08:28:19 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3125186#M139931</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-16T08:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3126472#M139932</link>
      <description>&lt;P&gt;Hi,my teacher Zhang ,I really can't thank you enough . The VBA code you gave me is completely right .It has saved much time for my work .It's exiting ！The reason that I got no results lies in ”&amp;nbsp;Debug.Print “.Haha，forgiving&amp;nbsp; my poor technic！I have&amp;nbsp; changed&amp;nbsp; them to be&amp;nbsp;“ MsgBox ".，that is&lt;/P&gt;&lt;P&gt;‘Debug.Print "The selected drawing curve is the " &amp;amp; iIndex &amp;amp; "th curve on the drawing view.’&lt;/P&gt;&lt;P&gt;To&lt;/P&gt;&lt;P&gt;‘MsgBox "The selected drawing curve is the " &amp;amp; iIndex &amp;amp; "th curve on the drawing view.’.&lt;/P&gt;&lt;P&gt;En，in my eyes you‘re number one ！Well，the remaiming problem is about weld symbols，as I have explained above .Would you please give me a hand when you are free ？&lt;/P&gt;&lt;P&gt;&amp;nbsp;Best wishes ！&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Yours&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;sincerely &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yimin Zhang&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 02:01:50 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3126472#M139932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-08-17T02:01:50Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3126674#M139933</link>
      <description>&lt;P&gt;Glad to hear that you have pointed it out. As for create drawing weld symbol question I responsed to another post you created, please check it there.:)&lt;/P&gt;</description>
      <pubDate>Wed, 17 Aug 2011 08:41:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/3126674#M139933</guid>
      <dc:creator>YuhanZhang</dc:creator>
      <dc:date>2011-08-17T08:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: Add Centerlines through VBA</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/7638162#M139934</link>
      <description>&lt;P&gt;dears can you give me updated code for this center line adding code ..coz in version of 2017 its cant longer supported&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2017 12:54:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/add-centerlines-through-vba/m-p/7638162#M139934</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-20T12:54:46Z</dc:date>
    </item>
  </channel>
</rss>

