WPerciful Posted December 10, 2015 Posted December 10, 2015 I tested the code below by selecting one type of block, but instead of returning the name it returned *U36 (cdr (assoc 2 (entget (car (entsel "\nSelect a buble: "))))) Quote
Tharwat Posted December 10, 2015 Posted December 10, 2015 That because the selected block is dynamic . Read about the function vla-get-effectivename Quote
WPerciful Posted December 10, 2015 Author Posted December 10, 2015 Is there a way to get the block name using autolisp and not vlisp? Quote
Tharwat Posted December 10, 2015 Posted December 10, 2015 Yes there is one written by Lee , visit his site and you should find it there. Quote
Lee Mac Posted December 10, 2015 Posted December 10, 2015 @WPerciful, See my Effective Block Name page. @Tharwat, Thank you for the recommendation. Quote
WPerciful Posted December 11, 2015 Author Posted December 11, 2015 Tharwat I googled vla-get-effectivename which lead me to Lee's website where he has his Effective Block Name. Thank you Tharwat & thank you Lee! Lee it works GREAT!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.