LSP/VBA for convert similar/same geometries into blocks with attributes

LSP/VBA for convert similar/same geometries into blocks with attributes

Anonymous
Not applicable
1,062 Views
2 Replies
Message 1 of 3

LSP/VBA for convert similar/same geometries into blocks with attributes

Anonymous
Not applicable

Hello everyone, 

 

I have got a strange requirement recently. The requirement is to convert similar/same geometries into blocks with attributes associated to it. Please refer to the image attached for further clarification. 

 

Requirement : I have a P&ID .dwg file (converted from PDF). All entities are broken into segments; can be seen in the attached image as an example. I want to convert this symbols into a block called as "Valve" and give it a tag or name. 

Neither Qselect nor Filter (Shape) helps in serving this purpose.  

 

Could anyone provide any .lsp or vba macro to convert these entities into blocks with attributes all at once. Cad.JPG

 

0 Likes
1,063 Views
2 Replies
Replies (2)
Message 2 of 3

ВeekeeCZ
Consultant
Consultant

Read THIS  similar thread.

0 Likes
Message 3 of 3

Sea-Haven
Mentor
Mentor

You could make a block and use Boundingbox to work out X & Y scale of the objects chosen and insert the block.

0 Likes