Box command

Discussion in 'AutoCAD' started by kam--mik, Nov 3, 2004.

  1. kam--mik

    kam--mik Guest

    hi all,

    I'm trying to create a 3D Solid from LISP Command, however the result is
    very odd.
    (command "_.BOX" pt1 pt2 500)

    For different viewing angle, or different zooming level, the height of the
    solid will be DIFFERENT! But the fact is that I have already hard code the
    height to be 500.
    What would be the reason?
     
    kam--mik, Nov 3, 2004
    #1
  2. kam--mik

    Douglas Barr Guest

    Are pt1 & pt2 2d points?
     
    Douglas Barr, Nov 3, 2004
    #2
  3. kam--mik

    OLD-CADaver Guest

    Running osnap?
    UCSVP=0?
     
    OLD-CADaver, Nov 3, 2004
    #3
  4. kam--mik

    Kammik Guest

    They are 3D points


     
    Kammik, Nov 3, 2004
    #4
  5. kam--mik

    Kammik Guest

    I have no idea, what are they?
     
    Kammik, Nov 3, 2004
    #5
  6. kam--mik

    OLD-CADaver Guest

    Okay....

    Personal rant follows...

    If you have "feelings" stop reading now...




    This is just my opinion,
    If you don't know how the program works or how to use the commands needed to function, then you have NO business writing lisp, NONE, ZERO, NADA. If you don't know that the BOX command reads the 3D points as the corner of the box and then ignores the 500, you have NO business writing lisp. If you don't know what "running osnap" is you have no business writing lisp. If you don't know that the UCS can be different in different viewports and what controls it, you have no business writing lisp.


    ... personal rant over...
    ... ignore, delete, whatever ....
     
    OLD-CADaver, Nov 3, 2004
    #6
  7. kam--mik

    Douglas Barr Guest

    I only asked because if you input 3d points with different z values, the
    height (500) appears to be ignored, and the two 3d points are used as the
    'far corners' of the box.

    When I ran your code, using a variety of point inputs (2d, 3d, matching z,
    mismatched z) the view of the box was identical 'from all four corners'.

    So I guess I should say I didn't get the same results you did.
     
    Douglas Barr, Nov 3, 2004
    #7
  8. kam--mik

    Douglas Barr Guest

    I take it your otherwise congenial and constructive spirit has been
    destroyed by some other disapointment this morning...?

    to function, then you have NO business writing lisp, NONE, ZERO, NADA. If
    you don't know that the BOX command reads the 3D points as the corner of the
    box and then ignores the 500, you have NO business writing lisp. If you
    don't know what "running osnap" is you have no business writing lisp. If
    you don't know that the UCS can be different in different viewports and what
    controls it, you have no business writing lisp.
     
    Douglas Barr, Nov 3, 2004
    #8
  9. kam--mik

    OLD-CADaver Guest

    <<I take it your otherwise congenial and constructive spirit has been destroyed by some other disapointment this morning...?>>



    <snicker> Yeah, had a new hire last week spend two hours writing a lisp routine to lengthen a line because he didn't know about the LENGTHEN command. He did this AFTER he was told not to write any lisp until cleared by CAD management, AFTER all the company training.. sheesh... go figure.

    Beyond that, I TRIED to embed some constructive information in my rant.

    Besides, that's about as congenial as I've ever been, I mean I warned everyone right? ;-)
     
    OLD-CADaver, Nov 3, 2004
    #9
  10. kam--mik

    Kammik Guest

    Thanks for your opinion, I will go back and test it again tmr.
     
    Kammik, Nov 3, 2004
    #10
  11. kam--mik

    kam--mik Guest

    Hi,

    Finally I defined the pt2 Z values to be the height, and ignore the
    parameter in command.
    Although I'm not sure it's the formal way to do so, it works!

    many thanks.
     
    kam--mik, Nov 4, 2004
    #11
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.