3dAlign

Discussion in 'AutoCAD' started by ferruccio levi, Oct 12, 2004.

  1. I've a routine to align a 3Dobject, defined by the points P1, P2, P3, with
    another 3Dobject defined by P4, P5, P6, so that P1 goes in P4, P2 in P5, P3,
    in P6.



    Normally the routine works; nevertheless, if the segment P1-P2 is parallel
    to P4-P5, and in opposite direction, P1 goes in P4 but P2 goes in the
    symmetric position of P5 with respect to P4-P6.



    The only way I've found to solve the problem is to check in advance whether
    the segments are parallel, and in this case apply a preliminary "funny"
    rotation to the first object; but it seams to me very strange: really there
    is not a different way ?



    Thanks in advance.



    Ferruccio Levi
     
    ferruccio levi, Oct 12, 2004
    #1

  2. Why you don't use the built in ALIGN command?

    Juergen
     
    Jürgen Palme, Oct 12, 2004
    #2
  3. But it is the ALIGN command which works in this way !
    I call this command in a script file.

    Ferruccio Levi
     
    ferruccio levi, Oct 13, 2004
    #3
  4. Do you see this strange behavior also if you use the align command from the
    command line? If so, can you send me an example drawing? (delete all
    capitals in my eMail adress)

    Juergen
     
    Jürgen Palme, Oct 13, 2004
    #4
  5. It is only a matter of names:.in my message I've defined the first object
    with P1, P2, P3 instead of P1, P3, P5 as in AUTOCAD, but this is not
    essential.

    Ferruccio Levi
     
    ferruccio levi, Oct 14, 2004
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
There are no similar threads yet.
Loading...