Why does Entlast not work?

Discussion in 'AutoCAD' started by Kiwi Russ, Jan 31, 2004.

  1. Kiwi Russ

    ECCAD Guest

    And later: Doug chimed in with "And the polyline won't extrude anyway unless you close it."
    And then later:
    "Was wrong about the last entity. If the extrude command works, it creates a new entity but it won't work unless
    1) the polyline is closed,"

    and so on.
     
    ECCAD, Feb 1, 2004
    #21
  2. Kiwi Russ

    Jeff Mishler Guest

    Bob,
    I think you are still missing the point that regardless of everything else,
    your initial :

    "You could try:

    (setq PanObj3 (vlax-ename->vla-object (entget (entlast))))

    Bob"

    is incorrect.....
    (vlax-ename->vla-object ..) requires an ename, not a list as returned by
    (entget)....so will ALWAYS fail.......

    Jeff


    a new entity but it won't work unless
     
    Jeff Mishler, Feb 1, 2004
    #22
  3. Kiwi Russ

    ECCAD Guest

    Sorry,
    You are absolutely correct.
    (vlax-ename->vla-object (entlast)) .. returns an ename, which is proper. (entget (entlast)) returns a 'list'.
    I stand corrected (again).
    I'll not go there again.
    Thanks for pointing that out.
    Bob
    (subject closed)
     
    ECCAD, Feb 1, 2004
    #23
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.