Configuring the Creo View Adapter for SolidWorks > SolidWorks Interactive Publishing > Using swpublish
  
Using swpublish
The swpublish script is created when you used the sw2pv_config program described in the last chapter. This file is located in the selected <setup_directory>.
To run swpublish from the command line, type:
<setup_directory>\swpublish
This opens a session of SolidWorks. The Publish to Creo View option is available in the main SolidWorks File menu.
On Windows, you can also double-click the swpublish.bat file located in the <setup_directory>.
* 
For quick access to interactive publishing, create a shortcut by right-clicking the swpublish.bat file and selecting Send to > Desktop (Create Shortcut).
To run and test swpublish, follow these steps:
1. Open a command prompt and run swpublish. A session of SolidWorks starts.
2. Open the CAD data that you want to interactively publish.
3. With the CAD data in view, select Publish from the main menu. The following sub-menus are displayed:
a. Recipe File
Selecting this option opens a dialog box, where you specify the name of the recipe file you want the adapter to use while converting the CAD data. If you do not use this option, the adapter uses the configuration recipe file. See section Introduction to Recipe Editing for Converting CAD Data for more information.
b. Output Path
Enter the path to the directory where you want to place the converted files once they are published. If you entered a default path in the recipe file, you do not need to use this option.
c. Publish to Creo View
Select this option to initiate publishing.
4. Once you have published the current CAD data, you can open the output in Creo View.
You have now published data interactively using swpublish.