- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
convert hatch zones to selection
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.
Maybe I'm just missing something.
Thanks in advance for any help,
rudy
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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
Etiquette and Ground Rules of Autodesk Community
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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
Etiquette and Ground Rules of Autodesk Community
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
Do you find the posts helpful? "LIKE" these posts!
Have your question been answered successfully? Click 'ACCEPT SOLUTION' button.
Maxim Kanaev
Architect
MARSS
Etiquette and Ground Rules of Autodesk Community
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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
Etiquette and Ground Rules of Autodesk Community
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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
Etiquette and Ground Rules of Autodesk Community
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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.
- Marcar como nuevo
- Favorito
- Suscribir
- Silenciar
- Suscribirse a un feed RSS
- Resaltar
- Imprimir
- Denunciar
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