matlab导入proe,Pro/ENGINEER 与 Matlab/SimMechanics 接口建立的方法

Pro/ENGINEER 没有对 Matlab/SimMechanics 预留接口,为此需要写入注册表文件将 SimMechanics 连接模块作为工具嵌入到 Pro/ENGINEER 中。

步骤如下:

(1) 从 Matlab 官 网 下 载 对 应 版 本 的 SimMechanics 插 件smlink.r2011a.win32.zip 和安装 M 文件 install_addon.m。点击下载

(2) 将 smlink.r2011a.win32.zip 和 install_addon.m 置入 Matlab工作目录 D:\Program

Files\MATLAB\R2011a\bin 下。

(3)启 动 Matlab2011a,输 入 命令 install_addon('smlink.r2011a. win32.zip')并单击回车键安装插件。

(4)在安装目录Pro5.0的text 文件夹中新建protk.dat 文件。若没有此文件可以新建一个文本文件,输入(5)中的内容保存后后缀改为.dat格式。

(5)在Protk.dat文件中按照Matlab安装的绝对路径写入:

对于Pro/ENGINEER Wildfire 3 和早期的版本按照如下写入:

name SimMechanics

Link

startup dll

exec_file $matlabroot/bin/arch/cl_proe2sm.dll

text_dir

$matlabroot/toolbox/physmod/smlink/cad_systems/proe/

end

对于Pro/ENGINEER Wildfire 4 和之后的版本按照如下写入:

name SimMechanics Link

startup

dll

exec_file $matlabroot/bin/arch/cl_proe2sm.dll

text_dir

$matlabroot/toolbox/physmod/smlink/cad_systems/proe/

unicode_encoding

false

end

注意:上面程序中要使用文件的绝对路径。

(6)保存并关闭文件。

成 功 建 立 连 接 之 后Pro/ENGINEER 主 菜 单 中 出 现SimMechanics Link 选项卡,如图所示。

79d3744f7e8bdf5202fc47817e867cd8.png

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值