Community
Inventor Programming - iLogic, Macros, AddIns & Apprentice
Inventor iLogic, Macros, AddIns & Apprentice Forum. Share your knowledge, ask questions, and explore popular Inventor topics related to programming, creating add-ins, macros, working with the API or creating iLogic tools.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Reading from .CSV file

3 REPLIES 3
Reply
Message 1 of 4
Anonymous
1023 Views, 3 Replies

Reading from .CSV file

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

 

Tags (2)
3 REPLIES 3
Message 2 of 4
VdVeek
in reply to: Anonymous

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.
Message 3 of 4
Anonymous
in reply to: VdVeek

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

Message 4 of 4
VdVeek
in reply to: Anonymous

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.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report