几何尺寸与公差论坛

 找回密码
 注册
查看: 721|回复: 0

【转帖】error 91 in swdim.fullname

[复制链接]
发表于 2009-4-12 20:51:15 | 显示全部楼层 |阅读模式
error 91 in swdim.fullname
hi!
i have created an assembly and i want to have in c the name of the dimension mark. i have these equations in the equation manager:
"d3@matrizl 7140070" = 256
"d1@matrizl 7140070" = 300
"d3@matrizl6117008" = 180
"d1@matrizl6117008" = 203
but in the 4st equation, when b="d1@matrizl6117008" i have an error 91 in line c = swdim.fullname because swdim=nothing. why i have an error only in this dimension mark?
thank you very much!
my code:
sub mates(model as sldworks.modeldoc2)
dim sweqnmgr as sldworks.equationmgr
dim swdim as sldworks.dimension
set sweqnmgr = model.getequationmgr
dim ncount as integer, i as integer, ipos as integer
dim a as string, b as string, c as string
ncount = sweqnmgr.getcount
for i = 0 to ncount - 1
a = sweqnmgr.equation(i)
ipos = instr(1, a, "=")
b = left(a, ipos - 2)
set swdim = model.parameter(b)
' when b="<A href="mailto:d1@matrizl6117008"-->swdim">d1@matrizl6117008"-->swdim =nothing-->error 91
c = swdim.fullname'error 91
next i
end sub
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|小黑屋|几何尺寸与公差论坛

GMT+8, 2024-12-23 05:50 , Processed in 0.035082 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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