求救:单元结果读取时的数组赋值出错问题?
我用一下函数读取单元结果:INTEGERe_res_ids(5)
STRING e_elem_list, e_derivation, e_location, e_cid
INTEGERe_datatype, e_resloc, e_nres, e_ids(VIRTUAL)
INTEGERe_nresults(VIRTUAL)
INTEGERe_return_value, e_minloc(12), e_maxloc(12)
REAL e_results(VIRTUAL)
REAL e_temp_node_force(8,3)
INTEGERe_i,e_j
#---------------------------------------------------------------------
# Argument initialization
e_res_ids(1) = a_temp_lcid
e_res_ids(2) = a_temp_subid
e_res_ids(3) = c_temp_primary_id
e_res_ids(4) = c_temp_secondary_id
e_res_ids(5) = d_temp_layers_id
e_derivation=""
e_location=""
e_cid=""
e_elem_list="elem 1:10"
dump e_res_ids
dump e_elem_list
dump e_derivation
dump e_location
dump e_cid
#---------------------------------------------------------------------
# Extract the result data for specified nodes
e_return_value = @
res_utl_extract_elem_results @
(e_res_ids, @
e_elem_list, @
e_derivation, @
e_location, @
e_cid, @
e_datatype, @
e_resloc, @
e_nres, @
e_ids, @
e_nresults, @
e_results, @
e_minloc, @
e_maxloc )
dump e_results
错误如下:1号单元(出错),2、3、4(正常),5、6(出错),7、8、9(正常),10、11(出错)……
重启Patran 有时1号可以,但5、6那些还是不行。估计是函数里某个参数赋值错误,(应该是e_ids(VIRTUAL),每次是他首先读不出)。
出错信息如下:
4500003A memory allocation error has occurred. Please check function inputs and call RES_UTL_FREE_RESULTS() before proceeding.
但RES_UTL_FREE_RESULTS()这个函数Patran里根本没有!
我试过不同模型都这样,请问高手如何解决啊?我试了一天都没试出哪的问题! 看到你的贴太有感慨了,我也遇到同样的问题,正在苦苦思索中。。。:dizzy:
页:
[1]