Question on AddBaseView Method

Question on AddBaseView Method

liminma8458
Collaborator Collaborator
540 Views
3 Replies
Message 1 of 4

Question on AddBaseView Method

liminma8458
Collaborator
Collaborator

Hi, all,

 

I am making a program that will create a drawing base view referring to a shrinkwrap part model which is also created earlier in the same program (and this part is not saved yet and with default document name such as "part1.prt" or "part2.prt"). But this way does not work out likely due to the reason as below:

problem1.png

 

On the other hand, in the API help file, I notice it implies that part document does not need to be saved first to a file on disc:

baseview.PNG

 

So, they are contradicted. Which is right?

Is there a way I can create a drawing view based on a part document which is not saved yet?

 

 

 

Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily

0 Likes
Accepted solutions (1)
541 Views
3 Replies
Replies (3)
Message 2 of 4

Sergio.D.Suárez
Mentor
Mentor
Accepted solution

First you will have to save the file, otherwise you can not create that view.
If you only want it temporarily you can first save the file, create the view, then export for example to "pdf", then delete the saved file, and finally close if you save your temporary template.


Please accept as solution and give likes if applicable.

I am attaching my Upwork profile for specific queries.

Sergio Daniel Suarez
Mechanical Designer

| Upwork Profile | LinkedIn

Message 3 of 4

BrianEkins
Mentor
Mentor

I'm fairly certain that it used to behave like how I described it in the help, but that was many years ago and some changes have been made to drawings that require that the document exists on disk and unfortunately, the documentation hasn't been updated.

---------------------------------------------------------------
Brian Ekins
Inventor and Fusion 360 API Expert
Website/Blog: https://EkinsSolutions.com
Message 4 of 4

liminma8458
Collaborator
Collaborator

Indeed, the reason I don't want to save the shrinkwrap part is that it is big (like 50MB). I just need a PDF print for the customer. Too bad they take this option out.

 

Looks like Inventor sometimes abandons some good old feature when they make new upgrade. Such as something I complain in this thread: https://forums.autodesk.com/t5/inventor-forum/a-bug-in-update-3-of-inventor-2019/m-p/8667093#M737552. At lease they should keep the old information somewhere. Shrinkwrap part is a part. Keeping its original assemble surface information will cause confusion

 

 

Thanks
Limin
Inventor pro 2023 64 bit update 5.3; Windows 11 pro 64 bit version 24H2; Office 2013 64 bit

Download iCable in App Store to Create Cables Easily

0 Likes