Ok, here goes...
1) Copy-past the code below into your default.ivb
2) Create a part, save it as "C:\Test.ipt"
3) Run the sub
Sub CreateView
Dim oTemplate As String
Dim oDoc As DrawingDocument
Dim oSheet As Sheet
Dim oModel As PartDocument
Dim oOptions As NameValueMap
Dim oTransGeom As TransientGeometry
Dim oCoord As Point2d
Dim oHeight As Integer
Dim oWidth As Integer
Dim oScale As Double
Dim oDrawView As DrawingView
'Create fabrication drawing from template, change this to your own
template!!!
oTemplate = "C:\Program Files\Autodesk\Inventor 8\Templates\Standard.idw"
Set oDoc = ThisApplication.Documents.Add(kDrawingDocumentObject, oTemplate)
'Set active sheet
Set oSheet = oDoc.ActiveSheet
'Create 2D Point for placement of view
oHeight = oSheet.Height * 1 / 2
oWidth = oSheet.Width * 1/2
Set oTransGeom = ThisApplication.TransientGeometry
Set oCoord = oTransGeom.CreatePoint2d(oWidth, oHeight)
'Set Model
Set oModel = ThisApplication.Documents.Open("C:\Test.ipt", False)
'Set scale
oScale = 1 / 5
'Create normal view
Set oDrawView = oSheet.DrawingViews.AddBaseView(oModel, oCoord, oScale,
kDefaultViewOrientation, kHiddenLineRemovedDrawingViewStyle)
'Create FlatPattern Option
Set oOptions = InventorApp.TransientObjects.CreateNameValueMap
Call oOptions.Add("SheetMetalFoldedModel", False)
'Create flatpattern view
Set oDrawView = oSheet.DrawingViews.AddBaseView(oModel, oCoord, oScale,
kDefaultViewOrientation, kHiddenLineRemovedDrawingViewStyle, "FlatPattern
View", , , oOptions)
MsgBox "Done"
End Sub
"stibbetts" wrote in message
news:7148409.1085743484385.JavaMail.jive@jiveforum2.autodesk.com...
> I cant find it in my object browser either... 😕 anyu other work arounds
that you gent's may know?