ojacomarket Posted April 11, 2020 Share 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 Link to comment Share on other sites More sharing options...
ojacomarket Posted April 11, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Jonathan Handojo Posted April 11, 2020 Share Posted April 11, 2020 Have a look at Lee's Polyline Join program. 1 Quote Link to comment Share on other sites More sharing options...
ojacomarket Posted April 11, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
ojacomarket Posted April 11, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
Lee Mac Posted April 11, 2020 Share 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 Link to comment Share on other sites More sharing options...
marko_ribar Posted April 11, 2020 Share 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 Link to comment Share on other sites More sharing options...
ojacomarket Posted April 11, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
ojacomarket Posted April 11, 2020 Author Share 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 Link to comment Share on other sites More sharing options...
BIGAL Posted April 12, 2020 Share Posted April 12, 2020 Maybe an alternative Layiso then join select lines etc Layuniso. Quote Link to comment Share on other sites More sharing options...
dfesf Posted May 13 Share Posted May 13 @Lee Mac, I just created a count to thank u, u help me a lot. Luv u jksajakjs 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.