Inventor ETO Server Web Samples ------------------------------- Version: Inventor ETO 2013, 6.0 Sample Revision, 6.0.1 $Date: 2012/07/20 $ Description The samples included here can be seen at http://etosamples.autodesk.com/ It includes the Filter web sample, Conveyor System web sample and the Spiral Staircase web sample. Read this document and follow the instructions to build and run the samples. Prerequisite 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 Components .. -- Root directory of the samples ( {path} ) | +---Autodesk.ETO.UI.FilterDemo -- Filter Application | | | \---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 | +---IntentServices | | | \---WebSamples | | WebSamples.sln -- Web Samples solution file. | | | \---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 | | | \---IntentServicesWebSamples -- Contains the code for the Web application. | Web.config -- Web configuration file | *.* -- Many project source files | +---InventorETOConveyorDemo -- Conveyor Application. | | | \---InvETO Files -- ETO support files for the application. | | Conveyor.ipj -- Custom Inventor project file configured to use the support files. | | | +---Design Files -- Intent Design Scripts and icons | | *.iks | | *.ico | | | +---InventorParts -- Adopted part files used by the application. | | *.ipt | | | \---Templates -- Any custom Inventor template files. | *.* | \---Redistributed Public Inventor -- ETO Samples including Spiral Staircase | ETO Samples.ipj -- Custom Inventor project file configured to use the support files. | +---Design Files -- Intent Design Scripts and icons | \---{Other Support Folders} Set-Up 1. Copy the Filter application files (Autodesk.ETO.UI.FilterDemo),(Conveyor Application files (InventorETOConveyorDemo) and the other ETO Samples files (Redistributed Public Inventor) to the machine running ETO Server. 2. Add the Filter, Conveyor and Spiral Staircase applications 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 Conveyor Configuration Application Name: Conveyor Host Type: InventorServer Design: ConveyorSystem Project: {path}\InventorETOConveyorDemo\Conveyor.ipj Spiral Staircase Configuration Application Name: Staircase Host Type: InventorServer Design: spiralStaircase Project: {path}\Redistributed Public Inventor\ETO Samples.ipj 3. Configure the client endpoints in the web.config file to use the ETO Server you have configured. Config File: {path}\IntentServices\WebSamples\IntentServicesWebSamples\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}\IntentServices\WebSamples\WebSamples.sln If there are compiler errors, make sure the references resolved properly. If they did not, re-add them from the ETO Series/ETO Server install\bin directories. 5. Copy the FilterSample.Actions dll from {path}\IntentServices\WebSamples\FilterSample.Actions\bin\Debug to {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs\Actions 6. Copy the FilterSample.HostAPI.dll from {path}\IntentServices\WebSamples\FilterSample.HostAPI\bin\Debug to {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs 7. Build the Autodesk.ETO.UI.FilterDemo.Utils solution. There is a post-build step that should copy Autodesk.ETO.UI.FilterDemo.Utils.dll to {path}\Autodesk.ETO.UI.FilterDemo\Autodesk.ETO.UI.FilterDemo.Designs\Design Files 8. Run/Debug *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.