Detecting a valve which is not a block

Detecting a valve which is not a block

muralik7KY37
Contributor Contributor
1,499 Views
13 Replies
Message 1 of 14

Detecting a valve which is not a block

muralik7KY37
Contributor
Contributor

Hi,

We have P&IDs where the valves are not yet blocks and we want to convert them into blocks. If there any way to detect a collection of lines, circles as a valve object and programmatically convert into a block?

 

Thanks,

Murali

0 Likes
Accepted solutions (1)
1,500 Views
13 Replies
Replies (13)
Message 2 of 14

ВeekeeCZ
Consultant
Consultant
The other way around. Select all blocks and use HIDEOBJECTS.
0 Likes
Message 3 of 14

hak_vz
Advisor
Advisor

Depends on how they are created, are they in same layer and so on . Post a sample drawing in DWG

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 4 of 14

muralik7KY37
Contributor
Contributor

Hi,

There are no blocks in the drawing already. The lines, circles, etc. making the symbol all lie in same layer. Please find attached a sample drawing with the symbol list included. I was thinking there would be a method to select similar group of objects in lisp. The symbol may be rotated or slightly scaled.  Any help is appreciated.

0 Likes
Message 5 of 14

ВeekeeCZ
Consultant
Consultant
Accepted solution

HERE is a link for you to get an idea of what you asking from us.

So to answer your question - YES, there is. Unfortunately, it has nothing to do with AutoCAD (anymore).

0 Likes
Message 6 of 14

hak_vz
Advisor
Advisor

Using tool similar to what @ВeekeeCZ has show would be the answer to your request. What I see from your sample, you will have to recreate all blocks and than replace them inside drawing. This blocks are standard in your branch, so I guess there must be a source i.e that would make this job a bit easier.

This task requires organized approach and is not so easy to do.

Miljenko Hatlak

EESignature

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.
0 Likes
Message 7 of 14

pbejse
Mentor
Mentor

@ВeekeeCZ wrote:

HERE is a link for you to get an idea of what you asking from us.

So to answer your question - YES, there is. Unfortunately, it has nothing to do with AutoCAD (anymore).


 

Blockify, What an appropriate name for that tool.

What do you mean by that @ВeekeeCZ ? was it a function available before?

 

 

 

0 Likes
Message 8 of 14

muralik7KY37
Contributor
Contributor

Thank you. Following along the line, I found https://forums.autodesk.com/t5/visual-lisp-autolisp-and-general/blockify/td-p/8629318 which describes similar lisp for Autocad

Message 9 of 14

ВeekeeCZ
Consultant
Consultant

@pbejse wrote:

@ВeekeeCZ wrote:

HERE is a link for you to get an idea of what you asking from us.

So to answer your question - YES, there is. Unfortunately, it has nothing to do with AutoCAD (anymore).


 

Blockify, What an appropriate name for that tool.

What do you mean by that @ВeekeeCZ ? was it a function available before?

 


No, no. What I had in mind was that there will always be a question of how these clones were born to live. But that's not what I wanted to discuss. I really like the tool and hopefully, ADSK will pick up... probably not.

0 Likes
Message 10 of 14

pbejse
Mentor
Mentor

@muralik7KY37 wrote:

... which describes similar lisp for Autocad


Tell us how's it working out for you, it would been interesting to write a similar code. but not today 😊

 

Message 11 of 14

Sea-Haven
Mentor
Mentor

Its like express tools in Autocad something like blockify would be added there. No express tools in Briscad the lisp is as source say extrim.lsp but has internal function calls so does not work in Bbriscad.

0 Likes
Message 12 of 14

Mistress0fTheDorkness
Collaborator
Collaborator

If you install the express tools on the BricsCAD app store would that resolve it? or just too different at the base. 



Melanie Stone
Facilities Data Management
IWMS / CAFM / CMMS / AutoCAD / Archibus / Tririga / Planon / MRI Manhattan CenterStone / Revit / data normalization, data mapping, reporting and process documentation
mistressofthedorkness.blogspot.com/
0 Likes
Message 13 of 14

JamesMaeding
Advisor
Advisor

@Mistress0fTheDorkness 

Hey there,

I do a lot of bcad adaptation for lisp so am curious also.

I could not find the lisp in question though, can you point to it?

 

This whole exercise of entity pattern recognition can be handled really junky, or high quality.

Its similar to cleaning up GIS linework. You can handle tolerances, or expect exact numbers and that makes all the difference. Also, doing direct "compare everything to everything" does not scale well, so figuring out how to skip comparisons that will fail as matches is a big deal. Also multi-threading is so easy in .net that it always wins for choice of language. You program as if single thread, then switch a couple data types and the type of loop you run and it uses all cores.

Really, all companies in the cad use business should have at least 1 copy of acad and bcad. I especially like bcad for BPOLY use, it just works better and locks up less.

 


internal protected virtual unsafe Human() : mostlyHarmless
I'm just here for the Shelties

Message 14 of 14

Anonymous
Not applicable

A quick answer Acad uses .Fas Bricscad uses .Des or if core program will be in a Dll. Had a look at Bricscad express can not be used.

 

It appears to be a core program. 

0 Likes