<?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: dimension sheet metal drawing in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835701#M156269</link>
    <description>Thanks, Sanjay, but I don't see the DrawingCurve object in the Inv10 API.  Is this an Inv11 object?  &lt;BR /&gt;
&lt;BR /&gt;
Bruce</description>
    <pubDate>Thu, 07 Dec 2006 15:25:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2006-12-07T15:25:46Z</dc:date>
    <item>
      <title>dimension sheet metal drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835699#M156267</link>
      <description>I want to programatically add general dimensions to several Inventor 10 drawings created from sheet metal flat patterns.  The features that require dimensions are lines on the Visible Edges and Sheet Metal Bend Centerlines layers.  How do I iterate through the collection of features on these layers to determine line start and end points that I can use to create the dimensions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Bruce</description>
      <pubDate>Wed, 06 Dec 2006 20:53:25 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835699#M156267</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-12-06T20:53:25Z</dc:date>
    </item>
    <item>
      <title>Re: dimension sheet metal drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835700#M156268</link>
      <description>Bruce,&lt;BR /&gt;
&lt;BR /&gt;
You will need to iterate over all the draawing curves that belong to a view &lt;BR /&gt;
and select the ones that are on layer(s) of interest. Your code may look &lt;BR /&gt;
something like this:&lt;BR /&gt;
&lt;BR /&gt;
Sub DrawingCurves()&lt;BR /&gt;
&lt;BR /&gt;
    Dim oDoc As DrawingDocument&lt;BR /&gt;
    Set oDoc = ThisApplication.ActiveDocument&lt;BR /&gt;
&lt;BR /&gt;
    Dim oDrawingView As DrawingView&lt;BR /&gt;
    Set oDrawingView = oDoc.ActiveSheet.DrawingViews.Item(1)&lt;BR /&gt;
&lt;BR /&gt;
    Dim oDrawingCurve As DrawingCurve&lt;BR /&gt;
&lt;BR /&gt;
    For Each oDrawingCurve In oDrawingView.DrawingCurves&lt;BR /&gt;
&lt;BR /&gt;
        Dim oDrawingCurveSegment As DrawingCurveSegment&lt;BR /&gt;
        For Each oDrawingCurveSegment In oDrawingCurve.Segments&lt;BR /&gt;
            If oDrawingCurveSegment.Layer.Name = "Visible (ANSI)" Then&lt;BR /&gt;
                ' Do something...&lt;BR /&gt;
            End If&lt;BR /&gt;
        Next&lt;BR /&gt;
    Next&lt;BR /&gt;
&lt;BR /&gt;
End Sub&lt;BR /&gt;
&lt;BR /&gt;
Sanjay-&lt;BR /&gt;
&lt;BR /&gt;
&lt;BRUCESCOTT&gt; wrote in message news:5417070@discussion.autodesk.com...&lt;BR /&gt;
I want to programatically add general dimensions to several Inventor 10 &lt;BR /&gt;
drawings created from sheet metal flat patterns.  The features that require &lt;BR /&gt;
dimensions are lines on the Visible Edges and Sheet Metal Bend Centerlines &lt;BR /&gt;
layers.  How do I iterate through the collection of features on these layers &lt;BR /&gt;
to determine line start and end points that I can use to create the &lt;BR /&gt;
dimensions?&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
Bruce&lt;/BRUCESCOTT&gt;</description>
      <pubDate>Wed, 06 Dec 2006 23:06:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835700#M156268</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-12-06T23:06:29Z</dc:date>
    </item>
    <item>
      <title>Re: dimension sheet metal drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835701#M156269</link>
      <description>Thanks, Sanjay, but I don't see the DrawingCurve object in the Inv10 API.  Is this an Inv11 object?  &lt;BR /&gt;
&lt;BR /&gt;
Bruce</description>
      <pubDate>Thu, 07 Dec 2006 15:25:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835701#M156269</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-12-07T15:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: dimension sheet metal drawing</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835702#M156270</link>
      <description>Access to drawing curves was added in Inventor 11.  Placement of drawing &lt;BR /&gt;
dimensions was also added in Inventor 11.  The only workaround that I'm &lt;BR /&gt;
aware of is to create a sketch in the drawing, place sketch points at the &lt;BR /&gt;
locations that correspond to the positions on the model you want to &lt;BR /&gt;
dimension to, place dimension constraints to those points, and then finally &lt;BR /&gt;
retrieve those dimension constraints into the drawing as a drawing &lt;BR /&gt;
dimension.  This approach has several problems, one of the biggest being &lt;BR /&gt;
that the dimensions are not associated to the model, but it's the only &lt;BR /&gt;
workaround that I'm aware of to get place dimensions using the API in &lt;BR /&gt;
Inventor 10.&lt;BR /&gt;
-- &lt;BR /&gt;
Brian Ekins&lt;BR /&gt;
Autodesk Inventor API</description>
      <pubDate>Thu, 07 Dec 2006 18:42:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/dimension-sheet-metal-drawing/m-p/1835702#M156270</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2006-12-07T18:42:01Z</dc:date>
    </item>
  </channel>
</rss>

