dxf vs vlax

Discussion in 'AutoCAD' started by Adesu, Nov 2, 2004.

  1. Adesu

    Adesu Guest

    Now you create line from (list 0 0) to (list 10 5),and then compare it.

    # COMPARE 1 #

    _$ (setq en (entsel))
    (<Entity name: 14c3a08> (4.15673 1.4929 0.0))

    _$ (setq ent (entget (car en)))
    ((-1 . <Entity name: 14c3a08>) (0 . "LINE") (330 . <Entity name: 14c30f8>)
    (5 . "149") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (62 . 1)
    (100 . "AcDbLine") (10 0.0 0.0 0.0) (11 10.0 5.0 0.0) (210 0.0 0.0 1.0))

    # COMPARE 2 #

    _$ (setq ent1 (vlax-ename->vla-object (car en)))
    #<VLA-OBJECT IAcadLine 02e983b4>

    _$ (setq ang (vlax-get-property ent1 "angle"))
    0.463648

    My question is why on dxf list there isn't " angle ! ".or not completed by
    angle
     
    Adesu, Nov 2, 2004
    #1
  2. Adesu

    LUCAS Guest

    _$ (setq ent (entget (car en)))
    ((-1 . <Entity name: 14c3a08>) (0 . "LINE") (330 . <Entity name: 14c30f8>)
    (5 . "149") (100 . "AcDbEntity") (67 . 0) (410 . "Model") (8 . "0") (62 . 1)
    (100 . "AcDbLine") (10 0.0 0.0 0.0) (11 10.0 5.0 0.0) (210 0.0 0.0 1.0))

    _$ (angle '(0.0 0.0 0.0) '(10.0 5.0 0.0))
    0.463648
     
    LUCAS, Nov 2, 2004
    #2
  3. Adesu

    Joe Burke Guest

    Adesu,

    May I suggest, the question is not why the entget data list for a line, doesn't
    contain a DXF code for angle. That's just the way it is.

    You might as well ask why the Properties window doesn't let you change the angle of a
    selected line. Which makes no sense to me.

    Joe Burke
     
    Joe Burke, Nov 2, 2004
    #3
  4. Adesu

    James Allen Guest

    As Lucas is pointing out with the angle, there are a number of ActiveX
    properties that are dependent on an object's defining properties.
    Generally, all that is in the dxf code is the bare minimum to define the
    object and if you need other information you have to calculate it.
     
    James Allen, Nov 2, 2004
    #4
  5. Hi Joe,

    Are you saying you would like to type in a new
    angle in the properties box? If so, how would
    AutoCAD know which endpoint to keep?
     
    Jason Piercey, Nov 2, 2004
    #5
  6. Adesu

    Joe Burke Guest

    Hi Jason,

    Yes, exactly. AutoCAD knows which end to keep. By virtue of the fact it knows how to
    report the angle of a line angle in vlisp. Angle StartPoint to EndPoint.

    So I see no reason why the Properties window does not allow modifying the angle of a
    line.

    Regards
    Joe
     
    Joe Burke, Nov 2, 2004
    #6
  7. How would AutoCAD know what to use as the point of rotation or which endpoint should be held or if should rotate around the midpoint?

    Too many variables. Maybe that's why?
     
    Nick_Merchant, Nov 2, 2004
    #7
  8. Adesu

    Adesu Guest

    Thanks to Alls for your comment.

     
    Adesu, Nov 3, 2004
    #8
  9. Adesu

    Joe Burke Guest

    Nick,

    Think of it as changing the angle, rather than the rotation idea.

    I suspect why it can't be done in the Properties window is not for the reason you and
    Jason mentioned. That which end to modify would always be ambiguous. Rather it's
    probably the fact in a rotated UCS, a line's angle is displayed in WCS. So in that
    case there would be no way to know what the modified angle should be. Which in turn
    raises the question, does that make sense?

    Similar, I also wonder why I can't change a line's length RO property.

    Joe Burke
     
    Joe Burke, Nov 3, 2004
    #9
  10. Adesu

    James Allen Guest

    Note to Anne:

    Hi Anne, I'm still having random posts never showing up in my newsreaders.
    I've brought this up a couple of other itmes in the past several months and
    checked all the things that were recommended. One of the times I was
    responding to someone else who mentioned the same issue, but I don't
    remember who. I haven't noticed anyone else mentioning it lately, so maybe
    it's just me.

    But I've been using the newsreader from work and home and there are
    different posts missing in each place. I can't help thinking there are also
    ones missing in both and I'm never seeing them, but I haven't taken the time
    to get on the web side and compare. Usually I notice it when my own do not
    show up and then I see a response to it, but I've also noticed other
    people's posts show in one place and never the other or vice-versa. My post
    quoted back here showed up fine at work, but not here at home. I'm using
    OE/Outlook XP/Win2kp at work and OE/Outlook 2k/Win98 at home. I'm not
    claiming expertise on this, but it just doesn't seem like this is a problem
    with my settings. Should I forget about this and move on, or should I keep
    reminding you / supplying info periodically if it persists?

    Thank you,
     
    James Allen, Nov 5, 2004
    #10
  11. Adesu

    Anne Brown Guest

    James -

    Usually there are mass postings if the HTTP and NNTP sides of the
    discussion groups go out of synch. I honestly have not seen other
    reports lately. I also notice the "missing" posts as I work both
    sides of the groups.

    I will, of course, have the web master check the server for
    synching problems. Next time you see a problem (hopefully never)
    please post a specific example.

    Anne
     
    Anne Brown, Nov 5, 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.