How to Read and Modify Block Attributes in AutoLISP (AutoCAD)

Поділитися
Вставка
  • Опубліковано 11 вер 2024
  • How to Read and Modify Block Attributes in AutoLISP (AutoCAD)
    -Prabhu

КОМЕНТАРІ • 15

  • @ksjrb73
    @ksjrb73 18 днів тому +1

    Hello sir how to change all the properties of entities inside block and nested blocks? Please make a tutorial on this.

  • @rajudasari6457
    @rajudasari6457 Місяць тому

    Good sir. Little bit advanced

  • @syamkumar6620
    @syamkumar6620 Місяць тому +1

    please make a video on debugging and other tools in Visual Code for AutoLISP

  • @yijianzeng5017
    @yijianzeng5017 28 днів тому

    Thanks for the information.

  • @ksjrb73
    @ksjrb73 28 днів тому

    Thank you for your video. Would you please upload all activex functions in visual lisp?

  • @cadworkchennai1496
    @cadworkchennai1496 29 днів тому

    Dear sir,
    Can we done this task by using normal lisp program instead of vlax program?

  • @ksjrb73
    @ksjrb73 20 днів тому

    How to get the value from a selected text and put that value in to the attribute?

    • @cyberCADsolutions
      @cyberCADsolutions  19 днів тому

      Read the text content and update attribute using vla-put_textstring.

  • @cyberCADsolutions
    @cyberCADsolutions  24 дні тому

    vlax-invoke getattributes
    vla-get-tagstring
    vla-get-textstring
    vla-put-textstring
    (setq blk(car (entsel "
    Select block object:")))
    (setq attLst(vlax-invoke (vlax-ename->vla-object blk) 'getattributes))
    (foreach att attLst
    (setq tag(vla-get-tagstring att)
    val(vla-get-textstring att)
    )
    (princ (strcat "
    " tag "=" val))
    (princ)
    );for
    ;change height value to 15m
    (foreach att attLst
    (setq tag(vla-get-tagstring att)
    val(vla-get-textstring att)
    )
    (if (= (strcase tag) "HEIGHT")
    (vla-put-textstring att "20")
    );if
    );for

  • @enriqueflores5778
    @enriqueflores5778 Місяць тому

    Thanks for the information.

  • @cadworkchennai1496
    @cadworkchennai1496 Місяць тому

    Thanks for the information.