Change entities group codes

Change entities group codes

gert.valk
Contributor Contributor
732 Views
2 Replies
Message 1 of 3

Change entities group codes

gert.valk
Contributor
Contributor

How can I change the group code entity of an attribute into invisible within lisp?

0 Likes
733 Views
2 Replies
Replies (2)
Message 2 of 3

_gile
Consultant
Consultant

Hi,

 

The 70 group must have the bit 1.

 

Assuming dxfLst in the dxf list of an attrbute:

 

(entmod (subst (cons 70 (logior 1 (cdr (assoc 70 dxfLst)))) (assoc 70 dxfLst) dxfLst)

This works with an attribute reference (ATTRIB) or an attribute definition (ATTDEF) in the second case, to update all inserted references, you'd have to synchronize the attributes (ATTSYNC).



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 3

gert.valk
Contributor
Contributor

Thanks!

0 Likes