.NET

.NET

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

.Net code to import polylines from excel

412 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: 785
Registered: ‎02-25-2013
Message 2 of 6 (395 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


AutoCAD® 2014, and Civil 3D® 2014 Certified Professional ~ Autodesk® Authorized Developer

Contributor
oman_lover2009
Posts: 13
Registered: ‎10-24-2011
Message 3 of 6 (385 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: 785
Registered: ‎02-25-2013
Message 4 of 6 (369 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


AutoCAD® 2014, and Civil 3D® 2014 Certified Professional ~ Autodesk® Authorized Developer

Contributor
oman_lover2009
Posts: 13
Registered: ‎10-24-2011
Message 5 of 6 (362 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 (355 Views)

Re: .Net code to import polylines from excel

04-20-2013 10:46 PM in reply to: oman_lover2009
Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.