←  Technical Questions

nanoCAD forum

»

Creating Lines from excel/text file

Dirk_1's Photo Dirk_1 20 Jul 2020

Hi all, I am struggling with importing xy lines into Nanocad, it doesn't seem as though I can just save a text file as a .scr like in draftisght or autocad.
I have a pretty basic set (but a large quantity) of xy coordinates I would like to draw as lines. I can manually enter the line command followed by my points but I have 16.5k lines to enter.
My question is if a visual basic script already exists to import lines or some help developing one. I also might be skipping over an even easier solution so please let me know.

An example of how my excel lines look:
0,1 -0.2773501,0.5839748 0,2 0.2773501,1.583975 0,3 -0.2773501,2.583975
all in one column.

I am not a well versed programmer and have tried to see if this nancad dev. guide will help without much luck.
http://developer.nan...lassic-net-api/
Quote

pguimber's Photo pguimber 21 Jul 2020

Hello,
maybe, it would be necessary to look in the existing LISP, to adapt one if necessary.
Quote

Dirk_1's Photo Dirk_1 21 Jul 2020

pguimber, where would I be able to find a guide using LISP? It is something I am completely new to.
Quote

pguimber's Photo pguimber 24 Jul 2020

Hello,
see in Web, for exemple :
https://www.developpez.com/
https://www.cours-gr...com/cours-lisp/

English or french and other...
I'm not expert in Lisp, only curious!
Quote