-
-
July 13, 2023 at 3:17 amHong YiyuSubscriber
代码如下所示:
# set material and z span for all structures
selectall; # 选中当前群组范围内所有实体对象
set("material",material);
if(get("material")=="
{ set("index",index); }
# 从当前选择的实体对象(即结构组)获取所需的属性值
set("z",0);
set("z span",1e-6);
运行后报错,我这里前面代码没有定义变量material,但是我要是想定义材料为object defined material,该怎么定义呢
在这段代码中这句话set("material",material);我想设置为,但在运行代码后报错,请问该如何设置呢
-
July 13, 2023 at 10:02 pmGuilin SunAnsys Employee
这段脚本需要两个变量:
material
-
Viewing 1 reply thread
- The topic ‘关于script设定材料的问题’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
1416
-
599
-
591
-
565
-
366
Top Rated Tags
© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.