Skip to content
This repository has been archived by the owner on Jul 7, 2021. It is now read-only.

Replaces all instances of a SolidWorks reference in a SolidWorks Drawing, Assembly, or Part.

Notifications You must be signed in to change notification settings

jasonnicholson/ReplaceReference

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Author: Jason Nicholson
Date Started: 2011-Sept-12
Last Date of README Update: 2011-Oct-4

#Goal: This project is for creating a console application that replaces a reference.

#Compiling Prerequisites: You must have the SolidWorks Document Manger Key and the SolidWorks Document Manager DLL to compile this code. You may obtain a key from the SolidWorks API division FOR FREE. Visit: http://www.solidworks.com/sw/support/apisupport.htm for more info. You need a C# compiler with .NET 4. I used the Microsoft Visual C# 2010 Express.

#Binary Use Prerequisites: You must have .NET 4. I am not sure if this will run with mono. You must have the SolidWorks Document Manager DLL installed. You may obtain it from SolidWorks.com in the download section. You will have to # to the Customer Portal to get the download file. From my understand of the license agreement I signed with SolidWorks for the Document Manager, I have the right to distribute the DLL and my code as long as I don't distribute my key. Until I get the licensing completely figured out, I will not distribute the SwDocumentMgr.dll with my project. You may obtain Document Manager instructions from the SolidWorks API Help "Getting Started" section. At the time of writing this, here is the address of the "Getting Started" page of the Document Manager: http://help.solidworks.com/2011/English/api/swdocmgrapi/SolidWorks.Interop.swdocumentmgr_GettingStartedSWDocMgrAPI.html?id=a6e51b17163d4174b8c2c25c0f0afdac#ApplicationBasics

#Where to get the Binary: its located in ReplaceReference\ReplaceReference\bin\Release\ReplaceReference.exe

#Documentation: None yet

#Known Issues: -none

Command Line Instructions

Syntax 
    [option]    [ParentFilePath]   [ChildFilePath] [NewChildFilePath]

No wildcars allowed. If the path has spaces use quotes around it.  Note that
the files must have one of the following file extensions: .sldasm, .slddrw, 
.sldprt, .asm, .drw, or .prt.  The NewChildFilePath must exist.  The output 
is tab delimited.  This makes it easy to redirect the output to a text file 
that can be opened as spreadsheet.

Options  
    /q      Quiet mode.  Suppresses the current message.  It does
            not suppress the one line error messages related to problems
            opening SolidWorks Files.  Quiet mode is useful for batch files
            when you are directing the output to a file.  The main error 
            message is suppressed but you are still informed about problems 
            opening files.

Version 2011-Oct-4 21:30
Written and Maintained by Jason Nicholson
http://github.com/jasonnicholson/ReplaceReference'

About

Replaces all instances of a SolidWorks reference in a SolidWorks Drawing, Assembly, or Part.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages