stephen4444
Usenet Archive
- Joined
- Aug 8, 2003
- Messages
- 31
- Reaction score
- 0
(command "LINE" P1 P2 "")(setq MV1 (ENTLAST))
(command "LINE" P3 P4 "")(setq MV2 (ENTLAST))
(command "LINE" P5 P6 "")(setq MV3 (ENTLAST))
(if (= MV1 nil)(null MV1))
(if (= MV2 nil)(null MV2))
(if (= MV3 nil)(null MV3))
(if (/= nil)(command "MOVE" MV1 "" P1 P7))
(if (/= nil)(command "MOVE" MV2 "" P3 P7))
(if (/= nil)(command "MOVE" MV3 "" P5 P7))
What I am trying to do is:
If a line is drawn from P1 to P2 then move MV1 from P1 to P7. If a line is NOT drawn from P1 to P2 then DONT move MV1 from P1 to P7. (same for MV2 & MV3)
But the problem I am having is:
After I run the command like line from P1 to P2 it moves fine to MV1. Then if I run the command again like line from P3 to P4 it moves to MV2, but entity MV1 move again!
Even though MV1, MV2, & MV3 entities are defined,
how can I only move MV2 but not the others? or undefine entities MV1 & MV3? or rewrites so it does the same thing.
Hope I'm making sense.
TIA
(command "LINE" P3 P4 "")(setq MV2 (ENTLAST))
(command "LINE" P5 P6 "")(setq MV3 (ENTLAST))
(if (= MV1 nil)(null MV1))
(if (= MV2 nil)(null MV2))
(if (= MV3 nil)(null MV3))
(if (/= nil)(command "MOVE" MV1 "" P1 P7))
(if (/= nil)(command "MOVE" MV2 "" P3 P7))
(if (/= nil)(command "MOVE" MV3 "" P5 P7))
What I am trying to do is:
If a line is drawn from P1 to P2 then move MV1 from P1 to P7. If a line is NOT drawn from P1 to P2 then DONT move MV1 from P1 to P7. (same for MV2 & MV3)
But the problem I am having is:
After I run the command like line from P1 to P2 it moves fine to MV1. Then if I run the command again like line from P3 to P4 it moves to MV2, but entity MV1 move again!
Even though MV1, MV2, & MV3 entities are defined,
how can I only move MV2 but not the others? or undefine entities MV1 & MV3? or rewrites so it does the same thing.
Hope I'm making sense.
TIA