Jump to content

Recommended Posts

Posted

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!!

Posted
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)..

Posted (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 by ojacomarket
Posted
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!!

Posted (edited)

If you really must use JOIN, try the following approach:

(command "_.selectsimilar" selset1 "")
(initcommandversion)
(command "_.join" (cadr (ssgetfirst)) "")

 

Edited by Lee Mac
  • Like 1
  • Thanks 2
Posted
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 ! :D

Posted

Maybe an alternative Layiso then join select lines etc Layuniso.

  • 4 years later...
Posted

@Lee Mac, I just created a count to thank u, u help me a lot. Luv u jksajakjs

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...