将CAD模型(Solidworks,AutoCAD或CATIA)与Raspbery Pi或Arduino Sensor的实时测量连接起来 [英] Connecting CAD model (Solidworks, AutoCAD or CATIA) with realtime measurements from Raspbery Pi or Arduino Sensor

查看:108
本文介绍了将CAD模型(Solidworks,AutoCAD或CATIA)与Raspbery Pi或Arduino Sensor的实时测量连接起来的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

为提出我的问题,我将简化我的例子.

To present my question I will simplify my example.

我将链轮连接到步进电机上,并使用加速度计测量加速度.数据将通过使用Arduino或Raspberry pi传感器设置来捕获.然后,将这些测量结果存储在基于云的环境中或类似的情况下,并将其发送到CAD模型(这就是想法).

I will connect a sprocket on a step motor and measure acceleration with an accelerometer. The data will be captured by using either an Arduino or Raspberry pi sensor setup. The measurements will then be stored in a cloud-based environment or somehow similar and be send to the CAD model (that's the idea).

基本上我想要实现的是:

Basically what I would like to achieve is to:

  • 将步进电机的运动与SW/CATIA/AutoCAD模型连接(如果物理链轮在旋转,则在CAD模型中也是如此),

  • connect the movement of the step motor with the SW/CATIA/AutoCAD model (if the physical sprocket is spinning, so is the one in the CAD model),

如果测量结果确定了装配中的问题,则关键/弱零件将以某种方式突出显示在CAD模型中.

in case that the measurements identify a problem in the assembly, the critical/weak component would be somehow highlighted inside the CAD model.

有没有人知道如何做到这一点,或者甚至有可能做到这一点?

Has anyone an idea how this could be done or if it is even possible?

推荐答案

我认为在CATIA(这是我所知道的唯一一个)中绝对有可能(而且非常容易). CATIA公开了COM Automation(即您可以像使用MS Office应用程序一样与之交互),并且自然会以相同的方式编写VBA项目. 但是VBA项目有很多局限性,我认为要有一个背景,持续运行的过程(如您描述的过程)几乎是不可能的.

I think is definitely possible (and quite easy) in CATIA (which is the only one I know). CATIA has COM Automation exposed (i.e. you can interact with it like you do with MS Office apps) and naturally you would to it writing VBA project in the same fashion . But VBA projects have a lot of limitations, and I think it would be almost impossible to have a background, constantly running process such as the one you describe.

如果您切换到Python,则可以:

If you switch to Python, you'll be able to:

  • 访问所有python功能,在您描述的范围内,我认为从传感器获取数据并处理它们,然后将其发送到CAD方面,您将拥有无限的可能性.
    • 随时随地运行脚本,完全独立于VBA编辑器和CATIA宏相关的知识.它只会向CATIA发送命令,并且会立即执行.
    • 具有实时的所有功能,因为如果在CATIA中启用了自动更新",则将立即执行通过COM发送的每个命令,并相应地更新零件或产品
    • access all python functionalities, in the scope you describe I think you'll have endless possibilities in getting data from a sensor and handle them, then send to the CAD.
      • run the script whenever you want, totally independently from VBA editor and CATIA macro related stuff. It will just send commands to CATIA and it will instantly execute.
      • have everything in real time, because if you enable Automatic Update in CATIA, each command sent via COM will be immediately executed and the Part or Product updated accordingly

      我已经成功地将一个复杂的项目从VBA转换为Python,它同时与CATIA和Excel无缝交互并在它们之间传输数据.

      I already translated a complex project from VBA to Python with success, it interacts seamlessly with CATIA and Excel at the same time and transfer data between them.

      这篇关于将CAD模型(Solidworks,AutoCAD或CATIA)与Raspbery Pi或Arduino Sensor的实时测量连接起来的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