Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

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

Search results for query: *

  1. CSolids

    Solidworks macro question

    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...
  2. CSolids

    Errors resolving assembly references

    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...
  3. CSolids

    Launching SolidWroks from the Command Line

    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...
  4. CSolids

    Custom Property write to Density and Hatch Pattern

    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.)...
  5. CSolids

    Custom Property write to Density and Hatch Pattern

    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...
  6. CSolids

    API Run-Time error '91':

    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...
Back
Top