几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » SolidWorks二次开发
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-04-12, 11:01 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】alter arrowhead size

alter arrowhead size
how does one alter the arrowhead size of a dimension (or leader)?
i have tried the following without success...
set annotation = displaydimension.getannotation
displaydimension.setarrowheadstyle2 false, 1, 1 'this works
annotation.setarrowheadsizeatindex 0, false, 10#, 10#, 10# 'this doesnt
i can find no other references to "arrowheadsize" in the help files.
thanks
no one?
beula?
originally posted by: perry leets
no one?
beula?
in lieu of no one piping up here, i'll simply suggest checking with the programming specialist at your var first. of course, if your var doesn't have one of those, bug them to bug solidworks corp for the answer.
matt lorono
solidworks 2007 sp3.1
cad engineer/ecn analyst
yeah, i'll have to ask our corporate people who our var is...
have you tried seeing how many arrow heads there are? how about
for i = 0 to annotation.getarrowheadcount
annotation.setarrowheadsizeatindex 0, false, 10#, 10#, 10#
next i
i would also recommend reading the sizes of a known arrow to make sure what units to use. you may be trying to make the arrow head 10 meters in size, which would not surprise me if it failed.
i'll get you eh steve, if it's the last thing i dooooo!
josh:
originally i had a for-loop which yielded no better results, in fact it wasnt even entered. i found its logic was not right.
i re-coded it as you show and it is entered each time i pass it a dimension.
the loop executes without a hitch, but there is still no discernable change in
arrowhead size.
i did put a check in the loop to find current size and on every iteration it reads zero
for height/width/length.
so i'm still not sure what the heck is going on here. every dimension has an
arrowhead but they seem invisible to the code.
btw, good point you made about original size i had in the one-liner.
i had forgot that sw uses meters internally. a 10 meter arrowhead would
be a bit much. i just wanted to plug in a large value so i could see any
affect.
heres the loop as i have it now...
for i = 0 to annotation.getarrowheadcount
annotation.getarrowheadsizeatindex i, false, length, width, height
annotation.setarrowheadsizeatindex i, false, 0.001, 0.001, 0.001
next i
the 0.001 should give me a 1 millimeter arrowhead, but does nothing
thanks
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
using profile of a surface tolerance on size controls the form better huangyhg tec-ease(America) 2 2007-10-28 04:55 PM


所有的时间均为北京时间。 现在的时间是 06:17 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多