Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LISP won't recognize 'getdynamicblockproperties

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
Gorra
286 Views, 4 Replies

LISP won't recognize 'getdynamicblockproperties

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

4 REPLIES 4
Message 2 of 5
paullimapa
in reply to: Gorra

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
Message 3 of 5
Sea-Haven
in reply to: Gorra

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 )

 

Message 4 of 5
dbroad
in reply to: Gorra

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.
Message 5 of 5
Gorra
in reply to: Sea-Haven

@Sea-Haven Thanks, that worked. 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Forma Design Contest


Autodesk Design & Make Report