AttributeReference Visible property

AttributeReference Visible property

mcoH3VZV
Advocate Advocate
654 Views
1 Reply
Message 1 of 2

AttributeReference Visible property

mcoH3VZV
Advocate
Advocate

Hi,

What I want to do is search through a drawing and if I find a block that has an invisible attribute, perform a function. However, attref.Visible (shown below) does not seem to be working. How can I tell if an attribute is invisible or not?

(say it has been hidden by the AEHIDEATTRIB command).

 

AttributeReference attref = (AttributeReference)transaction.GetObject(attId, OpenMode.ForRead);
if (attref.Visible == false)
{
     //Do Stuff
}

 

Thanks,

0 Likes
Accepted solutions (1)
655 Views
1 Reply
Reply (1)
Message 2 of 2

_gile
Consultant
Consultant
Accepted solution

Hi,

Perhaps, you're looking for the AttributeReference.Invisible property instead of Entity.Visible one.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub