Inventor ETO Server Web Samples (Filter) ---------------------------------------- Version: Inventor ETO 2013, 6.1 Sample Revision, 6.1.0 $Date: 2012/12/07 $ Description The sample included here can be seen at http://etosamples.autodesk.com/ It includes the Filter web sample. Read this document and follow the instructions to build and run the sample. Prerequisites * Microsoft Visual Studio 2010 SP1 (Must be installed before Autodesk ETO Series 2013. See Autodesk ETO Series 2013 README file for details) * Autodesk Inventor ETO Series 2013 * Autodesk Inventor ETO Server 2013 * ASP.Net MVC 3 (This must be installed in addition to Visual Studio.) ----- Components .. -- Root directory of the samples ( {path} ) | \---Autodesk.ETO.UI.FilterDemo -- Filter Application | FilterSampleWebApp.sln -- Web Sample solution file. | \---Autodesk.ETO.UI.FilterDemo.Designs -- ETO support files for the application | | FilterDemo.ipj Custom Inventor project file configured to use the support files. | | IntentHost.config Configuration file for custom host project to be used when defining the | | application in the Intent Services Configurator | | | +---Actions -- Directory to deploy the FilterSample.Actions.dll file | | | \---{Other Support Folders} | +---Autodesk.ETO.UI.FilterDemo.Utils -- Contains the code for the Filter sample's zip utility | +---FilterSample.Actions -- Contains the code for the Fitler sample's Actions (to create quotes, etc) | *.* -- Project source files | +---FilterSample.HostAPI -- Contains the code for the Filter sample's custom HostAPI implementation | *.* -- Project source files | +---FilterSample.Silverlight -- Contains the code for the Filter sample's Silverlight application | ServiceReferences.ClientConfig -- Silverlight client configuration file | *.* -- Project source files | \---FilterSampleWebApp -- Contains the code for the Web application. Web.config -- Web configuration file *.* -- Many project source files Set-Up 1. Copy the Filter application files (Autodesk.ETO.UI.FilterDemo) to the machine running ETO Server. 2. Add the Filter application to ETO Server using the Services Configurator. (See documentation on Autodesk WikiHelp http://wikihelp.autodesk.com/Inventor_ETO/) Filter Configuration (Requires two applications to be configured) Application 1 Name: FilterDemo Host Type: Custom Design: FilterAssembly Project: {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs\IntentHost.config Application 2 Name: FilterDemoInventor Host Type: InventorServer Design: FilterAssembly Project: {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs\FilterDemo.ipj 3. Configure the client endpoints in the web.config file to use the ETO Server you have configured. Config File: {path}\Autodesk.ETO.UI.FilterDemo\FilterSampleWebApp\Web.config Element XPath: /configuration/system.serviceModel/client/endpoint The default values are "net.pipe://localhost/Autodesk/Intent/Services" and "net.pipe://localhost/Autodesk/Intent/Services/RemoteUI" but they will need to be changed if, for example, ETO Server is running on a different machine from your web application or you modified the server's endpoint configuration for any other reason. 4. Build the web samples solution Solution File: {path}\Autodesk.ETO.UI.FilterDemo\FilterSampleWebApp.sln If there are compiler errors, make sure the references resolved properly. If they did not, re-add them from the ETO Series/Server {install}\bin directories. There are post-build steps that should copy the outputs from three of the projects to the correct locations under {sln_path}\Autodesk.ETO.UI.FilterDemo.Designs\... if the directory exists. However, if you are running ETO Server on a different machine or otherwise copied the designs to a different location for ETO Server to run, you need to copy the outputs to the location you configured in step #2. Otherwise, you can skip the next three steps. 5. Copy the Autodesk.ETO.UI.FilterDemo.Utils dll from {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Utils\bin\Debug to the location configured in step #2 under {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs\Design Files 6. Copy the FilterSample.Actions dll from {path}\Autodesk.ETO.UI.FilterDemo\FilterSample.Actions\bin\Debug to the location configured in step #2 under {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs\Actions 7. Copy the FilterSample.HostAPI.dll from {path}\Autodesk.ETO.UI.FilterDemo\FilterSample.HostAPI\bin\Debug to the location configured in step #2 under {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs 8. Run/Debug the FilterSampleWebApp project *Note: the Silverlight project's ServiceReferences.ClientConfig assumes the application is at the root directory of the web server and uses a relative path. If you are using IIS with a sub-directory, you will need to update the endpoint address.