Jonathan Handojo Posted April 2, 2020 Share Posted April 2, 2020 3 minutes ago, CAD_Noob said: That did it! thanks a lot!! working fine. one more question, any way to sort the value alphanumeric? Where DXXX comes first then RXXX? or i can do that in the table? I cannot find a way to do that in the table itself. Find the line below in previous code: (repeat (length dets) And replace that line with: (repeat (length (setq dets (vl-sort dets '(lambda (x y) (< (car x) (car y)))))) 1 Quote Link to comment Share on other sites More sharing options...
CAD_Noob Posted April 2, 2020 Author Share Posted April 2, 2020 7 minutes ago, Jonathan Handojo said: Find the line below in previous code: (repeat (length dets) And replace that line with: (repeat (length (setq dets (vl-sort dets '(lambda (x y) (< (car x) (car y)))))) thank you so much!! working flawlessly now. Quote Link to comment Share on other sites More sharing options...
saran Posted March 9, 2021 Share Posted March 9, 2021 (edited) its not working for my block, i even changed attributes name in lsp file, can any one help me out Test.dwg Edited March 9, 2021 by saran Quote Link to comment Share on other sites More sharing options...
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.