I can't find an answer to this anywhere. There is a similar problem in .NET and there is an answer to that in the comments by Greg at http://through-the-interface.typepad.com/through_the_interface/2007/01/creating_an_aut.html
with
ld.Dimldrblk = ObjectId.Null;
But, for VLisp...?
Tried setting ArrowSymbol to the above plus:
.
"closed filled"
nil
null
:vlax-null
What's the magic word here?
I want to fix any standard mleader styles in the drawing to company standards in case they were tampered with.
If there is no answer, then I guess I will have to make a custom block that looks like the default "closed filled" one and use that instead.
try, and tell me what's the result, for me have the desired result
(defun c:test (/ obj) (vl-load-com) (setq obj (vlax-ename->vla-object (car (entsel "\nSelect arrow to change to closed filled: ")) ) ) (vla-put-arrowheadtype obj 0) (vla-update obj) (princ) )
Henrique
That puts an override on that 1 instance of a mleader but does not change the mleader style. I want to change the style so all mleaders of that style update plus any new mleaders of that style get the closed filled arrow.
That's what I get. vlax-get-property returns "" so you would think you could just use "" with vlax-put-property, but nooooo! (said in John Belushi voice). 3 people getting the same thing... must be a bug.
kudzuman wrote:
That's what I get. vlax-get-property returns "" so you would think you could just use "" with vlax-put-property, but nooooo! (said in John Belushi voice). 3 people getting the same thing... must be a bug.
kudzuman,
I kept trying to find a solution to this problem, with some friends and in other forums, and the feedback was always the same,
"the arrowsymbol property, must take the value of a block defined in the drawing"
Iif you set the arrowsymbol to another different symbol it will become automatically defined as block in the drawing, but with the Closed Filled, it does not...
So, the work around is, create a block similar to Closed Filled and set the arrowsymbol to the new block...
hope that helps
Henrique
Thanks for looking into this Henrique. That is the same answer I keep coming to.
However I still think it is a bug or design flaw that you cannot set via vlisp the mleader ArrowSymbol property to a valid value ("" or null) that is available through the regular AutoCAD interface. Do you have to be an ADN member to submit problems with vlisp? If so, can someone submit this for me since I am not an ADN member?