Author Topic: The 3 source points are collinear.  (Read 2369 times)

0 Members and 1 Guest are viewing this topic.

DaveW

  • Guest
The 3 source points are collinear.
« on: June 14, 2006, 10:44:24 PM »
Hey All,

I am using sendcommand to align some objects. One of the objects in the selectionset is a 3Dsolid, so I have no choice.

I was given the error, "The 3 source points are collinear."

This is that was sent to ACAD:

Specify first source point: -10.3688159,-30.95757643,34.08858268
Specify first destination point: 0,0,0
Specify second source point: -10.3688159,-30.95757643,81.91141732
Specify second destination point: 1000,0,0
Specify third source point or <continue>: -10.56566629,-30.95757643,81.91141732
The 3 source points are collinear.


If you draw a line.....
Starting at the first specified source point, "10.3688159,-30.95757643,34.08858268"
Then the second specified source point, "-10.3688159,-30.95757643,81.91141732"
Then the third specified source point, "-10.56566629,-30.95757643,81.91141732"

you will get an inverted "L" in modelspace.

Clearly, this is not a straight line and if you try to use those 3 points to align it, ACAD will give you the error the 3 source points are collinear.

Am I missing something or is this an outright bug in ACAD?

Your help is apppreciated, as always,


Thanks,

Dave


MickD

  • King Gator
  • Posts: 3520
  • (x-in)->[process]->(y-out)
Re: The 3 source points are collinear.
« Reply #1 on: June 15, 2006, 02:18:23 AM »
Assuming that you are using the align command, if you have 3 points of the part to align to and 3 points of the part you want to align to it you could perhaps create a matrix from either set and transform the part to align to the other.
Do you think this can work for you? If so let us know and I'll give you a hand where I can.
Forth is like the Tao: it is a Way, and is realized when followed.
Its fragility is its strength; its simplicity is its direction - Michael Ham

"The E in Javascript stands for 'easy'." — Florin Pop tweet

DaveW

  • Guest
Re: The 3 source points are collinear.
« Reply #2 on: June 15, 2006, 09:01:19 AM »
Hey Mick,

That may work. I am interested. I am not sure I may just find a work-around and use that, but either way that matrix stuff scares me. So best to jump in I guess and know the correct way. I appreciate the offer and I am looking forward to it.

Did you create the two lines from the points above and try to aligin them?


Thanks,

Dave
« Last Edit: June 15, 2006, 09:54:26 AM by DaveW »

DaveW

  • Guest
Re: The 3 source points are collinear.
« Reply #3 on: June 15, 2006, 09:47:02 AM »
FTI to Everyone,

After quite a bit of trial an error I think I understand where the bug pops up.

It seems to be a ratio.

If the difference between the first source point and the second source point is:

223.61 times larger or more than the distance between the second source point and the third source point, it will fail with the bug.


223.6 times smaller or less than the distance between the second source point and the third source point, it will work.

The exact number is somewhere in between  223.6 and 223.61 to 1 ratio.

Go figure....
« Last Edit: June 15, 2006, 09:55:00 AM by DaveW »