Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

identifying closed loops formed between polylines

ksakethk
Contributor

identifying closed loops formed between polylines

ksakethk
Contributor
Contributor

Hello,

 

I am simulating (2D) heat transfer on window standing on facade of a building. Geometry is made in AutoCAD or sometimes in draftsight.

 

I assign layers in AutoCAD according to material. The geometry is full of closed polylines. This enclosed area contains the material and material properties are assigned in another tool. 

 

In this process, some closed areas/gaps are formed between the polylines which also contain material (air in my case) but do not explicitly belong to any layer. To assign material here, I have to perform some work around in simulation tool which is time consuming. Is it possible to identify such loops and assign them to layer or something like that?

 

I am attaching my dwg file and a screenshot of the loops that I expect to identify.

 

Thanks in advance.

 

Regards,

Saketh

0 Me gusta
Responder
251 Vistas
2 Respuestas
Respuestas (2)

jrreid
Advocate
Advocate

This is what we used to do for GAPs as we called it.

This sometimes take a little time effort but you find many small mistakes doing this for the project.

Make a Layer named GAP.  Copy all of your lines over 150 (just some number you know how to copy back over).

Explode all line work and put them all on the GAP layer.

Remove all unneeded lines so you end up with only the GAP outlines.

Use Pedit M command and select them all then select Join. If a segment don't close like yours did not.

track the error by selecting each section and use Pedit E and keep hitting return until it stops. That is where your error occurs. Fix the error. In your case I went back to the original and need two horizontal lines and coped them over. Trimmed them up and ran Pedit M again. Found another on the left side that need two lines trimmed.

Run Pedit M again and all segments closed and now you have 3 complete segments on layer called Gap.

 

I placed the cad file here for your viewing. You would only need to copy over the GAP lines 150 and begin your process.

 

Hope this helps.

 

JRR.

ksakethk
Contributor
Contributor

@jrreid Thank you very much.

 

I will try it.

 

 

0 Me gusta