Create multiple views simultaniously

Create multiple views simultaniously

Raider_71
Collaborator Collaborator
386 Views
2 Replies
Message 1 of 3

Create multiple views simultaniously

Raider_71
Collaborator
Collaborator

Hi,

 

Is there a way to create a base view, side view and lets say a plan view in one go using the API. What I mean is so that the views all compute at the same time and the one call is not waiting for the previous one to finish before it starts. 

We are trying to get our drawings to generate a bit faster making use of multiple CPU cores. ...as I understand Inventor now supports multiple cores for generating drawing views??

 

Thanks

Pieter

0 Likes
387 Views
2 Replies
Replies (2)
Message 2 of 3

adam.nagy
Autodesk Support
Autodesk Support

Hi Pieter,

 

Inventor may use multiple cores to generate the graphical objects inside the views.

If it does use them, then the API call should benefit from that too as it will return sooner.

The API is serial: one call has to finish before you do the next call, but maybe the image generation can be delayed or speeded up.

Maybe "DrawingSettings.MemorySavingMode" has some effect and/or "Application.ScreenUpdating" also mentioned in this blog post along with other things like Global Transactions: 

http://modthemachine.typepad.com/my_weblog/2015/09/improving-your-programs-performance.html

 

 

Cheers,



Adam Nagy
Autodesk Platform Services
0 Likes
Message 3 of 3

Raider_71
Collaborator
Collaborator

Hi Adam,

 

Thanks for the feedback! It has proven to be very useful!

 

I have also started using code from the "Create sheet with multiple views API Sample" in thr API help inside Inventor.

Create sheet with multiple views API Sample

Set oSheet = oDrawDoc.Sheets.AddUsingSheetFormat(oFormat, oModel)

That actually seems to get Inventor to generate the drawing views simultaneously.

 

Thanks again for the help!

 

Pieter