使用 Autodesk Inventor 和 VBA 将 STEP 文件转换为 DWG
有谁知道该怎么做?我使用VBA的技能不是很好,我也用谷歌搜索过它,但我什至不知道如何使用VBA打开其中一个文件。
也许你们中的某个人以前已经做过类似的事情?
非常感谢您的帮助。
编辑
转换文件时必须执行以下步骤:
- 打开 STEP 文件 ->文件->打开
- 点击菜单栏中的“应用程序”->然后“AEC-Exchange”
- 现在左侧出现一个名为“AEC-Exchange”的对话框,其中包含以下项目:“另存为 DWG”。通过单击它,该文件可以另存为 AutoCAD 2007 dwg 文件。
我希望这有帮助。
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:
- Open the STEP file -> File -> Open
- Clicking on "Application" in the menu bar -> then "AEC-Exchange"
- 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
编辑
显然,Autodesk Inventor 可以在本地为您完成转换。 http://docs.autodesk.com/INVPRO/2010/ENU/Autodesk%20Inventor%202010%20Help/index.html?url=WS1a9193826455f5ffba22e1113c6c30c0e-3b1a.htm,topicNumber=d0e14826
打开 .stp 并另存为 .dwg?另外,似乎这是每个人都引用的能够做到这一点的应用程序(至少从 .dwg 到 .stp)。但是,.stp 似乎是 3D 文件类型,而 .dwg 是 2d 文件类型。对我来说,.stp 文件类型似乎包含 .dwg 文件无法处理的数据,因为 3d 本质上比 2d 更复杂(除非这些 .stp 文件仅包含 2d 图像?)。这可以解释为什么关于将 .stp 转换为 .dwg 的文章不多。
我从未使用过 Autodesk Inventor SDK,而且我也不擅长 VBA,但这里似乎有一些非常好的文档:http://usa.autodesk.com/adsk/servlet/index?siteID=123112&id=1079044
以下是一些我在此页面上找到的资源:
简介文件/Inventor VBA(.ivb) 示例文件:
视频教程:
或者,如果您的唯一目标只是转换 .stp/。步骤文件到 .dwg。您最好找到一些免费的转换器,而不是与 Autodesk 连接。
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:
Video Tutorial:
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.