Autodesk Inventor Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Create idw from ipt file with special layout (vb.net)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
I'm trying to write an application that creates a .idw drawing from a .ipt file in vb.net.
Now I want to predefine a layout, where the projected views should gonna be, independent which .ipt file I have.
Do I create a new .idw and make it look like I want, then save it and open it within the application?
But if I change the savepath it ask me where the file (.ipt) is.
So now I could choose my one, right? But how can I choose my .ipt file in the application?
It won't let me do an operation like openwith or something like that.
Or does there exists another way to predefine a layout?
Thanks in advance,
David
Re: Create idw from ipt file with special layout (vb.net)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
DavidISC wrote:Or does there exists another way to predefine a layout?
Look up Sheet Formats in Inventor Help
This allows you to pre-define a sheet layout.
Mike
Re: Create idw from ipt file with special layout (vb.net)
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Thanks Mike, this is what I was looking for.
But now I have a few other problems:
1) I have a idw and a ipt. The idw is made of the ipt. Now I'm going to change some parameters of the ipt, and open without saving, the idw, which is now updated.
Now I want to export the idw to dwg (pdf,jpg.. are working).
If I use the command below, Inventor asks me, if I want also to save the dipendents.
Dim oDoc As Inventor.DrawingDocument = _invApp.ActiveDocument
oDoc.SaveAsInventorDWG("C:\Inventor\Drawing.dwg", True)How can I skip this step without saving the dipendents?
2) Like I described in my first post, I would like to create automatically a idw file from a ipt.
I have already a ipt file and a idw file. Now I'm going to change some parameters of my ipt file. The drawing will update like written above. Now my problem is, that I have to find a way to set the right scaling.
Doc.Sheets(1).DrawingViews(1).ScaleString = "1:5"
This command would help me here. But my problem is to find the needed scaling, maybe you have some ideas?
I thought already to take the original ipt and write out the height and width, then, after setting the parameters, reget the size and then create the difference and look at the ratio.
But I havn't found a way to get the general size of my part file.
3) It's there any possibility to save a ipt as, for example, dwg, but in a old version? I've read about, that the setting is in a ini file, but I didn't really get it.
Thanks in advance,
David
