找回密码
 注册
Simdroid-非首页
查看: 423|回复: 12

[HyperWorks Enterprise] hypermesh关于自动抽取中面后自动获取实体厚度二次开发

[复制链接]
发表于 2016-5-17 20:09:50 | 显示全部楼层 |阅读模式 来自 天津
悬赏20仿真币未解决
hypermesh自动抽取实体中面后如何自动获取实体厚度信息,如何用程序实现呢,求大神指教。。。

发表于 2016-5-25 19:45:08 | 显示全部楼层 来自 湖北武汉
Simdroid开发平台
金币太少
回复

使用道具 举报

发表于 2016-6-21 14:48:25 | 显示全部楼层 来自 湖南长沙
有两种办法,一种是有个point到surf,还有一种高版本hypermesh有一个命令可以直接测出,命令你在帮助里找一下吧
回复

使用道具 举报

 楼主| 发表于 2016-6-24 22:57:35 | 显示全部楼层 来自 陕西宝鸡
wjx880505 发表于 2016-6-21 14:48
有两种办法,一种是有个point到surf,还有一种高版本hypermesh有一个命令可以直接测出,命令你在帮助里找一 ...

好的 谢谢
回复

使用道具 举报

发表于 2016-8-16 00:01:58 | 显示全部楼层 来自 河北石家庄
我有插件 要不要 5000块钱 要的话 加微信
回复

使用道具 举报

发表于 2016-8-27 21:28:06 | 显示全部楼层 来自 江苏无锡
pandachu 发表于 2016-8-16 00:01
我有插件 要不要 5000块钱 要的话 加微信

我有一大把,应该不需要5000吧?老兄
回复

使用道具 举报

发表于 2016-10-3 21:50:50 | 显示全部楼层 来自 吉林长春
金币好多,但是我不会,正在努力的赚金币中
回复

使用道具 举报

发表于 2016-10-11 17:24:45 | 显示全部楼层 来自 台湾
*createmarkpanel surfaces 1 "select surface"
set sid [ hm_getmark surfaces 1 ]
*createmark surfaces 1 $sid
*interactiveremeshsurf 1 $w 0 0 2 1 1
*set_meshfaceparams 0 5 0 0 0 1 0.5 1 1
*automesh 0 5 0
*storemeshtodatabase 1
*ameshclearsurface
set thick [ hm_getsurfacethicknessvalues elements -1]
set t [lindex $thick 0]
set tt [lindex $t 1]
*createmark elements 1 "by comps name" "Middle Surface"
*deletemark elements 1
*collectorcreateonly components "com$sid" "" 3
*collectorcreateonly properties "sect$sid" "" 9
*createmark properties 1 "sect$sid"
set popid [ hm_getmark properties 1 ]
*createmark properties 2 "sect$sid"
*dictionaryload properties 2 "C:/Program Files/Altair/14.0/templates/feoutput/abaqus/standard.3d" "SHELLSECTION"
*attributeupdateint properties $popid 139 2 2 0 1
*attributeupdateint properties $popid 4701 2 2 0 0
*attributeupdateint properties $popid 4397 2 2 0 0
*attributeupdateint properties $popid 838 2 2 0 0
*attributeupdateint properties $popid 1819 2 2 0 0
*attributeupdateint properties $popid 1856 2 2 0 0
*attributeupdateint properties $popid 140 2 2 0 0
*attributeupdateint properties $popid 141 2 2 0 0
*attributeupdateint properties $popid 143 2 2 0 0
*attributeupdateint properties $popid 293 2 2 0 0
*attributeupdateint properties $popid 2349 2 2 0 0
*attributeupdateint properties $popid 2351 2 2 0 0
*attributeupdateint properties $popid 1823 2 2 0 0
*attributeupdateint properties $popid 1761 2 2 0 0
*attributeupdatedouble properties $popid 111 2 0 0 0
*attributeupdateint properties $popid 4232 2 0 0 5
*attributeupdateint properties $popid 282 2 2 0 0
*attributeupdateint properties $popid 4613 2 2 0 0
*attributeupdateint properties $popid 2828 2 2 0 0
*attributeupdatedouble properties $popid 111 2 1 0 $tt
*attributeupdateint properties $popid 4232 2 1 0 5
*createmark components 1  "com$sid"
*propertyupdate components 1 "sect$sid"
*createmark surfaces 1 $sid
*movemark surfaces 1 "com$sid"

上述如您所求,若沒問題請給予20仿真幣,感謝~
另外我可針對您需求開發各種客製化功能.
有興趣可以討論交流^^~
caesuperman@yahoo.com.tw
回复

使用道具 举报

发表于 2016-11-5 21:46:22 | 显示全部楼层 来自 上海
yuchenglin9999 发表于 2016-10-11 17:24
*createmarkpanel surfaces 1 "select surface"
set sid [ hm_getmark surfaces 1 ]
*createmark surfaces  ...

兄弟你不要开玩笑好不,你这代码都自动划分网格了,也太夸张了吧
回复

使用道具 举报

发表于 2016-11-13 12:19:38 来自手机 | 显示全部楼层 来自 江苏
要单独程序段可以发你,整个一体插件也有。
回复

使用道具 举报

发表于 2016-11-14 12:56:32 | 显示全部楼层 来自 天津
帮助里有例子
回复

使用道具 举报

发表于 2016-12-27 10:28:37 | 显示全部楼层 来自 天津
hm提取中面时会保存厚度信息,如果要求不高,hm也有简单的自动定义的方法——老版本可以在geom的宏中找到,新版本在mesh菜单下
如果要求较高,8楼的方法可行,但这哥们儿写得太多了,尤其是后半段,就一句有用。简单说就是一个命令hm_getsurfacethicknessvalues
回复

使用道具 举报

发表于 2017-3-10 10:21:54 | 显示全部楼层 来自 台湾
回復12樓的,我的程式是抽中面後自動附加抽完中面的厚度給此面,因此後段是在處理這些事情,
有用沒用要看用途,請不用太武斷,感謝~
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|小黑屋|联系我们|仿真互动网 ( 京ICP备15048925号-7 )

GMT+8, 2024-4-27 05:38 , Processed in 0.037837 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表