Tick -
Getting closer. I'm using the DSO to get the created on date, but how are you returning the Installation information? I looked at everything DSO allowed and didn't see anything like that. In fact it wouldn't return SolidWorks as the application.
Also in testing I modifed a copied...
I'm trying to clean our server ...
I've written code that searches a given location for assembly files and returns all of the components referenced within.
I then compare filenames to our "vaulted" parts and return a list of matches. I was then using File Size to determine if the files were...
That is correct, you can reorder the way they appear in the list. But the tags remain in the same order determined by SW. What I'm looking to do is have the tags start at "1" with the first entry being the first entity I select followed by the next one I select. I could create another column...
Like I said, I've saved a template that gives me exactly what I want, but in whatever order SW determines. If I add holes one at a time (select the table in the feature tree -> Edit Feature -> Add Hole) then select it will add them to the bottom of the list, but that's pretty combersome...
Actually this is what I ended up using. Thanks to both of you though.
Function IsAppRunning(ByVal sAppName) As Boolean
Dim oApp As Object
On Error Resume Next
Set oApp = GetObject(, sAppName)
If Not oApp Is Nothing Then
Set oApp = Nothing
IsAppRunning = True
End If
End Function
Just can't seem to get it to work. I want to test to see if there is an currently running session of solidworks. On the API help SW page it says to use the "GetObject" command but doesn't give the syntax.
Here's what I want:
debug.print "Look for active SW session."
Look for a session line...
Everything is working well with the program that I have written thanks to a lot of help from users of this forum. One additional request has been made to add to my program: The ability to dissolve sub-assemblies into top level assemblies. This is a one line command if I am using 'SolidWorks'...
With the help of this forum and lots of trial and error my program is functioning as intended.
I have had a request to add the ability to change a specific dimension within an assembly to my program. Before I start down a path, is it possible to edit geometry such as dimensions defining...
Wow, didn't know I was opening the Pandoras box with this one. For the record here's what I was doing with the code I originally requested.
I set up a basic VB exe that displays a form prompting the user for an assembly to start from and a new location. The overall goal is to copy and rename...
Fortunately as a general rule we don't use in-context references here . . . at least not in the files I'm dealing with right now. Thanks for the catch though, I'll incorporate that as well.
The only thing I've changed at this point is using a multi-dimensional array for parsing out the...
I've heard about the migration in fact I found this in the API documentation:
"If you developed your application using Visual Basic 6.0 on Windows XP, then the controls on your forms and dialogs might behave unexpectedly. Therefore, it is recommended that you port your application to Microsoft...
There's an API book on amazon for SW2006. I know quite a bit changed in the API from '06 to '07. Does anyone think it still may be worth while to get or does anyone know if/when an '07 API book will be available.
Thanks