TuFoFi Posted August 15, 2010 Posted August 15, 2010 Hello, This will be simple for one of the regular pros. I have this one line of code. setq ss (ssget '((0 . "INSERT")(66 . 1))) Works perfect for creating a selection set of blocks with attributes. I want it to include all NESTED blocks with attributes as well. I thought the ":V" parameter would work, but I am struggling with the syntax. It may even require a recursive routine. Your expertise would really help. Thank you. Quote
Tharwat Posted August 15, 2010 Posted August 15, 2010 Code: (sssetfirst nil(ssget "_x" '((0 . "INSERT")(66 . 1)))) Try the following code to get the DXf for Block Attributes and upload them here to check them out . Code: (setq ss (car(entget(entsel)))) Regards, Tharwat Quote
Tharwat Posted August 15, 2010 Posted August 15, 2010 Check this link to see the similarity of codes . http://www.cadtutor.net/forum/showthread.php?48702-Find-nested-blocks&highlight=select+nested+block Regards, Tharwat Quote
Lee Mac Posted August 16, 2010 Posted August 16, 2010 Not as simple as you may think, - actually very difficult. ssget has no robust functionality for selecting nested items, there are such modes as ":N" but these are highly temperamental indeed. If I remember Tim Wiley attempted to write an alternative to ssget for nested items, but the selection process would be hundreds of lines of code in itself... Lee 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.