This is new ground for me, so bear with me a bit...
A recent thread involved modifying dynamic block properties, and so I thought I'd finally give it a shot at learning how to do it.
I've done a search on here, but, although I have found methods, and threads relating to it, I still have an outstanding query.
Say I am trying to enter a Dynamic Block Property after insertion, knowing its Property Name.
I am currently using methods along these lines:
(foreach Prop (vlax-invoke obj 'GetDynamicBlockProperties)
(if (eq <PropName> (vla-get-PropertyName Prop))
(vla-put-value Prop
(vlax-make-variant <New Value>
(vlax-variant-type
(vla-get-value Prop))))))
And have also tried:
(foreach Prop (vlax-invoke obj 'GetDynamicBlockProperties)
(if (eq <PropName> (vla-get-PropertyName Prop))
(vlax-put-property Prop 'Value <New Value>)))
But, when entering some values, (namely zero), I get: ** Automation Error: Invalid Input **
Could this be due to the Dynamic Block that I am using? Or the method I am using to enter the value?
Once again, I stress - I have never used Dynamic Blocks before, and don't even know how to make them, and so I can only test on blocks that I find in threads...
Any advice is appreciated.
Lee