hibba Posted June 7, 2022 Posted June 7, 2022 Hello Everyone, i need a lisp to count similar objects in an exploded drawing. in an image below i want to count same type of sockets but drawing is exploded. Quote
mhupp Posted June 7, 2022 Posted June 7, 2022 If they are blocks use this http://www.lee-mac.com/blockcounter.html If not going to need more then just a screen shot. upload a sample drawing. Quote
hibba Posted June 7, 2022 Author Posted June 7, 2022 all objects including arch drawing are exploded . Drawing.dwg Quote
mhupp Posted June 7, 2022 Posted June 7, 2022 Nothing really you can do maybe use quick select and filter by radius seems that they all have slightly different radius. but then you would have to remove one that have different call outs. also https://www.cadtutor.net/forum/topic/61315-duplicate-polygons-total/#comment-506422 1 Quote
Steven P Posted June 7, 2022 Posted June 7, 2022 I don't think this is possible given the drawing you have, quickly checking some sockets - very tricky at least I think. I looked at this a while ago to find similar shapes for the case of an exploded PDF where text is lines... and came to the conclusion that I wouldn't be able to do that. In your drawing - Some have different circle diameters - Some have the triangles oriented different directions - Different layers are used - Lines are drawn in opposite directions and are different lengths Very tricky is above my skill for an internet forum sorry, but might be possible... ? - SSget all the circles on electrical layers with a radius of less than 100 - Loop through the Selection set and find if the circle contains any polylines on the same layer as the circle - not something I have ever needed to do but it can be done? - Count how many segments these polyines have, if =3 there is a good chance it is a circle with a triangle inside? - Likewise count if the circle is bisecet by a single line on the same layer - again can that be done? ... and then just add them all up... just guessing but not something I have ever looked into and I reckon it might be a tricky challenge If it is just 1 drawing like this it might be a lot quicker just to count them manually, or select them and see how many there are in the properties table than making a LISP up unless someone has something ready made Quote
tombu Posted June 7, 2022 Posted June 7, 2022 Are you sure there's no way to retrieve a copy of the drawing from before it was (exploded) destroyed? Anytime I pass a drawing to someone else I keep a copy for myself just in case they might do something like that. 1 Quote
BIGAL Posted June 7, 2022 Posted June 7, 2022 (edited) Bricscad has a make block where it looks at patterns of objects, Ask company to send un exploded, they just dont want you to use there blocks. Edited June 7, 2022 by BIGAL 2 Quote
mhupp Posted June 7, 2022 Posted June 7, 2022 1 minute ago, BIGAL said: Bricscad has a make block where it looks at patterns of objects, trying to remember command. Yeah I forgot about that. BLOCKIFY 1 Quote
BIGAL Posted June 8, 2022 Posted June 8, 2022 Yeah the objects are to obscure because they have say different text inside circle, Blockify did not seem to work. 1 Quote
mhupp Posted June 8, 2022 Posted June 8, 2022 hibba try @marko_ribar program http://www.theswamp.org/index.php?topic=55186.0 1 Quote
hibba Posted June 8, 2022 Author Posted June 8, 2022 (edited) thank you so much for the reply guys. i already tried with BricsCAD but the issue was not resolved with that kind of drawings i have to work. i remember, i used a lisp earlier where i was able to select same kind of objects with the same property but i have lost that lisp. Edited June 8, 2022 by hibba Quote
hibba Posted June 8, 2022 Author Posted June 8, 2022 8 hours ago, mhupp said: hibba try @marko_ribar program http://www.theswamp.org/index.php?topic=55186.0 ok, i will try this program. i hope i will solve the issue. thanks Quote
hibba Posted June 8, 2022 Author Posted June 8, 2022 8 hours ago, mhupp said: hibba try @marko_ribar program http://www.theswamp.org/index.php?topic=55186.0 i have read the topic and it is really helpful and this is exactly what i wanted, thanks alot again Quote
hibba Posted June 8, 2022 Author Posted June 8, 2022 11 hours ago, BIGAL said: Bricscad has a make block where it looks at patterns of objects, Ask company to send un exploded, they just dont want you to use there blocks. Sorry for the earlier reply. I installed again and checked it is also working Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.