Anonymous
738 Views, 2 Replies
03-22-2015
02:05 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-22-2015
02:05 AM
Hi All,
I need the code that would open ipt or idw from first sheet first view and generate step file from it.
Then after export switch bacjk to idw as active document.
Also I am using code t update part:
Dim oDocument As Document Set oDocument = ThisApplication.ActiveDocument oDocument.Update
But this code do not update idw - all sheets
Any help woul be great.
Regards
Solved! Go to Solution.
Anonymous
in reply to:
Anonymous
03-22-2015
01:08 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
03-22-2015
01:08 PM
Hi All
I have found this code:
'Update Drawing Dim oDocument As Inventor.DrawingDocument Set oDocument = ThisApplication.ActiveDocument Dim oSheet As Inventor.Sheet oSheet = oDocument.Sheets(1) If oDocument.RequiresUpdate Then oDocument.Update oDocument.Save End Sub
But It fails at:
oSheet = oDocument.Sheets(1)
Invalid use of property.
Thanks