Anuncios

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

Anonymous
960 Vistas, 19 Respuestas

Coloring & Sorting Objects

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? 

Ranjit_Singh2
en respuesta a: Anonymous

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.

imadHabash
en respuesta a: Anonymous

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

kadmonkee
en respuesta a: Anonymous

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
Anonymous
en respuesta a: Ranjit_Singh2

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. 

Anonymous
en respuesta a: kadmonkee

kadmonkee

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

Anonymous
en respuesta a: imadHabash

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?

 

kadmonkee
en respuesta a: Anonymous

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
en respuesta a: Anonymous

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?
kadmonkee
en respuesta a: Anonymous

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
Anonymous
en respuesta a: Anonymous

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.
kadmonkee
en respuesta a: Anonymous

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
Anonymous
en respuesta a: Anonymous

does #1,2-13 select numbers between 2 and 13? What is the role of 1 here?
kadmonkee
en respuesta a: Anonymous

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
Anonymous
en respuesta a: Anonymous

Ok. Let me try it. I will post the result later.
Anonymous
en respuesta a: Anonymous

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

ArchD
en respuesta a: Anonymous

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
Anonymous
en respuesta a: ArchD

archD

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

 

1.jpg2.jpg

 

 

 

 

ArchD
en respuesta a: Anonymous

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
Anonymous
en respuesta a: Anonymous

I will examine it