Coloring & Sorting Objects

Coloring & Sorting Objects

Anonymous
Not applicable
1,727 Views
19 Replies
Message 1 of 20

Coloring & Sorting Objects

Anonymous
Not applicable

Hi

I have a lot of numbers in a DWG file and want to select them ascending and change each part of them. For example there are 100 numbers which starts with 1.0 and ends with 100.0. Now I want to color them like this: Numbers 0.0 to 25.0 become Red, numbers 26.0-50.0 becomes green and so.

Is my question obvious or need more explanation?

How can I do it? 

0 Likes
1,728 Views
19 Replies
Replies (19)
Message 2 of 20

Ranjit_Singh
Advisor
Advisor

Welcome to the forums!

if the numbers are all in the same space (model space, paper space) then select the necessary elements and change color in properties window. If you need to automate it, assuming it's too much work to select them, just because they are scattered all over or maybe even in different layouts, then you need to use lisp. Post a thread in the LISP forum here with a sample drawing.

0 Likes
Message 3 of 20

imadHabash
Mentor
Mentor

Hi,

 

the mission here is how to select numbers in a specific range? for that QSELECT,FIND and FILTER commands can do that but we have to select and use Wildcard characters.i suggest to follow these articles to get help. Wildcard   Link 1  Link 2 .

 

 

Good Luck..

Imad Habash

EESignature

0 Likes
Message 4 of 20

kadmonkee
Advisor
Advisor

create a layer for each state or Range you need and place all the text on the correct layer.

Layer Name = 0-25 Layer Color <Bylayer> Red etc.






If there is any information shared that is of value please give Kudos
If a solution is provided by any posters please mark them as Solved to benefit everyone else.
thank you
0 Likes
Message 5 of 20

Anonymous
Not applicable

Ranjit

It is impossible to select each sorted numbers manually. All numbers are in a same layout and I need to select each part automatic. Before I have done it. But I can not remember how. 

0 Likes
Message 6 of 20

Anonymous
Not applicable

kadmonkee

Selecting the numbers in specific range is the main question. How to select them in specific range. Changing the color is not hard.

0 Likes
Message 7 of 20

Anonymous
Not applicable

Imadhabash

Your suggestion (QSELECT) is the best way. But what do I type in 'Wildcard Match' box to define a range of numbers. Assume I want to select numbers between 0.0 to 10.0. How do I define it in Wildcard Match dialogue box?

 

0 Likes
Message 8 of 20

kadmonkee
Advisor
Advisor

in the Quick select options (see Image)

in this example I used the Wildcard Match option for Numeric Match (#) Note the sequence in the value field the 1 did not get selected but everything after the apostrophe is

so depending on your needs your filters will vary.

once you have worked out your selection sets you can then place things on their respective layers for easier sorting and coloring, if you choose to take that route.

Quick Select Match filter.PNG






If there is any information shared that is of value please give Kudos
If a solution is provided by any posters please mark them as Solved to benefit everyone else.
thank you
Message 9 of 20

Anonymous
Not applicable
kaonkee
Another question of Wildcard:
I want to select a series of numbers between two amount (e.g. numbers between 2 and 13) via Quick Select. How can I use Wildcard there for this case?
0 Likes
Message 10 of 20

kadmonkee
Advisor
Advisor

use the same approach as displayed in the image

*Wildcard Match use the # symbol to sequence your selection

#1,2,3,4,5,8,9,10,12,13 select all other numbers to be included after each apostrophe

in this example the selection will include 2,3,4,5,8,9,10,12,13






If there is any information shared that is of value please give Kudos
If a solution is provided by any posters please mark them as Solved to benefit everyone else.
thank you
0 Likes
Message 11 of 20

Anonymous
Not applicable
kadmonkee
NO. I want to select numbers between two amounts. The example was nust a simple sample. There are very numbers between two amounts and I can not type all of them after # manually.
0 Likes
Message 12 of 20

kadmonkee
Advisor
Advisor

try a different separator between the numbers other than (,)

example #1,2-13

the hyphen may allow you to use the range of the two numbers






If there is any information shared that is of value please give Kudos
If a solution is provided by any posters please mark them as Solved to benefit everyone else.
thank you
0 Likes
Message 13 of 20

Anonymous
Not applicable
does #1,2-13 select numbers between 2 and 13? What is the role of 1 here?
0 Likes
Message 14 of 20

kadmonkee
Advisor
Advisor

the role of (1) initiates an action.

in the previous image it shows the (1) is not selected but the next number after the apostrophe is 

try the example to see if it works for you.

the intent of the example is yes it should only select numbers from 2-13






If there is any information shared that is of value please give Kudos
If a solution is provided by any posters please mark them as Solved to benefit everyone else.
thank you
0 Likes
Message 15 of 20

Anonymous
Not applicable
Ok. Let me try it. I will post the result later.
0 Likes
Message 16 of 20

Anonymous
Not applicable

I tried QSelect>Wildcard>#1,1360-1380 (as you see) to find and select all numbers between 1360 and 1380. But it did not work. What is your idea about?

 

2.jpg

0 Likes
Message 17 of 20

ArchD
Collaborator
Collaborator

Use this for your value.

 

136[0-9],137[0-9],1380 

You could also do:

13[6-7][0-9],1380

Basically the brackets will only look for a single digit. So a multiple digit number needs a few brackets depending on the range you're looking for.

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
0 Likes
Message 18 of 20

Anonymous
Not applicable

archD

It works wrongly. I tried numbers between 1165 and 1175 and it did not select numbers in this range:

 

1.jpg2.jpg

 

 

 

 

0 Likes
Message 19 of 20

ArchD
Collaborator
Collaborator

Yes, sorry. I edited my response and should work with that solution. Please revisit my initial response.

Archie Dodge
Applications Expert - Infrastructure Solutions Division
IMAGINiT Technologies
0 Likes
Message 20 of 20

Anonymous
Not applicable
I will examine it
0 Likes