使用 Autodesk Inventor 和 VBA 将 STEP 文件转换为 DWG

发布于 2024-09-15 00:15:05 字数 364 浏览 2 评论 0原文

有谁知道该怎么做?我使用VBA的技能不是很好,我也用谷歌搜索过它,但我什至不知道如何使用VBA打开其中一个文件。

也许你们中的某个人以前已经做过类似的事情?

非常感谢您的帮助。

编辑

转换文件时必须执行以下步骤:

  1. 打开 STEP 文件 ->文件->打开
  2. 点击菜单栏中的“应用程序”->然后“AEC-Exchange”
  3. 现在左侧出现一个名为“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:

  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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

拥抱影子 2024-09-22 00:15:05

编辑

显然,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) 示例文件:

VBA 和Inventor API 简介 (zip
- 547Kb)

以下资源将为您提供帮助
开始对 Inventor 进行编程。
假设熟悉 Autodesk
发明家和通用编程
概念。

视频教程:

DevTV:Inventor 简介
编程 自定进度视频
教程演示如何获取
开始与 Autodesk 一起开发
发明者。 在线查看 | 下载

或者,如果您的唯一目标只是转换 .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:

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文