tags:

views:

96

answers:

1

Hello,

Does anyone know how to do that? My skills in using VBA aren't very good and I also googled for it, but I do not even know how to open one of those files by using VBA.

Maybe someone of you did already do something like this before?

Thanks a lot for any help.

EDIT

The following steps have to be done do convert the files:

  1. Open the STEP file -> File -> Open
  2. Clicking on "Application" in the menu bar -> then "AEC-Exchange"
  3. Now there appears a dialog on the left called "AEC-Exchange" including the item: "Save as DWG". By clicking on it the file can be saved as an AutoCAD 2007 dwg file.

I hope this helps.

+1  A: 

EDIT

Apparently Autodesk Inventor can do the conversions for you natively. http://docs.autodesk.com/INVPRO/2010/ENU/Autodesk%20Inventor%202010%20Help/index.html?url=WS1a9193826455f5ffba22e1113c6c30c0e-3b1a.htm,topicNumber=d0e14826

Open the .stp and save as .dwg? Also, it appears that this is the application that everyone references as being able to do it (At least going from .dwg to .stp). However, it also appears that .stp is a 3D file type while .dwg is a 2d file type. To me, it would seem that the .stp file type would contain data that the .dwg file couldn't handle since 3d is inherently more complex than 2d (unless these .stp files contain only 2d images?). This could explain why there aren't many articles on converting .stp to .dwg.


I've never used the Autodesk Inventor SDK and I'm not that great at VBA either, but there seems to be some pretty good documentation on it here: http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1079044

Here are some of the resources I found on this page:

Intro Files / Inventor VBA(.ivb) Sample file:

VBA & Inventor API Introduction (zip - 547Kb) The following resource will help you get started with programming Inventor. It assumes familiarity with Autodesk Inventor and general programming concepts.

Video Tutorial:

DevTV: Introduction to Inventor Programming A self-paced video tutorial demonstrating how to get started developing with Autodesk Inventor. View online | Download

Alternatively, if your only goal is to simply convert a .stp/.step file to .dwg. You may be better off finding some free converter over interfacing with Autodesk.

Brandon Boone
Actually I am just looking for a converter, but there aren't any free ones out there. Actually I didn't find any, but I googled for it for a long time.
Forlan07
I know how to convert the files natively, but it isn't as simple as "save as dwg". I get every week about 300 files, and it takes too much time to convert them by opening and converting natively.
Forlan07
Since it's not as simple as "save as," could you edit your question and add the literal steps you take to convert the files in Autodesk? This would help me (or anyone on here) convert those steps into VBA via the Autodesk API.
Brandon Boone
Just edited my thread and added the steps that have to be done.And thank you so much for your help.
Forlan07