Special closed polyline filters?
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
Special closed polyline filters?
Goto page Previous  1, 2
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization
Author Message
Jeff Mishler
Guest





Posted: Sat Dec 18, 2004 10:50 pm    Post subject: Re: Special closed polyline filters? Reply with quote

Hi Len,
To tell you the truth, now that I look at it again, I'm not sure how mine
passed all the tests. 4 & 132 should not be included and I don't have a clue
how those got in there..... ;-)
However, 3 should be since you said Fit curves are OK. Fit = 2 + Closed = 1
= 3, which also will include 131 (128 + 3).

--
Jeff
check out www.cadvault.com
"Fatfreek" <mil3le3rlr@ark3ans3as.net> wrote in message
news:41c446c2_3@newsprd01...
Quote:
It does, indeed. I created a test drawing with a variety of 16 entities
including plain lines, arcs, circles, regions, heavy polys, and light
polys.

Your snippet caught all 9 correct ones. My notes said that okay codes are
1, 129, 131. Not okay are 128, 133.

How did you derive the 3, 4, 131 and 132?
Most Grateful, Len

"Jeff Mishler" <jeff_m@cadvault.com> wrote in message
news:41c3387c$1_3@newsprd01...
This seems to work:

(ssget "x" '((0 . "*POLYLINE")(-4 . "<OR")(70 . 1)(70 . 3)(70 . 4)(70 .
129)(70 . 131)(70 . 132)(-4 . "OR>")))

--
Jeff
check out www.cadvault.com
"Fatfreek" <mil3le3rlr@ark3ans3as.net> wrote in message
news:41c33615$1_3@newsprd01...
I thought the following was good but it's not:
(ssget "x"
'((-4 . "&")
(70 . 1)
)
)

I'm trying to select only closed polys -- light or heavy. The old
ellipses
are okay (pellipse = 1) but only the None and Fit, not the Quadratic or
Cubic.

Can someone help with a proper set of filters?
Len Miller
--
To email reply, eradicate all threes in my SPAM guarded address.







Back to top
Fatfreek
Guest





Posted: Sun Dec 19, 2004 1:40 am    Post subject: Re: Special closed polyline filters? Reply with quote

I looked further and found those bits, listed only under HEAVY polyline
help.

For those lurking:
1 = This is a closed polyline (or a polygon mesh closed in the M direction)
2 = Curve-fit vertices have been added
4 = Spline-fit vertices have been added
8 = This is a 3D polyline
16 = This is a 3D polygon mesh
32 = The polygon mesh is closed in the N direction
64 = The polyline is a polyface mesh
128 = The linetype pattern is generated continuously around the vertices of
this polyline



Therefore (my understanding) 1, 2, 3, 128, 129, 130, 131 - are okay.



But -- when my code contains those numbers my accepted set is now up to 11
instead of 9. The incorrect ones are open polys, one light and one heavy.



I've gone back to your original suggested code, coming up with the right
number I've, one by one rechecked the handles in the Vlide Watch Window,
comparing with the handles at each entity that I've printed on the drawing
next to each. Perfect.



Go figger!

Len



ps: I will be happy to attach my drawing, some 53K, if asked.



"Jeff Mishler" <jeff_m@cadvault.com> wrote in message
news:41c46dd8$1_3@newsprd01...

Quote:
Hi Len,
To tell you the truth, now that I look at it again, I'm not sure how mine
passed all the tests. 4 & 132 should not be included and I don't have a
clue
how those got in there..... ;-)
However, 3 should be since you said Fit curves are OK. Fit = 2 + Closed =
1
= 3, which also will include 131 (128 + 3).

--
Jeff
check out www.cadvault.com
"Fatfreek" <mil3le3rlr@ark3ans3as.net> wrote in message
news:41c446c2_3@newsprd01...
It does, indeed. I created a test drawing with a variety of 16 entities
including plain lines, arcs, circles, regions, heavy polys, and light
polys.

Your snippet caught all 9 correct ones. My notes said that okay codes
are
1, 129, 131. Not okay are 128, 133.

How did you derive the 3, 4, 131 and 132?
Most Grateful, Len

"Jeff Mishler" <jeff_m@cadvault.com> wrote in message
news:41c3387c$1_3@newsprd01...
This seems to work:

(ssget "x" '((0 . "*POLYLINE")(-4 . "<OR")(70 . 1)(70 . 3)(70 . 4)(70 .
129)(70 . 131)(70 . 132)(-4 . "OR>")))

