![]() |
【转帖】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 |
所有的时间均为北京时间。 现在的时间是 03:06 PM. |