Jump to content

3d polygon is closed or not


stephenjose

Recommended Posts

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

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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?

Link to comment
Share on other sites

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