ObjectDBX and block attributes...

Discussion in 'AutoCAD' started by Mark Dubbelaar, Jul 19, 2004.

  1. hi

    i have two questions....
    1. how do i get attribute values / definitions via vlisp, so far i'm able to get a block definition, but am unable to get the attributes within the block:
    (vlax-for block (vla-get-blocks dbxdoc)
    (setq blockname (vla-get-name block))
    (if (= blockname "TEST")
    (alert "block found")
    );if
    );blocks

    2. does using objectDBX via lisp, solve the problem of attributes not justifying themselves as in VBA??? if not, would a work around of the ATTSYNC routine fix this problem???

    any help/code would be great

    cheers

    mark
     
    Mark Dubbelaar, Jul 19, 2004
    #1
  2. Mark Dubbelaar

    gert Guest

    (entnext BLOCKNAME)

    should step trough the attributes
     
    gert, Jul 19, 2004
    #2
  3. #1 Are you sure you want the block *definition*? From question #2 it sounds
    like you want to modify an attribute of an inserted block, which would be
    the BlockReference object. The BlockRef has a GetAttributes method.

    #2. No. No.

    --
    R. Robert Bell


    hi

    i have two questions....
    1. how do i get attribute values / definitions via vlisp, so far i'm able to
    get a block definition, but am unable to get the attributes within the
    block:
    (vlax-for block (vla-get-blocks dbxdoc)
    (setq blockname (vla-get-name block))
    (if (= blockname "TEST")
    (alert "block found")
    );if
    );blocks

    2. does using objectDBX via lisp, solve the problem of attributes not
    justifying themselves as in VBA??? if not, would a work around of the
    ATTSYNC routine fix this problem???

    any help/code would be great

    cheers

    mark
     
    R. Robert Bell, Jul 19, 2004
    #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.