Anuncios

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

convert hatch zones to selection

Anonymous

convert hatch zones to selection

Anonymous
No aplicable

Hello all,

Is there a way to use multiple hatched zones for selecting other objects contained by (or touched by) the said hatched zones, on different layers.

 

I'm quite sure there must be a way, but I can't find any script a way to do so.

 

See the image below:

on one layer I have all these hatch zones, and on the other, I have hundreds of circles. I want to be able to select only the circles included in the hatched zones, at once.

 

 

 

Screen Shot 2019-02-03 at 23.45.13.jpg

 

Maybe I'm just missing something.

 

Thanks in advance for any help,

rudy

 

 

 

0 Me gusta
Responder
518 Vistas
11 Respuestas
Respuestas (11)

pendean
Community Legend
Community Legend
SELECTSIMILAR, QSELECT and FILTER commands exist to sort items by common settings for selection purposes, have you tried any of them yet?

0 Me gusta

Anonymous
No aplicable

thanks @pendean,

I tried to play around with these but I can't see how I could exclude circles outside of the hatched zones, or include only circles in the hatched zones.

 

I know there is the WSP script, but afaik it's only working with splines, and most of all, not with many at the same time, which is my idea.

0 Me gusta

maxim_k
Consultant
Consultant
Hi Rudy,

Do you use full AutoCAD (not LT)?
If yes, I think it is possible to use AutoLISP here.
Algorithm could be:
- create boundaries of hatches
- use boundaries for SSGET inside them
- count circles selected with SSGET

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Me gusta

maxim_k
Consultant
Consultant
BTW:
WPS.lsp from here:
https://www.cadforum.cz/cadforum_en/qaID.asp?tip=5697
works with polylines, but not with splines.
It allows to select all objects inside closed polyline. Objects intersected by polyline are not included in the selection set, but looks like you need then to be selected.

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community

Anonymous
No aplicable

thanks!

WPS is very useful, but I can't manage to select more than one area at the same time.

As I have hundreds of areas, it would be very useful to find a way to select objects in all these areas at once. ¨

 

now I'm digging into ssget, as you suggested. I didn't know about it, and I'm trying to understand of there might be a way to do the job.

0 Me gusta

maxim_k
Consultant
Consultant
With WPS routine you don't need to deal with SSGET. You could rather use code from WPS and add your own part of AutoLISP code which will allow to select all hatch boundaries and proceed with counting circles inside each of boundary.

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Me gusta

Anonymous
No aplicable

okay!

so I need to get into programming.. but I have no idea about how to do it properly, unfortunately.

 

if anyone out there could do this (paid) job, let me know. that would be so helpful to me.

0 Me gusta

maxim_k
Consultant
Consultant
You can ask for help - I believe it will be free :cara_con_una_leve_sonrisa:
here:
https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/bd-p/130
But don't forget to mention that you need AutoLISP routine for AutoCAD for Mac, so no Visual Lisp allowed as AutoCAD for Mac doesn't support Visual Lisp functions.


Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Me gusta

maxim_k
Consultant
Consultant
Maybe I'll be able to create such routine for you, but not sure when, because I'm very busy.
How urgently do you need this routine?
In order to help you with routine creation I need also one of your drawings where you need to count circles and more detailed details about what result you want to get:
For example: "I need to count all circles inside hatch" or "I need to count all circles inside and crossed by hatch"

Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.


Maxim Kanaev
Architect
MARSS

MacACAD | Linkedin

Etiquette and Ground Rules of Autodesk Community
0 Me gusta

Anonymous
No aplicable

thank you very much for the proposal @maxim_k !


it's urgent as everything! I guess.

I'd be super glad to have this in some ways, soon or later (maybe not too late though).


by now, I've managed to install a win version (on parallel, so it's quite slow), and used a vlisp that helps selecting objects within plines. the problem with this script is that it also selects islands and their content within the plines. so it's sometimes quite some work for checking and correct all issues. but most of all, that would be so much easier and efficient if there could be a way to work directly on mac.


about the detail: I need to be able to select circles that have their center within the hatch (in order to move them to a different layer). maybe I could work first with dots, if it's too complex to consider the center of the circle, and in a further time, replace dots by circles. but the easiest would be being able to work with circles directly.

and attached is a file which my be used as en example.

 

anyway, thank you very much for your help.

 

 

0 Me gusta

vladimir_michl
Advisor
Advisor

In fact you can as many areas as you want with WPS. Just type 'WPS on any "Select objects:" prompt and repeat this multiple time (in this single prompt). No programming is needed.

 

Vladimir Michl, www.cadstudio.cz - www.cadforum.cz

0 Me gusta