<?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: Insert Flat Pattern From Base Drawing View in Inventor Programming Forum</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12970024#M7018</link>
    <description>&lt;P&gt;just a quick thought, try creating a view with out the flatpattern view option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lets see if we can create a drawing view. some of the other reasons are the drawing is not resoloved, that will keep you from running this kind of code, and&amp;nbsp; sometimes i will go into a new sub routine and perfect getting the base view added, then add in all the other fluff to make it what i want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2024 14:34:54 GMT</pubDate>
    <dc:creator>AndrewHumiston</dc:creator>
    <dc:date>2024-08-20T14:34:54Z</dc:date>
    <item>
      <title>Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969577#M7009</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its that time again when I get to a point with my macro (VBA) and cannot seem to figure out what I am doing wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The following routine is run from an IDW with a base drawing view.&lt;/P&gt;&lt;P&gt;I am trying to automate the placement of the associated flat pattern&lt;/P&gt;&lt;P&gt;1) Open open the part&lt;/P&gt;&lt;P&gt;2) Delete if present and then generate the flat pattern&lt;/P&gt;&lt;P&gt;3) Place the flat pattern at the correct scale on the sheet at an arbitraty position&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code is as follows but it fails on the final call to place the view with 'Object doesn't support property or method'&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;Public Sub test() ' trying to place flat pattern from base drawing view
Dim oPartDoc As PartDocument

Dim oDwgDoc As DrawingDocument
Set oDwgDoc = ThisApplication.ActiveDocument

Dim oSheet As Sheet
Set oSheet = oDwgDoc.ActiveSheet 'On Error Resume Next 'GoTo err:

Dim oDrawingView As DrawingView
Set oDrawingView = oSheet.DrawingViews(1)

Dim oViewScale As Double
Set oViewScale = oDrawingView.Scale
Debug.Print oViewScale
    
Set oPartDoc = oSheet.DrawingViews(1).ReferencedDocumentDescriptor.ReferencedDocument
Debug.Print oPartDoc.FullFilename
ThisApplication.Documents.Open (oPartDoc.FullFilename)
   
Dim oCompDef As SheetMetalComponentDefinition
Set oCompDef = oPartDoc.ComponentDefinition

oPartDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}"

If oCompDef.HasFlatPattern Then
    oCompDef.FlatPattern.Delete
Else
    oCompDef.Unfold
oCompDef.FlatPattern.ExitEdit
End If
'oPartDoc.Close

Dim oOptions As NameValueMap
Set oOptions = ThisApplication.TransientObjects.CreateNameValueMap
Call oOptions.Add("SheetMetalFoldedModel", False)

Dim oFlatPatternPoint As Point2d
Set oFlatPatternPoint = ThisApplication.TransientGeometry.CreatePoint2d(50, 50)

oDwgDoc.Activate

Dim oFlatPatternView As DrawingView

Set oFlatPatternView = oSheet.oDrawingViews.AddBaseView(oPartDoc, oFlatPatternPoint, 0.125, kDefaultViewOrientation, _
kHiddenLineRemovedDrawingViewStyle, , , oOptions)

