Inventor Customization

Reply
Valued Mentor
Ktelang
Posts: 280
Registered: ‎09-23-2010
Message 1 of 3 (198 Views)
Accepted Solution

Saveas STP -save options

198 Views, 2 Replies
11-14-2012 12:00 PM

How can I access the save option while saving stp

 

Call oDoc.SaveAs("C:\temp\test.stp", True)

using this I get the default "include sketches" options

 

I want to exclude sketches using API

 

Thanks

------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------
ADN Support Specialist
Posts: 288
Registered: ‎07-21-2006
Message 2 of 3 (195 Views)

Re: Saveas STP -save options

11-14-2012 12:44 PM in reply to: Ktelang

When using the SaveAs method you get the default behavior and don't have control over the various translator settings.  In order to control the setting you need to drive the translator directly.  There are several samples in the API help that demonstrate this and there's on in particular that shows how to write out a STEP file.  The sample doesn't show all of the options that are available.  That's also listed in the API help but when I just looked for it now found it's not accessible through the index.  Instead you have to search for it.  We need to correct this.  In the meantime, I copied and pasted the material in a Word document, which I've attached.  You'll see the option for excluding sketches there.



Brian Ekins
Developer Technical Services
Autodesk Developer Network
Autodesk, Inc.
Valued Mentor
Ktelang
Posts: 280
Registered: ‎09-23-2010
Message 3 of 3 (190 Views)

Re: Saveas STP -save options

11-14-2012 01:58 PM in reply to: ekinsb

Thanks Brian,

 

oOptions.Value("IncludeSketches") = False

 

This did the trick

 

 

------------------------------------------------------------------------------
Config :: Intel (R) Xeon (R) CPU E31245 @ 3.30 GHz, 16.0 GB, 64bit win7
Inventor 2013 and Vault Basic 2013
-----------------------------------------------------------------------------

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 interested in helping shape the Autodesk Community?
We’re looking at a few different ways to improve the “All Forums” landing page and need your feedback! If interested, please take a few minutes to fill out the following Usability Study. Thank you for your time!

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