counting different geometries as blocks

counting different geometries as blocks

dani-perez
Advocate Advocate
402 Views
6 Replies
Message 1 of 7

counting different geometries as blocks

dani-perez
Advocate
Advocate

Hello all,

 

I received a DWG scanned in PDF. It has many layouts and I have to count different elements: bulbs, bathtubs...if I explode the PDF, all elements are broken down into lines, circles, arcs (no blocks), and all of them, in the same layer.

 

Is there a way (or a LISP) to select a pattern of basic elements (lines, circles...) that form a block, then, select an area of the viewport, and receive the number of exact matches of the pattern (a kind of pattern filter)?

 

Thanks all.

0 Likes
403 Views
6 Replies
Replies (6)
Message 2 of 7

ronjonp
Mentor
Mentor

If you have access to Bricscad they have a command called "Blockify" that you could use.

0 Likes
Message 3 of 7

jtohill
Advocate
Advocate

have you tried pdf import.

0 Likes
Message 4 of 7

dani-perez
Advocate
Advocate

Hello,

 

No, I do not have access to Briscad

0 Likes
Message 5 of 7

dani-perez
Advocate
Advocate
Hello,

Yes, but unsuccessfully
0 Likes
Message 6 of 7

Sea-Haven
Mentor
Mentor

I think there is an alternative to the Bricscad solution I can not remember who, I have a suspicion will try to find. 

 

If the BLOCK object has an outer shape like a circle then may be able to do some real rough counting by using approx radius. 

 

Post a dwg with the objects so we can see what your trying to convert/count.

0 Likes
Message 7 of 7

ВeekeeCZ
Consultant
Consultant

Try to search the board for "blockify". I know that @marko_ribar has his own routine for this purpose, you should be able to find it.

 

EDIT:

Just realized that the new COUNT feature actually CAN count geometry from exploded blocks (or just same/similar/rotated/scaled as some existing block). They are identified as "errors". I did just a quick test - did not find a way to "fix the errors" by "blockifing" them.

 

The screenshot from 2022:

BeekeeCZ_1-1655195039873.png

 

0 Likes