End Sub&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;Anybody solved this problem before?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 11:00:08 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969577#M7009</guid>
      <dc:creator>MarkyTomm</dc:creator>
      <dc:date>2024-08-20T11:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969635#M7010</link>
      <description>&lt;P&gt;Good morning Mark,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;here is the flats code i run to create a flat from a part file, it checks to see if the drawing file exists&amp;nbsp; then adds the flat view.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i hope this helps, but sometimes you have to declare the part file you are creating the flat from , and then you have to use the object of the part file to create the view, i.e.: not a string to declare where the flat pattern is coming from&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Sub CreateFlats()&lt;BR /&gt;&lt;BR /&gt;Dim oIDWDoc As DrawingDocument&lt;BR /&gt;&lt;BR /&gt;Dim FileExist As Object&lt;BR /&gt;Set FileExist = CreateObject("Scripting.FileSystemObject")&lt;/P&gt;&lt;P&gt;Dim ActiveDoc As PartDocument&lt;BR /&gt;Set ActiveDoc = ThisApplication.ActiveDocument&lt;/P&gt;&lt;P&gt;'get project template path&lt;BR /&gt;Dim ActiveProject As DesignProject&lt;BR /&gt;Set ActiveProject = ThisApplication.DesignProjectManager.ActiveDesignProject&lt;BR /&gt;TemplatePath = ActiveProject.TemplatesPath &amp;amp; "\PHS_West\"&lt;BR /&gt;TemplateFile = TemplatePath &amp;amp; "PHS_West.idw"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;fileName = Replace(ActiveDoc.FullFileName, Right(ActiveDoc.FullFileName, 4), "_Flat" &amp;amp; ".idw")&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;'check to see if idw exists&lt;BR /&gt;If FileExist.FileExists(fileName) = False Then&lt;BR /&gt;'create drawing file&lt;BR /&gt;Set oIDWDoc = ThisApplication.Documents.Add(kDrawingDocumentObject, TemplateFile, True)&lt;BR /&gt;Call oIDWDoc.SaveAs(fileName, False)&lt;BR /&gt;Else&lt;BR /&gt;Set oIDWDoc = ThisApplication.Documents.Open(fileName, True)&lt;BR /&gt;End If&lt;/P&gt;&lt;P&gt;Set TopPos = ThisApplication.TransientGeometry.CreatePoint2d(28, 21.5)&lt;BR /&gt;Dim oBaseViewOptions As NameValueMap&lt;BR /&gt;Set oBaseViewOptions = ThisApplication.TransientObjects.CreateNameValueMap&lt;BR /&gt;Call oBaseViewOptions.Add("SheetMetalFoldedModel", False)&lt;/P&gt;&lt;P&gt;Dim oFlatView As DrawingView&lt;BR /&gt;Set oFlatView = oIDWDoc.ActiveSheet.DrawingViews.AddBaseView(ActiveDoc, TopPos, 0.75, kFrontViewOrientation, kHiddenLineRemovedDrawingViewStyle, , , oBaseViewOptions)&lt;BR /&gt;Call oFlatView.RotateByAngle(1.5707963267949, False)&lt;BR /&gt;oFlatView.Name = "FlatView"&lt;/P&gt;&lt;P&gt;Set SymbolAdd = oIDWDoc.SketchedSymbolDefinitions.AddFromLibrary("PHS West.idw", "SHEET METAL, FLAT", True)&lt;BR /&gt;Set Pos = ThisApplication.TransientGeometry.CreatePoint2d(1.904, 1.27)&lt;BR /&gt;Set SybmolAdd = oIDWDoc.Sheets(1).SketchedSymbols.Add(SymbolAdd, Pos)&lt;BR /&gt;SybmolAdd.Static = True&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;End Sub&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 11:32:15 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969635#M7010</guid>
      <dc:creator>AndrewHumiston</dc:creator>
      <dc:date>2024-08-20T11:32:15Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969645#M7011</link>
      <description>on further review, you might not have the part object, you are getting the referenced file object from the view. another way to do this is to get the full file path for the view, then use:&lt;BR /&gt;&lt;BR /&gt;dim oPartDocFullFilePath as string&lt;BR /&gt;set oPartDocFullFilePath = Sheet.DrawingViews.item(1).document.fullfilename&lt;BR /&gt;Dim oPartDoc as partdocument&lt;BR /&gt;set oPartDoc = thisapplication.documents.open(oPartDocFullFilePath, False)&lt;BR /&gt;&lt;BR /&gt;give that a shot&lt;BR /&gt;&lt;BR /&gt;or better yet change your code on line 17 to:&lt;BR /&gt;&lt;BR /&gt;dim oPartDoc as partdocument&lt;BR /&gt;Set oPartDoc = oSheet.DrawingViews.item(1).ReferencedDocuments.item(1)&lt;BR /&gt;&lt;BR /&gt;that should get you the part document object</description>
      <pubDate>Tue, 20 Aug 2024 11:39:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969645#M7011</guid>
      <dc:creator>AndrewHumiston</dc:creator>
      <dc:date>2024-08-20T11:39:20Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969673#M7012</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;Thanks for your replies, I will have a trawl through the first example - see if I can work out how to integrate it into my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second suggestion promised to be easier to work with but .ReferencedDocuments does not come up as a object of the drawingviews.item object, only ReferencedDocumentsDescriptor&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 11:50:31 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969673#M7012</guid>
      <dc:creator>MarkyTomm</dc:creator>
      <dc:date>2024-08-20T11:50:31Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969721#M7013</link>
      <description>&lt;P&gt;i apologize, i was missing part of the object address:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;dim oPartDoc as partdocument&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Set oPartDoc = oSheet.DrawingViews.item(1).ReferencedFile.DocumentDescriptor.ReferencedDocument&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 12:18:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969721#M7013</guid>
      <dc:creator>AndrewHumiston</dc:creator>
      <dc:date>2024-08-20T12:18:56Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969727#M7014</link>
      <description>in your post you had this line:&lt;BR /&gt;&lt;BR /&gt;Set oPartDoc = oSheet.DrawingViews(1).ReferencedDocumentDescriptor.ReferencedDocument&lt;BR /&gt;Try:&lt;BR /&gt;Set oPartDoc = oSheet.DrawingViews.item(1).ReferencedDocumentDescriptor.ReferencedDocument&lt;BR /&gt;&lt;BR /&gt;the item index number should be item(1), i have never gotten in VBA DrawingViews(1) to work that way.</description>
      <pubDate>Tue, 20 Aug 2024 12:20:58 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969727#M7014</guid>
      <dc:creator>AndrewHumiston</dc:creator>
      <dc:date>2024-08-20T12:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969865#M7015</link>
      <description>&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have changed that line but it did actually work in as much as the debug output returns the correct file path/name. It goes through the open file, build flat patterns, set the drawing view defaults all ok.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Its just the call to set the drawing view that it constantly falls down on.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will rewrite the oPartDoc def routine to use the path string and see if that makes a difference as you suggested&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 13:38:36 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969865#M7015</guid>
      <dc:creator>MarkyTomm</dc:creator>
      <dc:date>2024-08-20T13:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969903#M7016</link>
      <description>Hi Mark,&lt;BR /&gt;&lt;BR /&gt;i think its because you are not referencing the part document correctly. those errors are tricky as they don't give you much to work with on why something is happening.</description>
      <pubDate>Tue, 20 Aug 2024 13:51:26 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969903#M7016</guid>
      <dc:creator>AndrewHumiston</dc:creator>
      <dc:date>2024-08-20T13:51:26Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969966#M7017</link>
      <description>&lt;P&gt;I modified that bit of the code to be&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;Dim oFilePath As String
