Hi all
I'm struggling around with a programmatic control of MLEADERSTYLES.
One point in my function, setting the ArrowSymbol property, is exasperating.
I know there is a bug in the Vlisp API for donkey's years, but I'm searching a way for a workaround.
As we know, vla-get-ArrowSymbol returns an empty string "" in case of 'Closed filled' symbol.
Using vla-put-ArrowSymbol with a "" or "." argument returns an 'Automation Error. Key not found'.
It seems that I have no possibility to set the ArrowSymbol on this way.
Then I've checked the entity list of the MLeaderStyle object and found a 341 reference to the arrow block entity.
In case of 'Closed filled', the 341 code contains an <Entity name: 0>.
To cut a long story short:
Is there a way to create an <Entity name: 0>?
Because this steps are working:
- Command MleaderStyle to choose arrow symbol 'Closed filled'
- Then get the 341 data from the entity list into a variable (cdr (assoc...
- Command MleaderStyle to choose another arrow symbol
- Modify the entity list back by variable (subst..., entmod...)
- Ta-dah!, the 'Closed filled' symbol will be set
Thank you
Cheers