Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations cowski on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by JonathanAnderson

  1. JonathanAnderson

    Gettting preview bitmap

    The easy way to do this is to load SolidWorks in the background and use the GetPreviewBitmap method. The harder way to do this is to read the bitmap from the SW file itself. The SolidWorks files use the OLE structured storage, and the preview bitmap is in the stream called "Preview" if I...
  2. JonathanAnderson

    Dell Precision M70 - WUXGA - Cripes

    I would run it at it's highest resolution and try increasing the DPI setting and using large icons. You said that the fonts were still a little light weight after that. To fix this, take a look at Microsoft's ClearType for WindowsXP (it's free) available at...
  3. JonathanAnderson

    SW2006 creates bmp files in temp

    Oh well. I have to deal with the addin thing as a programmer, so I figured that's what it was. I guess some of the internal SW stuff could be using the same mechanism. And if it's not cleaning up after itself even without a crash, then that's just programmers forgetting to clean up after...
  4. JonathanAnderson

    SW2006 creates bmp files in temp

    The bitmap files are the icons used in SolidWorks add-ins. So any tool that loads as an add-in will create these files. This is due to the way that SolidWorks forces you to load your toolbars as an addin. There used to be a way that you could just point SW to use memory loaded by your addin...
  5. JonathanAnderson

    Rounding off dimensions

    The practice of always rounding toward the even number is generally referred to as the even/odd or odd/even rule. As was mentioned it only applies when the last digit is a 5 and there are no other non-zero digits after the 5 (.125 -> .12, but .1251 -> .13). The reason for this is that...
  6. JonathanAnderson

    sans PDMWorks - copy project?

    Brian, let me get this straight. You want a macro/program that does the following: a) pick source and destination directories b) copy all SolidWorks files (including drawings) from source to destination, including all files in sub folders c) replace references in the destination directory to...
  7. JonathanAnderson

    sans PDMWorks - copy project?

    I've done something like that for my company. It's not a very hard process. Basically, call SldWorks.GetDocumentDependencies2 and then go through the list returned by that and call SldWorks.ReplaceReferencedDocument to change the references. I don't have a general purpose macro, but that's...
  8. JonathanAnderson

    OT - Batch Files

    Right click on the vbs file, and then create shortcut. Now right click and go to properties on the shortcut. There is a field that says "Start In" (the wording might be a little different on another version of Windows - I've got XP). That is the directory that the script will run in. So if...
  9. JonathanAnderson

    OT - Batch Files

    This job can actually be done pretty easily with the windows scripting host using VBscript. Just make a .vbs file such as mkfolders.vbs, and use the following contents: ----CUT HERE---- Dim fso, num, jobfolder num = InputBox("Enter job number") Set fso =...
  10. JonathanAnderson

    get component by feature

    There are two ways I can think of. 1) I can't remember whether or not this will work, but you could try using the Entity interface on the feature and then using Entity.GetComponent. 2) Use feature.Select and then use SelectionMgr.GetSelectedObjectsComponent2 Hope that helps, Jonathan Anderson

Part and Inventory Search