Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

Coloring & Sorting Objects

Anonymous

Coloring & Sorting Objects

Anonymous
No aplicable

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 Me gusta
Responder
968 Vistas
19 Respuestas
Respuestas (19)

Ranjit_Singh2
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 Me gusta

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 Me gusta

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 Me gusta

Anonymous
No aplicable

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 Me gusta

Anonymous
No aplicable

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 Me gusta

Anonymous
No aplicable

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 Me gusta

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

Anonymous
No aplicable
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 Me gusta

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 Me gusta

Anonymous
No aplicable
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 Me gusta

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 Me gusta

Anonymous
No aplicable
does #1,2-13 select numbers between 2 and 13? What is the role of 1 here?
0 Me gusta

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 Me gusta

Anonymous
No aplicable
Ok. Let me try it. I will post the result later.
0 Me gusta

Anonymous
No aplicable

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 Me gusta

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 Me gusta

Anonymous
No aplicable

archD

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

 

1.jpg2.jpg

 

 

 

 

0 Me gusta

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 Me gusta

Anonymous
No aplicable
I will examine it
0 Me gusta