Inventor Customization

Reply
New Member
DavidISC
Posts: 2
Registered: ‎10-10-2011
Message 1 of 3 (998 Views)

Create idw from ipt file with special layout (vb.net)

998 Views, 2 Replies
10-10-2011 07:05 AM

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



Mentor
Mike_Maenpaa
Posts: 183
Registered: ‎09-23-2008
Message 2 of 3 (991 Views)

Re: Create idw from ipt file with special layout (vb.net)

10-10-2011 12:37 PM in reply to: DavidISC

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

 

New Member
DavidISC
Posts: 2
Registered: ‎10-10-2011
Message 3 of 3 (979 Views)

Re: Create idw from ipt file with special layout (vb.net)

10-11-2011 06:43 AM in reply to: Mike_Maenpaa

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

 

 

You are not logged in.

Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register

Announcements
Are you familiar with the Autodesk Expert Elites? The Expert Elite program is made up of customers that help other customers by sharing knowledge and exemplifying an engaging style of collaboration. To learn more, please visit our Expert Elite website.

Need installation help?

Start with some of our most frequented solutions to get help installing your software.

Ask the Community


Inventor Exchange Apps

Created by the community for the community, Autodesk Exchange Apps for Autodesk Inventor helps you achieve greater speed, accuracy, and automation from concept to manufacturing.

Connect with Inventor

Twitter

Facebook

Blogs

Pinterest

Youtube