Dims & UCS

Discussion in 'AutoCAD' started by Mark Ingram, Oct 14, 2004.

  1. Mark Ingram

    Mark Ingram Guest

    Hello,

    Using lisp, is there a way to update all the dims in a known selection set
    to the current UCS?

    Dims were created in World. I want to apply a 'ucs fix' to some dims when
    the ucs gets changed.

    Thank you,
    Mark
     
    Mark Ingram, Oct 14, 2004
    #1
  2. Mark Ingram

    Joe Burke Guest

    Mark,

    I guess there's been no replies to your question so far because the issue isn't
    clear. Maybe post a file to CF which demonstrates the problem.

    In fact, I think I know what you are talking about. I have a program by Herman
    Mayfarth which might help. But I can't know for sure until I test it with an example
    file.

    Joe Burke
     
    Joe Burke, Oct 18, 2004
    #2
  3. Mark Ingram

    Mark Ingram Guest

    Hi Joe,

    Basically, I'm in a known, named UCS. I'm copying dimensions from WCS to
    current UCS. I need to update the dim to the current UCS. I tried using a
    selection set, created in WCS, the copying while in UCS, no luck. A simple
    cut while in WCS, then paste in UCS produces desired results, so I know what
    I'm trying to is possible.

    Any suggestions?
    Thanks,
    Mark
     
    Mark Ingram, Oct 18, 2004
    #3
  4. Mark Ingram

    Joe Burke Guest

    Hi Mark,

    Sorry, I'm thick. I still don't understand what the issue is.

    Am I right in thinking there's two drawings involved and you want to copy/paste
    dimensions between drawings? If so, please describe what the problem is when it
    doesn't do what you want.

    Joe Burke
     
    Joe Burke, Oct 19, 2004
    #4
  5. Mark Ingram

    James Allen Guest

    Hi Mark, I had missed this thread. Is this the same kind of ucs we were
    talking about in the other thread? I.e. only moved and/or rotated? If so
    then all you should need is the origin point (base) and rotation angle (rot)
    of the ucs. Then move and rotate the selection using those values. Just
    remember if you move it first to rotate around (base), not '(0 0 0).
     
    James Allen, Oct 19, 2004
    #5
  6. Mark Ingram

    Mark Ingram Guest

    Just trying to copy in the same drawing, from WCS to UCS.

    Thanks,
    Mark
     
    Mark Ingram, Oct 20, 2004
    #6
  7. Mark Ingram

    Mark Ingram Guest

    Hi James,

    Sorry for the long delay - buried here. Similar situation, but UCS is
    rotated around Y, so everything is opposite hand. I need to be able to
    somehow update the dimensions. Per my last post, cut-n-paste works, but a
    selection set copy doesn't (text is backwards).

    Thanks for the help,
    Mark
     
    Mark Ingram, Oct 20, 2004
    #7
  8. Mark Ingram

    James Allen Guest

    No problem on delay. I'm typically pretty slow myself. As Joe already
    mentioned, posting a sample file would help tremendously. Specifically, if
    you would show us what it looks like when it works and what it looks like
    when it doesn't work, that would be great.

    Just taking another stab though, if the *only* problem is backward text,
    have you already checked your mirrtext variable? I doubt that will be it,
    but you never know.

    Well, okay. Stab #2. Again, if everything looks right but text, try just
    changing the normal property to (0 0 1). If it is mirrored, you will notice
    a normal more like (0 0 -1). Things can still get mirrored when you're
    playing with ucs's regardless of the mirrtext setting.

    (vla-put-normal (vlax-ename->vla-object (car (entsel))) (vlax-3d-point '(0 0
    1)))

    James


    in message news:4175b751_2@newsprd01...
     
    James Allen, Oct 20, 2004
    #8
  9. Mark Ingram

    Joe Burke Guest

    James,

    Agreed, we need an example file of at least the dimtext wrong condition.

    Mark,

    Please try put yourself in our shoes while explaining what the problem is. Your
    fourth post finally mentioned, as an aside, the issue at hand... (text is backwards).

    The program I mentioned by Herman deals with that sort of thing. I can't know if it
    will help you without as example file to test against.

    It's useful for me under these circumstances. Select a bunch of objects in a rotated
    UCS, some of which are dimensions. Then copy with base point. Rotate the UCS about
    the Z axis to some other angle. Paste. What often happens is some of the dimension
    text will jump below the dimension line. Or the angle of dimtext may be 180 degrees
    opposite of what it would be if I drew a new dimension.

    Herman's program fixes these problems.

    Joe Burke
     
    Joe Burke, Oct 20, 2004
    #9
  10. Mark Ingram

    Joe Burke Guest

    Mark and Holly,

    That's the program by Herman I mentioned. Hope it does the trick.

    Joe Burke
     
    Joe Burke, Oct 20, 2004
    #10
  11. Mark Ingram

    Mark Ingram Guest

    That was it! What can I say, thank you so much. In this case I needed '(0
    0 -1), but can solve that on the fly.

    Thanks James,
    Mark
     
    Mark Ingram, Oct 20, 2004
    #11
  12. Mark Ingram

    Mark Ingram Guest

    Thanks Holly. The code you posted was a flip OVER the dimension line. James
    post was it. I will stash your attachment, I'm sure I will be needing it.
    :)

    Thanks,
    Mark
     
    Mark Ingram, Oct 20, 2004
    #12
  13. Mark Ingram

    Mark Ingram Guest

    Thanks Joe, I should have posted a drawing, and I will next time. Thanks for
    your help!
    Mark
     
    Mark Ingram, Oct 20, 2004
    #13
  14. Mark Ingram

    James Allen Guest

    Well, now I'm even more confused. But if you got what you need that's the
    important part. You are welcome.

    James

    in message news:417689d8$1_3@newsprd01...
     
    James Allen, Oct 20, 2004
    #14
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.