I have tried the macro record method. I have created macros to turn on and turn off the sheet format. They error on the line :
Part.SetupSheet4 "Sheet1", 12, 12, 1, 1, False, "C:\Program files\SolidWorks\data\Templates\belcan\a3paper.slddrt", 0.42, 0.297, "Default", False
I would like to turn off my sheet formats before doing a save as DWG. I am having trouble getting the sheet.sheetformatvisible property to work in VB. Would someone please show me how a VB program that would just do this one thing would like ? By the way, this appears to be a new property for...
My problem is that the eDrawings icon in the Office toolbar is grayed out and does nothing. All the other Office icons are ok. EDrawings is not listed under Addins. There also is no "Publish to eDrawings" under the File menu. Is there a way to re-install eDrawings Pro ?
I have installed...
Bradley;
Thanks for reply. I'm not sure where the difference is in your suggestion. Do mean the part.custominfo will work, whereas part.custominfo2 (as in my example) does not work ?
I suspect my problem is in the "Set Part = swApp.ActiveDoc" area, because I think this information is...
How can I read a $PRPSHEET value in VB6 ? I have tried the following without success:
----
Set swApp = CreateObject("SldWorks.Application")
Set Part = swApp.ActiveDoc
Customer_string = "$PRPSHEET:" & Ch(34) "Customer_dwg_name" & Chr(34)
Customer_dwg_name =...
The problem could be handled by providing a means to 'saveas' html within Solidworks. Then the Solidworks API could be used to create a batch program. This would seem to be easier than providing an entire API for eDrawings.
Don Michaels
DimSH;
I want to thank you for the tip. Nobody else was willing to try this one, but you were ! Although I think it's a little risky to be deleting Soldworks files while someone has them open, you were the only one that responded. Thanks again.
Don Michaels
Is there an easy way to test to see if a file is currently open by another application ? I am working on a VB project that requires the file to not be open before I access it. (I am using DSOFile (from Microsoft) to access document properties)
We are creating large assemblies with many subassemblies. Is there a way to un-hide and resolve all of the subassemblies and parts easily ? I have used a 'new configuration' and checked on "New Configuration Showing All Referenced Models" and given it a new name. This works partially...
Netshop21;
Thanks for tip. Yes, we are doing this as well. It works great for drawings, but for part and assembly models, the variable driven note, although it works, it is inconsistant (for example, where did it go...?) . I have added the info to our footers on the asmdot and prtdot files. This...
Yes, that is more like it. This will be much more consistent than the note and variable technique. Too bad it doesn't allow for full path names. Now I need to figure out how to set this for everyone. I'll first try the standard templates. Or, maybe I'll be able to find it in the registry and...
Scott;
Wow, that "partno" variable column is important. Thanks for the tip. I will add it back into my custom BOMs. Things just don't work right without it, for example the quantity doesn't work.
Don.