LISP won't recognize 'getdynamicblockproperties

LISP won't recognize 'getdynamicblockproperties

Gorra
Advocate Advocate
850 Views
4 Replies
Message 1 of 5

LISP won't recognize 'getdynamicblockproperties

Gorra
Advocate
Advocate

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" }. 

 

GDPV.png

Thanks for any help, I've been going over this for days

 

Gorra

0 Likes
Accepted solutions (1)
851 Views
4 Replies
Replies (4)
Message 2 of 5

paullimapa
Mentor
Mentor

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

paullimapa_0-1719967912266.png

Yes

paullimapa_1-1719967973795.png

Vs No:

paullimapa_2-1719968022339.png

 

 

 

 


Paul Li
IT Specialist
@The Office
Apps & Publications | Video Demos
0 Likes
Message 3 of 5

Sea-Haven
Mentor
Mentor
Accepted solution

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 )

 

0 Likes
Message 4 of 5

dbroad
Mentor
Mentor

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.

Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 5 of 5

Gorra
Advocate
Advocate

@Sea-Haven Thanks, that worked. 

0 Likes