Hi All,
I am new to dotnet.
Please any one help me to how to delete polyline within a Block by using C#.net.
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
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:
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".
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!