stephenjose Posted August 19, 2011 Share Posted August 19, 2011 Hi..how to check whether the polygon is closed or not..it is not closed then want to change the color of non-closed polygon..reply me Quote Link to comment Share on other sites More sharing options...
Tyke Posted August 19, 2011 Share Posted August 19, 2011 Click on the polygon in question and look in the properties window. There you can see whether the polygon is closed or not, and if you wish you can change its state there too. If you find that it is not closed you can change its colour also in the properties window. Quote Link to comment Share on other sites More sharing options...
stephenjose Posted August 19, 2011 Author Share Posted August 19, 2011 thank u tyke.whether this is possible using lisp.help me out. Quote Link to comment Share on other sites More sharing options...
Tyke Posted August 19, 2011 Share Posted August 19, 2011 You can do it very quickly and very easily without resorting to LISP. Use Quick Select in the properties window select the type of your object from the top drop down list, then select the property Closed in the main list box with the value that you want to filter (closed or open) and then click on OK. You have then selected all the polylines that are closed/open, depending what value you used and then change the colour accordingly in the properties window. If you really want this in LISP you should have posted the thread in the LISP Forum and not AutoCAD General. Perhaps if you answer this post with a yes response one of the Mods would be kind enough to move it for you. Quote Link to comment Share on other sites More sharing options...
stephenjose Posted August 19, 2011 Author Share Posted August 19, 2011 thank u tyke..nice job. Quote Link to comment Share on other sites More sharing options...
Tyke Posted August 19, 2011 Share Posted August 19, 2011 thank u tyke..nice job. You are more than welcome. I hope that it helped. Quote Link to comment Share on other sites More sharing options...
Tiger Posted August 19, 2011 Share Posted August 19, 2011 You can do it very quickly and very easily without resorting to LISP. Use Quick Select in the properties window select the type of your object from the top drop down list, then select the property Closed in the main list box with the value that you want to filter (closed or open) and then click on OK. You have then selected all the polylines that are closed/open, depending what value you used and then change the colour accordingly in the properties window. If you really want this in LISP you should have posted the thread in the LISP Forum and not AutoCAD General. Perhaps if you answer this post with a yes response one of the Mods would be kind enough to move it for you. Ahem. Move is the key-word here - done and done Quote Link to comment Share on other sites More sharing options...
stephenjose Posted August 19, 2011 Author Share Posted August 19, 2011 ya tyke it helped a lot..Thank u.Thank u.. Quote Link to comment Share on other sites More sharing options...
Tiger Posted August 19, 2011 Share Posted August 19, 2011 Tiger, Don't joke. Are you free now??? Free? I want to break free? Free falling? Free to move your thread? It's already done. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 19, 2011 Share Posted August 19, 2011 This function will check if a *Polyline closed bit code is set: (defun _isClosed ( ename ) (= 1 (logand 1 (cdr (assoc 70 (entget ename))))) ) Supply it with the *Polyline ename: (defun c:test ( / e ) (if (setq e (car (entsel))) (_isClosed e)) ) Quote Link to comment Share on other sites More sharing options...
guhan Posted August 19, 2011 Share Posted August 19, 2011 Hi LeeMac.... Quote Link to comment Share on other sites More sharing options...
stephenjose Posted August 19, 2011 Author Share Posted August 19, 2011 Hi Lee Mac.IT's Working for Single object but I am having More than 1000 objects.Thank You for Your Reply. Quote Link to comment Share on other sites More sharing options...
Lee Mac Posted August 19, 2011 Share Posted August 19, 2011 Hi Lee Mac.IT's Working for Single object but I am having More than 1000 objects.Thank You for Your Reply. Well, yes - it was only an example, to show you how to use the function. What are you trying to achieve? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.