oFilePath = oSheet.DrawingViews.Item(1).ReferencedDocumentDescriptor.FullDocumentName
Debug.Print oFilePath

Dim oPartDoc As PartDocument
Set oPartDoc = ThisApplication.Documents.Open(oFilePath)&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;It needed the referenced documentdescriptor.fullfile name instead of the line you suggested and it works pretty much as before - the debug prints the filepath/name correctly and the partdoc assignment functions and it goes through the flat pattern routine again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it still fails on the view creation with the method not supported error&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder if the drawing view options and/or sytax in at fault, maybe the error is obvious and I just cannot see it for looking&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:10:52 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12969966#M7017</guid>
      <dc:creator>MarkyTomm</dc:creator>
      <dc:date>2024-08-20T14:10:52Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12970024#M7018</link>
      <description>&lt;P&gt;just a quick thought, try creating a view with out the flatpattern view option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;lets see if we can create a drawing view. some of the other reasons are the drawing is not resoloved, that will keep you from running this kind of code, and&amp;nbsp; sometimes i will go into a new sub routine and perfect getting the base view added, then add in all the other fluff to make it what i want.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:34:54 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12970024#M7018</guid>
      <dc:creator>AndrewHumiston</dc:creator>
      <dc:date>2024-08-20T14:34:54Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12970777#M7019</link>
      <description>&lt;P&gt;you could try this iLogic rule:&lt;/P&gt;
&lt;LI-CODE lang="visual-basic"&gt;Dim doc As DrawingDocument = ThisApplication.ActiveDocument
Dim sheet As Sheet = doc.ActiveSheet
Dim view As DrawingView = sheet.DrawingViews(1)

Dim scale As Double = view.Scale

Dim refDoc As PartDocument = sheet.DrawingViews(1).ReferencedDocumentDescriptor.ReferencedDocument
refDoc.SubType = "{9C464203-9BAE-11D3-8BAD-0060B0CE6BB4}"

ThisApplication.Documents.Open(refDoc.FullFileName)

Dim def As SheetMetalComponentDefinition = refDoc.ComponentDefinition
If def.HasFlatPattern Then
    def.FlatPattern.Delete()
Else
    def.Unfold()
    def.FlatPattern.ExitEdit()
End If

Dim oOptions As NameValueMap = ThisApplication.TransientObjects.CreateNameValueMap
oOptions.Add("SheetMetalFoldedModel", False)

Dim oFlatPatternPoint As Point2d = ThisApplication.TransientGeometry.CreatePoint2d(sheet.Width / 2, sheet.Height / 2)

doc.Activate()

Dim oFlatPatternView As DrawingView = sheet.DrawingViews.AddBaseView(refDoc, oFlatPatternPoint, scale,
            ViewOrientationTypeEnum.kDefaultViewOrientation, DrawingViewStyleEnum.kHiddenLineRemovedDrawingViewStyle,
            , , oOptions)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 20 Aug 2024 20:16:11 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12970777#M7019</guid>
      <dc:creator>JelteDeJong</dc:creator>
      <dc:date>2024-08-20T20:16:11Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12972622#M7020</link>
      <description>&lt;P&gt;Many thanks for your help &lt;SPAN&gt;Jelte,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;That worked perfectly straight out of the box&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have been resisting learning iLogic for too long now, looks like I may have to bite the bullet, just cannot get on with the programming interface as I spent too long with vba&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks again and also to Andrew for his help&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Mark&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Aug 2024 15:18:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12972622#M7020</guid>
      <dc:creator>MarkyTomm</dc:creator>
      <dc:date>2024-08-21T15:18:59Z</dc:date>
    </item>
    <item>
      <title>Re: Insert Flat Pattern From Base Drawing View</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12972754#M7021</link>
      <description>&lt;P&gt;If anyone is interested, it look like a good old syntax error in this line&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Set oFlatPatternView = oSheet.oDrawingViews.AddBaseView(oPartDoc, oFlatPatternPoint, 0.125, kDefaultViewOrientation, _
kHiddenLineRemovedDrawingViewStyle, , , oOptions)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think oDrawingViews was the problem all along - studied Jelte code and changed it to DrawingViews and presto it works - Thanks again everyone&lt;/P&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Aug 2024 16:22:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-forum/insert-flat-pattern-from-base-drawing-view/m-p/12972754#M7021</guid>
      <dc:creator>MarkyTomm</dc:creator>
      <dc:date>2024-08-21T16:22:46Z</dc:date>
    </item>
  </channel>
</rss>

