ojacomarket Posted April 11, 2020 Posted April 11, 2020 Dear friends, One question got me in stuck Let's say I have created a selection set (of 8 objects =lines), and named it (setq selset1) Why I cannot join then with below routine: 1. (setq select_similar1 (apply 'command (list "SELECTSIMILAR" selset1 ""))) --------> this one works perfectly and I got highlighted selected 8 lines 2. (command ".join" select_similar1 """) ------> return nil, but lines haven't joined.... Any ideas? Thanks in advance!! Quote
ojacomarket Posted April 11, 2020 Author Posted April 11, 2020 7 minutes ago, Lee Mac said: The command function always returns nil, hence select_similar1 will always be nil; instead, you might want to try: (command "_.join" (ssget "_P") "") Nah, theoretically should but it doesn't. Seems that command JOIN at all can't see this selection set (and other also).. Quote
Jonathan Handojo Posted April 11, 2020 Posted April 11, 2020 Have a look at Lee's Polyline Join program. 1 Quote
ojacomarket Posted April 11, 2020 Author Posted April 11, 2020 (edited) 40 minutes ago, Jonathan Handojo said: Have a look at Lee's Polyline Join program. The only useful part of that code for me is(command "_.pedit" "_m" sel "" "_j" "" "") But it still doesn't work.. Because I already got selection set. I just don't understand why JOIN routine cannot see my selection set.... Thank you for feedback anyway! Edited April 11, 2020 by ojacomarket Quote
ojacomarket Posted April 11, 2020 Author Posted April 11, 2020 20 minutes ago, ojacomarket said: The only useful part of that code for me is(command "_.pedit" "_m" sel "" "_j" "" "") But it still doesn't work.. Because I already got selection set. I just don't understand why JOIN routine cannot see my selection set.... Thank you for feedback anyway! (command "pedit" "m" ssget_112 "" "y" "j" 0 "") This routine works. Thank you everybody for your time!! Quote
Lee Mac Posted April 11, 2020 Posted April 11, 2020 (edited) If you really must use JOIN, try the following approach: (command "_.selectsimilar" selset1 "") (initcommandversion) (command "_.join" (cadr (ssgetfirst)) "") Edited April 11, 2020 by Lee Mac 1 2 Quote
marko_ribar Posted April 11, 2020 Posted April 11, 2020 (edited) Recently I started topic JOIN-BUG at theswamp... I strongly suggest you that you study complete topic... http://www.theswamp.org/index.php?topic=55918.0 Regards, M.R. Edited April 11, 2020 by marko_ribar 1 Quote
ojacomarket Posted April 11, 2020 Author Posted April 11, 2020 1 hour ago, marko_ribar said: Recently I started topic JOIN-BUG at theswamp... I strongly suggest you that you study complete topic... http://www.theswamp.org/index.php?topic=55918.0 Regards, M.R. Thank you very much for the link, I will check this out! Quote
ojacomarket Posted April 11, 2020 Author Posted April 11, 2020 2 hours ago, Lee Mac said: If you really must use JOIN, try the following approach: (command "_.selectsimilar" selset1 "") (initcommandversion) (command "_.join" (cadr (ssgetfirst)) "") Thank you very much for, this one works perfectly ! Quote
BIGAL Posted April 12, 2020 Posted April 12, 2020 Maybe an alternative Layiso then join select lines etc Layuniso. Quote
dfesf Posted May 13 Posted May 13 @Lee Mac, I just created a count to thank u, u help me a lot. Luv u jksajakjs 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.