Reading from .CSV file

Reading from .CSV file

Anonymous
Not applicable
1,347 Views
3 Replies
Message 1 of 4

Reading from .CSV file

Anonymous
Not applicable

Hi,

 

I want to read from a .csv file the coordinate and radius of a bunch of circles inside a square. My csv file contains information about X, Y, and radius of circles. Ultimately I want to extrude those circles and the space between them to make a cubic volum with fibers embedded in. I would be happy if anyone could help me with this issue.

I copy/paste a part of my .csv file in case it may help.

X           Y            R

5.7928, 0.98824, 0.98824,

9.0907, 6.299, 0.90929,

6.831, 5.8238, 0.43708,

8.8576, 4.6427, 0.45327,     

 

 Untitled.jpg

Best,

Babak

 

0 Likes
1,348 Views
3 Replies
Replies (3)
Message 2 of 4

VdVeek
Advocate
Advocate

Babak, In the ilogic Custom snippets you find ilogic code named "Read CVS File".

Rob.

Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi Rob,

 

I think that script reads a CSV file into an array. I have no idea about how to continue to sketch my circles using the information of their center as a Double (1,2) array, and the radius as a Double scalar.

 

Babak

0 Likes
Message 4 of 4

VdVeek
Advocate
Advocate

Have a look at the Programming help function of Inventor to find some examples about working with array's, creating a sketch, extruding parts. You need to learn some programing skills to write a script like you want. Search for code snippets and combine them to your needs.

First give it a try and show us what you find out, then probably someone can help you further.

Rob.

Autodesk Inventor 2015 Certified Professional & Autodesk Inventor 2012 Certified Professional.
0 Likes