Message 1 of 2
How can I change the attribute text inside a block using autolisp ?

Not applicable
08-21-2020
06:32 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I'm remaking my question because I probably asked it the wrong way on the fist time. So I have a routine that inserts a block on the drawing and then asks for the user for a certain distance, and I plan to use the collected distance to modify a attribute text within the block. So far I have this:
(defun c:ss7()
(setq *error* xx:Error)
(command "insert" "SINAL. SAIDA DE EMERGENCIA 7" pause "" "" pause "")
(prompt "Chegou aqui")
(setq point1 (getpoint "\nSelecione aonde a sinalizacao foi colocada"))
(prompt "Chegou aqui")
(setq dist (getdist point1 "\nSelecione o ponto de observacao mais distante\n"))
(cond ((> dist 40)
(*here hopefully goes the code you guys are going to teach me*)