Results 1 to 20 of 21

Thread: Solved: Read field in AUTOCAD block attribute

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #10
    VBAX Regular fixo's Avatar
    Joined
    Jul 2006
    Location
    Sankt-Petersburg
    Posts
    99
    Location
    Quote Originally Posted by ALe
    some troubles.

    1) when I appload alinks.lsp, following the instructions i get this error:

    Comand: appload
    alinks.lsp loaded.
    Comand:
    Enter block name: Etichetta Locale
    Enter attribute tag: CODICE_LOCALE
    ._zoom
    Specificare un angolo della finestra, digitare un fattore di scala (nX o nXP) o
    [Tutto/Centrato/Dinamico/Estensioni/Precedente/scAla/Finestra/Oggetto] <tempo
    reale>: _e
    Comand:
    Select desired blocks >>
    Error! no function definition: VLAX-ENAME->VLA-OBJECT

    2) when i run vba code it seems it can't get Extension Dictionary for the attribute attObj.

    I really hope this is not so difficult to solve. I attach my files if these could be of help.
    Hi Ale
    First you did not copied lisp code completely
    this line at the very top:
    (vl-load-com)
    is very important, it will be upload ActiveX dynamic libraries and its functions from AutoCAD program folder
    Secondly, in your drawing I have not found a blocks 'Etichetta locale'
    with attributes CODICE_LOCALE that has fields - every attribute just with
    value of 'XXXX', by this reason the lisp command will be return just empty
    CSV file
    So add a line of code above, populate 1-2 block attribute with fields
    and try again
    Hey, this drawing is very familiar to me, buddy
    Let me know the result after test
    Last edited by Aussiebear; 12-30-2024 at 01:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •