Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Deleting LAYERS using AutoLisp resources?

Status
Not open for further replies.

GeorgeDD

Programmer
Apr 17, 2003
2
BG
How to delete layers using AutoLISP resources.

(entdel (tblobjname "LAYER" LayerName) doesnt work!!!

I will be thankful to everyone who can help me
 
Try:
(command "-purge" "la" "LayerName" "n")
 
Just make sure that you have no entities on the layer first and that no block is referencing it. Then purge will work.
 
Thanks to carlak and borgunit for advice :))

To delete a layer using (command "purge" ... ) had never been a dificult for me.
Verifiyng for entities lack is already done before the statement (entdel ... ).

But
I need AUTOLISP method to do this deleting, rather than using Autocad commnad "purge" included in program body.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top