• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

macro import points

  • Thread starter Thread starter iron72
  • Start date Start date

iron72

Guest
Good evening, everyone.
I made a macro where he has to take points from a text file and bring it back to the sketch
I just can't give the path of the folder that contains the file with x and y values.
Can anyone help me?
I attach here the vba file
Thank you.
 

Attachments

then, replace your "open" command with:
open "c:\filetestoinventor\prova.txt" for input as nfile

then, in the end, you had wrong education:
'creation of the spline
osketch.sketchsplines.add points

After that, create the folder "c:\filetestoinventor" and save us the file test.txt.
inside the text file, place the coordinates of the points (at least 3) and remember to separate them with the comma.
:finger:

to the next
:smile:
 
Thank you so much avoplus, everything works.
you could tell me a link where there is a tutorial explaining how the vba code for inventor works or you also know a link where you can download examples of macro comments.
 
Thank you so much avoplus, everything works.
you could tell me a link where there is a tutorial explaining how the vba code for inventor works or you also know a link where you can download examples of macro comments.
Unfortunately, I do not know any reference site. you can find something starting from the autodesk website, then spulciando tra i vari blogs.
In my opinion, the most valid among all is this:http://modthemachine.typepad.com/my_weblog/cation
:smile:
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top