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,
Best,
Babak
Babak, In the ilogic Custom snippets you find ilogic code named "Read CVS File".
Rob.
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
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.
Can't find what you're looking for? Ask the community or share your knowledge.