Control/Check/Scan All Drawing By Rule

Control/Check/Scan All Drawing By Rule

Anonymous
Not applicable
1,203 Views
8 Replies
Message 1 of 9

Control/Check/Scan All Drawing By Rule

Anonymous
Not applicable

HELLO ALL

 

I want to control/check all rectangle drawing color  true or false in main drawing by my ruled color drawing.

 

If there false color draw in opend cad file, we must  see that rectangle highlited or red squared and then we manage manually...

 

I need Lsp scan all rectangle drawing and make decision true and false..then Show to us where ıt is.

 

Everey color rectange have got some different working meaning.so I must to control all of it.Its hard and take time.

 

Please help me to Solve that Quest  with lisp..

 

I listed true colored rectangle drawing rule with color code..

 

WORKİNG COLOR RULE CODE
170+192+152+192+152+170
170+192+151+192+170
170+236+192+170
170+8+165+8+170
170+216+216+...+192+170
170+216+216+...+6+170
170+6+152+134+152+245+152+30+170
....ETC

 

If lsp work I want to add manually

 

You can see main drawing  and ruled color drawing  ina attachment.

 

0 Likes
1,204 Views
8 Replies
Replies (8)
Message 2 of 9

pbejse
Mentor
Mentor

@Anonymous wrote:

 

I need Lsp scan all rectangle drawing and make decision true and false..then Show to us where ıt is.

 

Everey color rectange have got some different working meaning.so I must to control all of it.Its hard and take time. 

 

 


Quick question: What are the criteria for a rectangle being TRUE? 

0 Likes
Message 3 of 9

hmsilva
Mentor
Mentor

@Anonymous wrote:

HELLO ALL

 

I want to control/check all rectangle drawing color  true or false in main drawing by my ruled color drawing.

 

If there false color draw in opend cad file, we must  see that rectangle highlited or red squared and then we manage manually...

 

I need Lsp scan all rectangle drawing and make decision true and false..then Show to us where ıt is.

 

Everey color rectange have got some different working meaning.so I must to control all of it.Its hard and take time.

 

Please help me to Solve that Quest  with lisp..

 

I listed true colored rectangle drawing rule with color code..

 

WORKİNG COLOR RULE CODE
170+192+152+192+152+170
170+192+151+192+170
170+236+192+170
170+8+165+8+170
170+216+216+...+192+170
170+216+216+...+6+170
170+6+152+134+152+245+152+30+170
....ETC

 

If lsp work I want to add manually

 

You can see main drawing  and ruled color drawing  ina attachment.

 


Hello Profmanprof!!!

 


@pbejse wrote:

Quick question: What are the criteria for a rectangle being TRUE? 


Simple question:

Are colors sequential to be true?

Objects have to have a color sequence, to be true?

Are you going to select each set of objects separately?

 

i.e.

170+192+152+192+152+170

if we select 6 rectangles, and the colors are "170,192,152,192,152,170" sequentially... it's true????

 

Henrique

 

EESignature

0 Likes
Message 4 of 9

Anonymous
Not applicable

hello all

 

Answer is yes for that  question" if we select 6 rectangles, and the colors are "170,192,152,192,152,170" sequentially... it's true????"

 

We scan all drawing and if selected rectangles colors are 170,192,152,216,152,170 sequentially... it's wrong.ı need to see that part and fix true color.

 

we set and add our lsp WORKİNG COLOR RULE CODE
170+192+152+192+152+170
170+192+151+192+170
170+236+192+170
170+8+165+8+170
170+216+216+...+192+170
170+216+216+...+6+170
170+6+152+134+152+245+152+30+170

 

if  progress  get different squanece at the moment of scan, lsp show us where wrong color rectangle...

 

thanks for help

Best Regards...

0 Likes
Message 5 of 9

dbroad
Mentor
Mentor

You may be confusing your readers by using the word "true" when I think you mean "correct". The numbers you are listing are index colors (0-255), not true colors  (which give you 256 x 256 x 256 possible colors).

 

If you are selecting in order and are expecting index colors to be in a specific order, it would make sense to parse the selection and to make an association list of enames and colors.  Then you could check against your sequences in a specific order and have enough information in your association list to highlight the first offender.   The trouble would be implementing  the ... sections of your lists where you apparently want flexibility.  You may need to cycle among offender options.

 

;;create assoc list
(if
  (setq ss (ssget))
   (repeat (setq i (sslength ss))
     (setq i   (1- i)
	   e   (ssname ss i)
	   ei  (entget e)
	   col (cdr (assoc 62 ei))
	   lst (cons (cons col e) lst)
     )
   )
   lst
)
Architect, Registered NC, VA, SC, & GA.
0 Likes
Message 6 of 9

john.uhden
Mentor
Mentor

When you say sequentially, do you mean in the order in which they were drawn, or maybe their location from left to right or otherwise?  Or maybe by size, or thickness, or elevation, or something?  Are the rectangles really polylines?

John F. Uhden

0 Likes
Message 7 of 9

Kent1Cooper
Consultant
Consultant

@Anonymous wrote:

....
170+6+152+134+152+245+152+30+170
....


I notice, in comparing this example of a valid sequence of colors with the sample drawing, that you have some rectangles that are magenta [color 6], but their color is BYLAYER and their Layer's color is magenta.  They do not have color 6 in a way that can be determined just from their own entity data.

 

So would that be a "true" condition, or not?  If so, the comparison would have to look at whether there is an override color at all on a given Polyline, and if not, check the color of its Layer.

 

You also have some whose color is BYBLOCK.  Does that complicate things, or are they just not a valid color as any other invalid color?

Kent Cooper, AIA
0 Likes
Message 8 of 9

Anonymous
Not applicable

 

Drawing always have got closed polyline.

 

we scan and want to locate wrong colored polyline rectangle

 

170+6+152+134+152+245+152+30+170 squence correct and all colored polyline object are connect each other

 

lsp scan 170+6+152+6+152+6+152+6+170 colored polyline rectangle correct and ignore that drawing.ıf  170+6+6+152+6+152+6+170 shows us wrong color polyline and drawer see and correct or add drawing

 

0 Likes
Message 9 of 9

Anonymous
Not applicable

 

 

 

lsp must search only "kapak LAYER"   colored polyline  obj. and make decision "there are correct / wrong colored polyline"

 

lsp must show us where are wrong colored polyline...

 

 

170+6+152+134+152+245+152+30+170 all colored polyline are override each other.

 

 

if lsp find diffrent squance, show us where that polyline like hatch command shows open  areas

 

THANKS FOR HELP

 

 

0 Likes