Jump to content

Recommended Posts

Posted

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

Posted

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.

Posted

thank u tyke.whether this is possible using lisp.help me out.

Posted

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.

Posted
thank u tyke..nice job.

 

You are more than welcome. I hope that it helped.

Posted
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 :)

Posted

ya tyke it helped a lot..Thank u.Thank u..

Posted
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.

Posted

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))
)

Posted

Hi Lee Mac.IT's Working for Single object but I am having More than 1000 objects.Thank You for Your Reply.

Posted
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?

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...