I wrote a sample macro that accesses the model referenced by a drawing and its custom properties. If you want to take a look at it, it might be helpful in seeing how to get access to the model, etc. It's on my webpage, www.customsolids.com, go to the bottom of the main page where it says...
It is a good idea to explicitly re-reference the assembly to each of its child documents using
retval = SldWorks.ReplaceReferencedDocument ( referencingDocument, referencedDocument, newReference)
Granted, this is tedious business, but it often seems to be necessary when copying files through...
Yes, that's the one. If you use the "Open" verb as its verb parameter, ShellExecute will use the same command-line type of default behavior that you get when you do a right-click Open on the filename from Windows Explorer. (You can see the syntax for these command lines in the...
One more thought on getting your update process to run automatically...
I forgot that you're using SmarTeam. SmarTeam also employs event-type "hooks" to which you can attach scripts to be run when triggered by certain activities (for example, before check-in, after check-out, etc.)...
You could write a macro that is manually activated each time you want the density/crosshatch to update from the Config properties. If you need something more automatic, you may need to do this in the form of a DLL that registers for events in the SolidWorks environment (e.g. saving a file) and...
This type of error can be caused in many ways.
If you are doing this in the SW VBA macro editor, one thing you might want to check is to make sure execution is beginning with your sub main. If you have your cursor elsewhere when you start running/debugging through your code, sometimes the...