如何控制通过在Catia的API 3D模型 [英] How to control a 3D model via the API in Catia

查看:290
本文介绍了如何控制通过在Catia的API 3D模型的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下情形:我使用一些弯曲传感器,Arduino板和5伺服建设的animatronic手。这边没问题。但是我有以下想法:建在Catia手的三维CAD模型,并在实时的虚拟手向实体的手的运动复制的实时性。
 我用的东西在Matlab当我做了一些实时的地块有一些传感器的一些数据。它是更多钞票要做到这一点在Catia?
 从阿尔杜伊诺获取的数据,并基于该数据来模拟虚拟手的运动的实时性。你可以告诉它是否posibile?

I have the following scenario: i am building a animatronic hand using some flex sensor, arduino board and 5 servo. No problem on this side. But i have the following idea: to build a 3D CAD model of the hand in Catia, and in real time the virtual hand to copy the movements of the real hand in real time. I used something in Matlab when i did some plots in real time with some data from some sensor. It is posible to do that in Catia? To get the data from arduino and based on that data to simulate the movements of the virtual hand in real time. Can you tell if it posibile ?

手的3D模型将不会很复杂,手不会快速移动。

The 3D model of the hand will not be very complex and the hand won't move very quickly.

推荐答案

恐怕是不够快。也许使用降阶模型会有所帮助。

I am afraid it would not be fast enough. Maybe using a reduced model would help.

不过,最好的选择是有一个VB.NET应用程序(我觉得C#也将工作,但从来没有尝试过),与CATIA和Arduino板通信。

However, the best option is to have a VB.NET application (I think C# would also work, but never tried it) that communicates with CATIA and Arduino board.

要从VB.NET让你CATIA可以做这样的事情。

To get CATIA from VB.NET you can do something like

Module Main
    Sub Main()
        Dim CATApp as System.Type = System.Type.GetTypeFromProgID("Catia.Application")
        Dim CATIA as Object = System.Activator.CreateInstance(CATApp)
        'use CATIA object from now on as you would usually do
    End Sub
End Module

要与Arduino板你需要监视的串行端口

To talk with the Arduino board you need to monitor the Serial Port

现在你可以从Arduino的,过程中,它读取数据,而且为了使用自动化API来CATIA更新模型发送命令。

Now you can read data from Arduino, process it, and send command using the automation API to CATIA in order to update your model.

这篇关于如何控制通过在Catia的API 3D模型的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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