How to Hide/Unhide Specific Polylines Without Turning Off the Layer?

How to Hide/Unhide Specific Polylines Without Turning Off the Layer?

csharp_dev
Contributor Contributor
154 Views
2 Replies
Message 1 of 3

How to Hide/Unhide Specific Polylines Without Turning Off the Layer?

csharp_dev
Contributor
Contributor

I created a plugin using C#. One of my users sent me a DWG file where some polylines are hidden, but the layer is still on. He didn’t hide them intentionally.

 

I tried using the HIDEOBJECTS command, but the hidden polylines become visible again after closing and reopening the file.

 

Is there a command or method in AutoCAD to hide or unhide individual polylines, without turning off the layer ?

 

Any suggestions or guidance would be greatly appreciated.

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

_gile
Consultant
Consultant

Hi,

The Entity base class provides a Visible property.



Gilles Chanteau
Programmation AutoCAD LISP/.NET
GileCAD
GitHub

0 Likes
Message 3 of 3

csharp_dev
Contributor
Contributor

Hi gile,

 

Thank you for your response.

 

I'm already aware of the Visible property from the Entity base class. What I'm trying to find out is whether there's any built-in AutoCAD command that can permanently hide objects without turning off the layer.

 

Any further insights or suggestions would be very helpful.

 

Thanks again!

0 Likes