modify entity...

Discussion in 'AutoCAD' started by caduser, Jul 16, 2003.

  1. caduser

    caduser Guest

    (setq x 25.23)
    (setq y 31.26)
    (setq z 0.00)
    (setq new (subst '(10 . 23.00 30.00 0.00)2nd 1st))
    (entmod new)

    what i need, how to change the value '(10 . value to given value (x y z)
     
    caduser, Jul 16, 2003
    #1
  2. caduser

    Rune Wold Guest

    DXF code 10 is used for points, and points are not dotted pairs.

    You don't provide enough information, so I'll have to guess...

    Replace the SUBST line with:
    (setq new (subst '(10 23.00 30.00 0.00) 2nd 1st))

    I just removed the dot after '10'.

    This would probably work also:
    (setq new (subst (list 10 x y z) 2nd 1st))

    As for your variable names, I would recommend using Hungarian notation.
     
    Rune Wold, Jul 16, 2003
    #2
  3. caduser

    caduser Guest

    yes u right dotted pairs don't have actualy

     
    caduser, Jul 16, 2003
    #3
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.