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

[PCL] 求助!!!关于利用for循环建模问题

[复制链接]
发表于 2012-8-17 15:43:15 | 显示全部楼层 |阅读模式 来自 天津
最近因为项目需要正在用PCL建模,然后用ABAQUS进行计算。可是在建模过程中遇到了问题,急切希望各位高手相助!!!出现问题的PCL代码如下:我想在(0 0 0)点处建立10个同心圆,第n个同心圆的半径为n

global integer n
for (n=1 to 10)
STRING sgm_create_curve_2d_created_ids[VIRTUAL]
sgm_const_curve_2d_circle_v2( "`n`", 1, `n`, "Coord 0.3", "", "[0 0 0]", FALSE,  @
sgm_create_curve_2d_created_ids )
end for
运行之后出现错误,.SES文件的错误提示如下:
global integer n
for (n=1 to 10)
STRING sgm_create_curve_2d_created_ids[VIRTUAL]
sgm_const_curve_2d_circle_v2( "`n`", 1, `n`, "Coord 0.3", "", "[0 0 0]",  @
FALSE,  sgm_create_curve_2d_created_ids )
$# (PCL) Missing operand to expression
$# Line is "sgm_const_curve_2d_circle_v2( "`n`", 1, `n`, "Coord 0.3", "", "[0
$# 0 0]", FALSE,  sgm_create_curve_2d"
$# Character is "`"
$# (PCL) Missing right parenthesis
$# Line is "sgm_const_curve_2d_circle_v2( "`n`", 1, `n`, "Coord 0.3", "", "[0
$# 0 0]", false,  sgm_create_curve_2d"
$# Extra information:  sgm_const_curve_2d_circle_v2
end for
这个问题已经困扰了我好几天了,希望各位高手相助,谢谢大家!




发表于 2012-8-18 10:39:05 | 显示全部楼层 来自 江苏无锡
Simdroid开发平台
sgm_const_curve_2d_circle_v2( "`n`", 1, `n`, "Coord 0.3", "", "[0 0 0]", FALSE,  @

sgm_create_curve_2d_created_ids )
语法不对
回复 不支持

使用道具 举报

发表于 2012-8-20 00:16:23 | 显示全部楼层 来自 上海浦东新区
满满的错误……
回复 不支持

使用道具 举报

发表于 2013-10-11 16:31:22 | 显示全部楼层 来自 北京
我也有一样的问题,不知楼主怎么解决的,我知道,是变量·n·那里出错了,我的改成常量就对了,可是变量不就是那样用的吗?
回复 不支持

使用道具 举报

发表于 2013-10-22 21:59:20 | 显示全部楼层 来自 上海
n是整数,语法里面是不是要字符串?    需要转化下,str——from——integer
回复 不支持

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-5-15 02:03 , Processed in 0.031648 second(s), 11 queries , Gzip On, MemCache On.

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

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