请问patran里有没有这样一个内部函数

浏览:119296 回答:5
函数功能描述如下:
鼠标在屏幕上拾取某个节点,返回这个节点的节点号或其坐标值,patran中不知道有没有单独完成这种功能的函数
之所以想要得到有上述这种功能的函数的原因:
这个问题是我在做参数化建模界面的过程中遇到的,由于受力和边界条件的位置变化很大,我是希望能通过这样一个函数,通过点击某个节点,自动将集中力或约束加到这个点上去
也不知道我的这个思路对不对
不知道我有没有把问题描述清楚了
若有高人能赐教一二,不胜感激,先行谢过了
邀请回答 我来回答

全部回答

(5)
默认 最新
oliverw23
ahu0326 ,先纠正程序里一个错误。CLASSWIDE form_id,disp_spread应该是
CLASSWIDE widget form_id,disp_spread。变量类型名没定义。
2010年5月7日
评论 点赞
可以把这段代码复制下来调试下啊
我觉得那些报的错都不是问题的关键
反而会误导我
2008年5月22日
评论 点赞
CLASS interface
CLASSWIDE form_id,disp_spread
FUNCTION init()
string col_labels[3](1,1), row_labels[3](1,1)
form_id=ui_form_create( "",2.,2.,"UL",2.5,5.0,"","")
disp_spread=ui_spread_create(form_id, @
"spread_cb",@
2.0, 0.5, 2.0,3.5,1.5, @
5,5, 2, 1, col_labels, row_labels,"查询结果", "", "", "SINGLE")
END FUNCTION
FUNCTION input_data(value)
integer value
END FUNCTION
FUNCTION display()
ui_form_display("interface")
END FUNCTION
END CLASS
我是这样弄得,不过老是有错
哪里不对啊,还望高人指教啊
2008年5月15日
评论 点赞
lvtu
ui_spread_create (parent, callback, x, y, width, height, label_width, num_vis_cols,
num_cols, num_rows, num_layers, col_labels, row_labels, label,
layer_label, layer_value_label, selection_type )
The spreadsheet is an MSC-developed widget.
The spreadsheet widget contains several features. It consists of rows and columns of cells with
numerical values entered by the user. Each cell has an address designated by the row and
column in which it resides. After entering data in a cell or multiple cells, the data may be
manipulated in various ways. An entire row or column may be selected by clicking on its label.
Or, an individual cell may be selected by clicking inside the cell. Also, multiple cells may be
selected by dragging the mouse cursor over the desired cells.
2008年5月15日
评论 点赞
ui_spread_create能实现这个功能吗
有人知道这个函数怎么用吗
用了一下,但是还没成功
2008年5月14日
评论 点赞

没解决?试试专家一对一服务

换一批
    App下载
    技术邻APP
    工程师必备
    • 项目客服
    • 培训客服
    • 平台客服

    TOP