Author Topic: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?  (Read 4778 times)

0 Members and 1 Guest are viewing this topic.

hunterxyz

  • Guest
How obtains "JOIN" the order, returns to "T" OR "NIL" the value?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #1 on: March 02, 2007, 07:24:56 PM »
Sorry, try as I might, I can't understand the question.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #2 on: March 03, 2007, 09:58:59 AM »
You're not alone.
Looked at this 3 different times & don't have a clue. :?

Welcome to the swamp hunterxyz.
Please try again with your question.
« Last Edit: March 03, 2007, 10:00:37 AM by CAB »
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Crank

  • Water Moccasin
  • Posts: 1503
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #3 on: March 03, 2007, 11:18:07 AM »
I think hunterxyz wants T as a result when the join command was succesfull and nil when it failed.
Vault Professional 2023     +     AEC Collection

hunterxyz

  • Guest
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #4 on: March 03, 2007, 08:22:58 PM »

TYPE1:
JOIN EN1 AND EN2 TO EN1
_$ T OR _$ nil
JOIN EN1 AND EN3 TO EN3
_$ T OR _$ nil

TYPE2:
JOIN EN1 AND EN3
_$ T OR _$ nil
JOIN EN3 AND EN2
_$ T OR _$ nil

Result Why is same?
How can judge is different?

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #5 on: March 03, 2007, 09:33:06 PM »
show me the code you are using.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #6 on: March 03, 2007, 09:37:05 PM »
hunterxyz,

Sorry, I can't understand what you are saying
Why so many different EN1's and EN2's and EN3's ?
What is ENA and ENB ?
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

hunterxyz

  • Guest
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #7 on: March 03, 2007, 10:48:55 PM »

(setq ENA (CAR (ENTSEL "\n SELECT OBJECT A:")))
(setq ENB (CAR (ENTSEL "\n SELECT OBJECT B:")))
(vl-cmdf ".JOIN" ENA ENB "")

_$ T
_$ T

(setq ENA (CAR (ENTSEL "\n SELECT OBJECT A:")))
(setq ENB (CAR (ENTSEL "\n SELECT OBJECT B:")))
(COMMAND ".JOIN" ENA ENB "")

_$ nil
_$ nil

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #8 on: March 03, 2007, 11:01:37 PM »
That is the difference between using
(vl-cmdf
and
(COMMAND

... which is a different question to your original post and different to the Picture you posted.
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

JohnK

  • Administrator
  • Seagull
  • Posts: 10653
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #9 on: March 03, 2007, 11:04:15 PM »
vl-cmdf returns T if the command executes successfully.
command always returns nil

EDIT: Kerry beat me to it.
TheSwamp.org (serving the CAD community since 2003)
Member location map - Add yourself

Donate to TheSwamp.org

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #10 on: March 03, 2007, 11:05:37 PM »
Have a look ..
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

hunterxyz

  • Guest
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #11 on: March 03, 2007, 11:25:04 PM »
Therefore, "vl-cmdf" and "command" returns,Forever is this value.
Is unable to judge "JOIN" whether succeeds.
Is this?

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #12 on: March 03, 2007, 11:44:41 PM »
Code: [Select]
(defun c:test()
  (setq ENA (CAR (ENTSEL "\n SELECT OBJECT A:")))
  (setq ENB (CAR (ENTSEL "\n SELECT OBJECT B:")))
  (vl-cmdf ".JOIN" ENA ENB "")
  (not(and (entget ena) (entget enb)))
)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #13 on: March 03, 2007, 11:51:08 PM »
Code: [Select]
(NOT (AND (ENTGET ena) (ENTGET enb)))
yep, was just posting that CAB

kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

hunterxyz

  • Guest
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #14 on: March 04, 2007, 03:34:16 AM »
Thank you the reply

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #15 on: March 04, 2007, 08:03:36 AM »
yep, was just posting that CAB

Was on my was to bed.. :-)
Woke up with this one.
Code: [Select]
(not(vl-every 'entget (list ena enb)))
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Kerry

  • Mesozoic relic
  • Seagull
  • Posts: 11654
  • class keyThumper<T>:ILazy<T>
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #16 on: March 05, 2007, 05:27:51 AM »
nice Alan .. that answers the next question...

A :
Code: [Select]
(not(vl-every 'entget (list enA enB enC)));;or
Code: [Select]
(not(vl-every 'entget (ss->List ss)))
Q :
Quote
How do I test for more than 2 Lines selected ?
kdub, kdub_nz in other timelines.
Perfection is not optional.
Everything will work just as you expect it to, unless your expectations are incorrect.
Discipline: None at all.

CAB

  • Global Moderator
  • Seagull
  • Posts: 10401
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #17 on: March 05, 2007, 07:49:23 AM »
And to complete the requirement: :-)

Code: [Select]
(defun ss->List (ss)
  (vl-remove-if 'listp (mapcar 'cadr (ssnamex ss)))
)
I've reached the age where the happy hour is a nap. (°¿°)
Windows 10 core i7 4790k 4Ghz 32GB GTX 970
Please support this web site.

Didge

  • Bull Frog
  • Posts: 211
Re: How obtains "JOIN" the order, returns to "T" OR "NIL" the value?
« Reply #18 on: March 08, 2007, 09:37:02 AM »
Sorry for hijacking your thread Hunterxyz, I just had a quick question for these guys relating to "vl-cmdf "

Can this function be used with an active DCL box on-screen, or does it cause probs in a similar manner to "Command" ?
Think Slow......