I got it...In case anybody finds themselves with the same question,
All you need to do is define your variable (arrays in this case) as public outside of the Subs and make sure you run the module where you define it before you want to use the variable in a different module...
This question might seem trivial to many...I'm just not too familiar with VBA...Anyways, I have different modules set up, each creates an array of data that it reads from excel. I now need to use these arrays and be able to compare them and do some calculations. My idea was to create a new...
I finally got the program to do what I wanted... The problem ended up being the loop which was misplaced...Here's the code if someone else ever needs it..
However, right now I have it printing to the inmediate window and is looking for lines that start with "Ho"...
Thank to you all
Sub...
Peter,
My biggest problem is how to do the if statements that you are proposing, I cannot find the function to read the two left characters...I'd really appreciate any thoughts...
Thank you in advanced
I've been trying to do this for the past few days and cannot get it. All I want to do is break and initial text file that has a whole bunch of information in two files that contain only the lines that start with ND in one file, and the other file with all the lines that start with EL.
a Sample...
Ideally I'd like to move components a given distance and check for collision...However, I'm taking it one step at a time, and I would first like to move (translate) a given component "x" distance...How could I do this? I tried the "Use presentation transforms to move components example" for VB...
This is more API related...For a part in an assembly, if I want to know which other parts are contacting it, what's the best way? I know that I can do an envelope around the part, would that be the best? Any clues..please let me know...it would really help me... Thanks in advanced...
Javier
Regg,
What type of output did you get? I guess I still don't get anything or I am not clear where to look...I'll keep trying...but anyways thanks for all your help...I'm sure going in a better track now...
Regg,
I tried what you suggested and it still doesn't work...It might be that I'm not putting the code in the right place in visual basic. When I go in, I choose standard EXE for project type, I then double click in the form and paste the code from solidworks, I then click start and nothing...
So I'm trying to use the sample programs in the solidworks api help files for visual basic and have not had any luck...Do I need to do something in visual basic to make those sample programs run?...They compile just fine but nothing happens when I run them...I'm not too familiar with visual...
In solidworks when you go to Help>HelpAPI and add-ins help topics, you'll get to the API help files...Under the context tab go to Solidworks API Help>Examples>Visual Basic Examples > Assemblies>GetMates and get entities...This is the sample file that I was trying to use, but it could be any of...
I'm not familiar with visual basic...However, all I'm trying to do is use one of the sample programs in the Solidworks API for visual basics but I can't do it. It seems to compile just fine, but nothing happens, I don't know if I need to set something...I'm all confused...If any of you have any...