.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Delete Poly line with in block in entire drawing

3 REPLIES 3
Reply
Message 1 of 4
cvnp
1500 Views, 3 Replies

Delete Poly line with in block in entire drawing

Hi All,

I am new to dotnet.
Please any one help me to how to delete polyline within a Block by using C#.net.

3 REPLIES 3
Message 2 of 4
mzakiralam
in reply to: cvnp

HI,

 

every line which you need to delete is inside the block. So what you need to do that is you have to select a line and a block and find out whether that line starting and end point inside of a block or not. if it is then you can delete that line. to find the algorithm and you can go through below link

 

http://forums.autodesk.com/t5/NET/Is-Point-inside-Polygon-or-Block-s-Area/td-p/3164508

Message 3 of 4
BKSpurgeon
in reply to: cvnp

I'm trying to work out how to do this too. was hoping there would be some simple code on a past solution i could copy. I don't know the answer, but this will help you, i think:

 

This is the .net Developer's guide. IT is your friend:

 

http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS73099cc1...

 

You will need to read the parts concerning:

 

(i) blocktables, blocktablerecords, 

(ii) selection sets

(iii) transactions.

 

A solution to your task would be: first identify the line (perhaps use a filter on a selection set) then remove it from the "model space".

 

 

 

 

 

 

Message 4 of 4
BKSpurgeon
in reply to: cvnp

Ok found the answer.

 

This example creates a lightweight polyline, then erases it.

 

In the .net developer's guide: http://docs.autodesk.com/ACD/2010/ENU/AutoCAD%20.NET%20Developer's%20Guide/index.html?url=WS73099cc1...

 

enjoy!

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost