WCS2OCS

Discussion in 'AutoCAD' started by John Uhden, Aug 3, 2003.

  1. John Uhden

    John Uhden Guest

    WCS2OCS.LSP has been posted in
    news://discussion.autodesk.com/autodesk.autocad.customer-files
     
    John Uhden, Aug 3, 2003
    #1
  2. John Uhden

    Devin Guest

    It appears at first glance to be a much different approach in method. But
    it seemed, without getting too deep into it, to use the same math methods?
    Is that correct?

    Devin
     
    Devin, Aug 4, 2003
    #2
  3. John Uhden

    Joe Burke Guest

    Thanks, John.

    One question, in your comments:

    ;; Function to transform a point from either:
    ;; the MCS of an entity selected by (nentsel), or
    ;; the OCS of an entity selected by (nentselp)

    I thought MCS and OCS are the same thing. That MCS is the previous term for
    OCS. Or am I missing something here?

    Joe Burke
     
    Joe Burke, Aug 4, 2003
    #3
  4. John Uhden

    John Uhden Guest

    It's exactly the same except for the way of passing arguments. I basically just
    skipped all Larry's (nth) functions and got to the point, plus a few other
    shortcuts.
     
    John Uhden, Aug 5, 2003
    #4
  5. John Uhden

    John Uhden Guest

    BTW, Devin (you naughty boy for responding in CF!) I want the function names to
    be kept as is because...

    1. We don't want to run into the "whose function is that anyway?" scenario.
    2. We actually might understand each other when referring to them and the
    problems that may arise in using them.
    3. Just because. :)
     
    John Uhden, Aug 5, 2003
    #5
  6. John Uhden

    Joe Burke Guest

    John,

    No big deal as long as the group agrees the two acronyms are functionally
    the same.

    I plugged your revised stuff into my AngleBetween function. Works fine. If
    you recall, that was the function which prompted my thread a few months ago
    about WCS to OCS.

    I had to change a couple intances where I had renamed your @PTrans function
    to @OCS2WCS. I'm sorry about posting the renamed version recently. I
    understand why I shouldn't have done that. I'm back in line now. I guess you
    know renaming just seemed symmetrical.

    Thanks again
    Joe Burke
     
    Joe Burke, Aug 5, 2003
    #6
  7. John Uhden

    John Uhden Guest

    You're fine, Joe. But, come to think of it, your renaming of the @PTrans
    function probably subliminally reinforced my opinion about renaming. Who knows
    what matrix will be thrown at the function? It just transforms whatever you
    feed it, thus the generic name.

    Of course I still have this annoying problem with the fact that the (xentselx)
    functions return the pick point without any meaningful Z value. I've complained
    about this before. Suppose you want to pick a segment of a 3DPolyline (nested
    or not). An (osnap pt "_quick,_near") might find a point on another nearby
    object. A (vlax-curve-getclosestpointto) might find a different segment because
    the distance is affected by the Z values. But I guess that should be in a
    different thread.
     
    John Uhden, Aug 5, 2003
    #7
  8. John Uhden

    Devin Guest

    I take it you're not supposed to respond in CF's?

    Devin
     
    Devin, Aug 5, 2003
    #8
  9. John Uhden

    John Uhden Guest

    Very good, Devin! Just watch out; 'cause after 3 responses there, Anne will
    send a diseased moose to leave unmentionables in your mukluks. :]
     
    John Uhden, Aug 6, 2003
    #9
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...