.NET

Reply
Contributor
oman_lover2009
Posts: 13
Registered: ‎10-24-2011
Message 1 of 6 (403 Views)

.Net code to import polylines from excel

403 Views, 5 Replies
04-20-2013 07:59 AM

Hi 

I have an excel file with a column containing polygon vertices like follows:

Row 1 x-Cord1|y-Cord1 x-Cord2|y-Cord2 x-Cord3|y-Cord3....
Row 2 x-Cord1|y-Cord1 x-Cord2|y-Cord2 x-Cord3|y-Cord3....
Row 3 x-Cord1|y-Cord1 x-Cord2|y-Cord2 x-Cord3|y-Cord3....
.........

I am looking for a .Net code that can read each row cell and draw the polygons automatically in AutoCAD window. I am having a bout 100 rows (polygons) and hence I prefer that the code will display all polygons at once in AutoCAD window and not draw them one by one. 

I am already having Autolisp code to draw them one by one but I wish to have a .Net code to allow batch polygons drawing instead.

Thanks a lot for any assistance

Distinguished Mentor
BlackBox_
Posts: 773
Registered: ‎02-25-2013
Message 2 of 6 (386 Views)

Re: .Net code to import polylines from excel

04-20-2013 09:34 AM in reply to: oman_lover2009

... Duplicate thread at AUGI... And another at CADTutor here.



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Contributor
oman_lover2009
Posts: 13
Registered: ‎10-24-2011
Message 3 of 6 (376 Views)

Re: .Net code to import polylines from excel

04-20-2013 11:20 AM in reply to: BlackBox_

Yes right, I have duplicated the thread in another two forums with the aim to get faster response.

Distinguished Mentor
BlackBox_
Posts: 773
Registered: ‎02-25-2013
Message 4 of 6 (360 Views)

Re: .Net code to import polylines from excel

04-20-2013 02:05 PM in reply to: oman_lover2009

oman_lover2009 wrote:

Yes right, I have duplicated the thread in another two forums with the aim to get faster response.


For completeness, from here:

 

[QUOTE=fixo]
[QUOTE=BlackBox]
That's great... For you... And only in theory.

 

I posted that in an effort to be respectful of others' time... Which is often wasted when one posts duplicate threads in such a close time frame... So that others' do not needlessly post a suggestion that has already been provided you elsewhere, resulting both in wasted effort on their part (unknowingly), and your frustration due to not solving the issue (unwittingly).

 

In reality... It can't be that pressing of a matter if you're relying on forums responses to help you learn / solve your issue, so perhaps it would be prudent to give it while before duplicating your future threads in multiple forums.

 

Good luck.

[/QUOTE]

 

Completely agreed :smileyhappy:

[/QUOTE]



"Potential has a shelf life." - Margaret Atwood


Autodesk Exchange Apps ~ Autoloader ~ AutoCAD Security

Contributor
oman_lover2009
Posts: 13
Registered: ‎10-24-2011
Message 5 of 6 (353 Views)

Re: .Net code to import polylines from excel

04-20-2013 09:50 PM in reply to: BlackBox_

Thanks BlackBox for your important note :smileyhappy:, I really appreciate what you have said. Such is quite useful for junior forum users like me to realize. 

Contributor
oman_lover2009
Posts: 13
Registered: ‎10-24-2011
Message 6 of 6 (346 Views)

Re: .Net code to import polylines from excel

04-20-2013 10:46 PM in reply to: oman_lover2009
Need installation help?

Start with some of our most frequented solutions or visit the Installation and Licensing Forum to get help installing your software.