Hello,
I'm trying to set a property of a dynamic block on insertion, stretching a wipeout to match the characters in an attribute. I'm using Lee Mac's LM:setdynpropvalue function which is working perfectly in every other LISP I've used it in, so I must assume I'm sending something wrong to the function.
I've made the parameter a property in the block table, and it works fine when inserted using the insert command (though it doesn't auto-adjust the property in that use).
The relevant code is below, the full code and the block is attached. The error message is {unknown name: "GETDYNAMICBLOCKPROPERTIES" }.
Thanks for any help, I've been going over this for days
Gorra
Solved! Go to Solution.
Solved by Sea-Haven. Go to Solution.
Could you also include the CSV file?
So far I'm not getting that error. Although I also don't see anything inserted.
This is what is shown in the Command sequence
Yes
Vs No:
Maybe remove the while, you set the crntblk to entlast which is block inserted, then change it with entnext. Just me don't need a couple of variable names.
(LM:setdynpropvalue (vlax-ename->vla-object (entlast)) "DISTANCE1" mskwdth )
Blk must be a block reference. The drawing you posted was the block definition. You can't run the program in the block definition drawing. Insert it into another drawing and then run the program in that drawing.
Can't find what you're looking for? Ask the community or share your knowledge.