几何尺寸与公差论坛

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

【转帖】can you build a weld symbol with code

[复制链接]
发表于 2009-4-13 09:31:06 | 显示全部楼层 |阅读模式
can you build a weld symbol with code?
can you build a weld symbol with code?
does anyone have a sample?
thanks
ok, this is what i have so far. it inserts the leader for weld but does not add the proper symbol. it also only adds the text to the top. i need to be able to control top and bottom text and symbols.
any ideas?
thanks
'______________________
option explicit
sub main()
dim swapp as sldworks.sldworks
dim part as modeldoc2
dim swmodel as sldworks.modeldoc2
dim swmodeldoc as sldworks.modeldocextension
dim swdrawdoc as sldworks.drawingdoc
dim retval as variant
dim dim1 as string
dim dim2 as string
set swapp = application.sldworks
set swmodel = swapp.activedoc
set swmodeldoc = swmodel.extension
set swdrawdoc = swmodel
set swapp = createobject("sldworks.application")
set part = swapp.activedoc
dim1 = ".25"
dim2 = ""
'retval = modeldoc2.insertweldsymbol3()
'void drawingdoc.insertweldsymbol(dim1, symbol, dim2, symmetric, fieldweld, showotherside, dashon  
quick
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2024-12-24 03:24 , Processed in 0.035147 second(s), 19 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2023 Discuz! Team.

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