Code Red => AutoLISP (Vanilla / Visual) => Topic started by: PM on July 15, 2021, 02:50:31 AM
Title: help with an alert box message
Post by: PM on July 15, 2021, 02:50:31 AM
I am using this lisp. This code try to find "_WATER LINE" and then start. I want to add an alert message box incase this layer does not exist and say that this layer does not exist in this drawing. I dont want to create it just alert.
Title: Re: help with an alert box message
Post by: PM on July 15, 2021, 10:23:04 AM
Hi ribarm work nice. Can you add another two options. Some times i have a lot of close polylines on _WATER LINE layer. Can you add an alert box that
1) "The polyline you select is not on _WATER LINE layer !!!!" and
2) "The polyline you select is not close !!!!!"
Thanks
Title: Re: help with an alert box message
Post by: ribarm on July 15, 2021, 10:55:21 AM
1) With the filter already present in the code, you are not able to select polyline entities that reside in some other layer than "WATER LINE"... 2) What do you mean not close? Perhaps closed?
Title: Re: help with an alert box message
Post by: PM on July 15, 2021, 11:02:48 AM
This code must work only for close polyline. Some times the first and the last vertex of the polyline is in the same point but the polyline is not close. So you try to run the code and you dont take any results and you dont know why untill find out that the polyline is not close or the close polyline you select is not in the correct layer. Thats why i want this two filters