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

[后处理] 求助 hyperview二次开发

[复制链接]
发表于 2010-3-29 20:40:38 | 显示全部楼层 |阅读模式 来自 浙江台州
小弟我刚接触Hyperworks系统的二次开发,现在刚对Hypermesh界面下的二次开发有所了解,知道在HyperMesh界面下可以通过查看command.cmf文件了解HyperMesh运行的代码,但是让我费解的是在Hyperview下面我找不到怎么查看HyperView的运行代码,有没有高人指点一下啊,不胜感激!
发表于 2010-3-30 17:42:47 | 显示全部楼层 来自 上海
Simdroid开发平台
HyperView的二次开发的资料比较少,帮你顶一下。
回复 不支持

使用道具 举报

发表于 2010-3-30 21:55:16 | 显示全部楼层 来自 上海
本帖最后由 evanzpan 于 2010-3-30 22:17 编辑

HV不会将操作信息记录下来。
HV和HM二次开发最大的区别在于HV有层级关系.见下图:

HW的在线帮助上有一些HV二次开发的case。可以在下面路径找到:
Reference Guide > Programming with Tcl/Tk Commands >
Use Case 1 - Load a model and apply a stress contour.
set proc_name "contour_stress"
hwi GetSessionHandle sess
if {[catch {
       hwi GetSessionHandle sess
       sess GetProjectHandle proj
       proj GetPageHandle page [proj GetActivePage]
       proj ReleaseHandle
       page GetWindowHandle win [page GetActiveWindow]
       win SetClientType "Animation"
       win GetClientHandle post
       win ReleaseHandle
       # Load model
       set model_id [post AddModel d:/samples/dyna/bumper_foam/d3plot"]
       post GetModelHandle mod $model_id
       mod SetResult "d:/samples/dyna/bumper_foam/d3plot"
       # Advance to first frame.
       page GetAnimatorHandle animator
       animator Next
       # Enable contour state and visibility
       mod GetResultCtrlHandle res
       mod ReleaseHandle
       res GetContourCtrlHandle contour_ctrl
       res ReleaseHandle
       contour_ctrl SetEnableState true
       post SetDisplayOptions "contour" true
       # Set result state
       contour_ctrl SetDataType "stress"
       contour_ctrl SetShellLayer "max"
       contour_ctrl SetDimensionEnabled shell true
       contour_ctrl SetDataComponent shell "P1"
       contour_ctrl SetDimensionEnabled solid true
       contour_ctrl SetDataComponent solid "P1"
       post Draw
       # Cleanup handles to avoid leaks and handle name collisions.
       contour_ctrl ReleaseHandle
       post ReleaseHandle
       page ReleaseHandle
       sess ReleaseHandle
} result]}
       # Error handling
       puts $logfile "----- Error occured running $proc_name -----"
       puts $logfile "[sess GetError]"
       puts $logfile "--------------------------------------------"
}

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?注册

×
回复 不支持

使用道具 举报

发表于 2013-11-25 15:26:59 | 显示全部楼层 来自 北京
evanzpan 发表于 2010-3-30 21:55
HV不会将操作信息记录下来。
HV和HM二次开发最大的区别在于HV有层级关系.见下图:

这个程序好像不能执行,应该有几行是错误的
回复 不支持

使用道具 举报

发表于 2015-11-6 23:04:33 来自手机 | 显示全部楼层 来自 广东
为我学习提供了方向
回复 不支持

使用道具 举报

发表于 2017-6-2 16:01:45 | 显示全部楼层 来自 湖南长沙
surfin 发表于 2015-11-6 23:04
为我学习提供了方向

同感!!!!
回复 不支持

使用道具 举报

发表于 2019-11-26 11:29:40 | 显示全部楼层 来自 四川
您好,请问您现在还在做hyperview的二次开发吗,有一些问题想请教,如果方便的话,是否可以提供一下您的邮箱。
回复 不支持

使用道具 举报

发表于 2020-3-15 10:49:37 | 显示全部楼层 来自 中国
现在主要对二次开发有需求的是哪个行业的企业
回复 不支持

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-4-26 09:16 , Processed in 0.037670 second(s), 13 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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