--
Jeff
check out www.cadvault.com
"Fatfreek" <mil3le3rlr@ark3ans3as.net> wrote in message
news:41c33615$1_3@newsprd01...
I thought the following was good but it's not:
(ssget "x"
'((-4 . "&")
(70 . 1)
)
)

I'm trying to select only closed polys -- light or heavy. The old
ellipses
are okay (pellipse = 1) but only the None and Fit, not the Quadratic
or
Cubic.

Can someone help with a proper set of filters?
Len Miller
--
To email reply, eradicate all threes in my SPAM guarded address.







Back to top
Fatfreek
Guest





Posted: Sun Dec 19, 2004 1:49 am    Post subject: Re: Special closed polyline filters? Reply with quote

I'd better clarify. Since my original post I've added two open polylines,
one heavy and one light. However, the original number of 9 acceptable still
applies.

Back to top
John Uhden
Guest





Posted: Mon Dec 20, 2004 7:31 am    Post subject: Re: Special closed polyline filters? Reply with quote

This gets open ones...
(ssget "X"
(list
'(0 . "*POLYLINE")
'(-4 . "<NOT")'(-4 . "&=")'(70 . 1)'(-4 . "NOT>")
)
)

This should get closed ones...
(ssget "X"
(list
'(0 . "*POLYLINE")
'(-4 . "&=")'(70 . 1)
)
)

--
John Uhden, Cadlantic
<the e-mail address is bogus>
http://www.cadlantic.com
Sea Girt, NJ


"Fatfreek" <mil3le3rlr@ark3ans3as.net> wrote in message
news:41c33615$1_3@newsprd01...
Quote:
I thought the following was good but it's not:
(ssget "x"
'((-4 . "&")
(70 . 1)
)
)

I'm trying to select only closed polys -- light or heavy. The old ellipses
are okay (pellipse = 1) but only the None and Fit, not the Quadratic or
Cubic.

Can someone help with a proper set of filters?
Len Miller
--
To email reply, eradicate all threes in my SPAM guarded address.

Back to top
Fatfreek
Guest





Posted: Mon Dec 20, 2004 10:35 am    Post subject: Re: Special closed polyline filters? Reply with quote

It's not pretty (I don't know the streamlined stuff) but I tacked onto your
second example some code to exclude the cubic and the quadratic polys -- and
it finally works (at least for my test drawing), getting 9 qualified
entities:
(ssget "X"
(list
'(0 . "*POLYLINE")
'(-4 . "&=")
'(70 . 1)
'(-4 . "<NOT")
'(75 . 5)
'(-4 . "NOT>")
'(-4 . "<NOT")
'(75 . 6)
'(-4 . "NOT>")
)
)


"John Uhden" <juhden@cadlantic.com> wrote in message
news:41c639b0$1_1@newsprd01...
Quote:
This gets open ones...
(ssget "X"
(list
'(0 . "*POLYLINE")
'(-4 . "<NOT")'(-4 . "&=")'(70 . 1)'(-4 . "NOT>")
)
)

This should get closed ones...
(ssget "X"
(list
'(0 . "*POLYLINE")
'(-4 . "&=")'(70 . 1)
)
)

--
John Uhden, Cadlantic
the e-mail address is bogus
http://www.cadlantic.com
Sea Girt, NJ


"Fatfreek" <mil3le3rlr@ark3ans3as.net> wrote in message
news:41c33615$1_3@newsprd01...
I thought the following was good but it's not:
(ssget "x"
'((-4 . "&")
(70 . 1)
)
)

I'm trying to select only closed polys -- light or heavy. The old
ellipses
are okay (pellipse = 1) but only the None and Fit, not the Quadratic or
Cubic.

Can someone help with a proper set of filters?
Len Miller
--
To email reply, eradicate all threes in my SPAM guarded address.


Back to top
BillZ
Guest





Posted: Mon Dec 20, 2004 4:43 pm    Post subject: Re: Special closed polyline filters? Reply with quote

I should've read the pos better.
Missed the quadratic and cubic idea.

Sorry

Bill
Back to top
BillZ
Guest





Posted: Mon Dec 20, 2004 4:46 pm    Post subject: Re: Special closed polyline filters? Reply with quote

Quote:
As long as we're on the filter-optimizing kick, I liked the wildcard usage

:-)


Bill
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Customization All times are GMT
Goto page Previous  1, 2
Page 2 of 2

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Powered by phpBB