UI Tools Samples ------------------------------- Version: Inventor ETO 2013, 6.1 Sample Revision, 6.1 $Date: 2012/07/20 $ Description These samples are referenced by the UI Tools Tutorial at http://wikihelp.autodesk.com/Inventor_ETO/ 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 Components .. -- Root directory of the samples ( {path} ) | +---UI Tools Tutorial | | IntentHost.config -- Custom host project configuration file | | Table.iam -- Inventor assembly file for the sample | | UI Tools Tutorial.ipj -- Custom Inventor project file configured to use the support files | | UIToolsTutorial.sln -- Samples solution file | | | +---CombinedDesigns -- Intent designs for the web sample | | *.iks | | | \---Design Files -- Intent designs for the Inventor Addin sample | *.iks | +---UIToolsTutorial.Addin -- Inventor Addin Project | *.* -- Project files | +---UIToolsTutorial.Silverlight -- Silverlight Project | ServiceReferences.ClientConfig -- WCF client configuration file | *.* -- Project files | \---UIToolsTutorial.Silverlight.Web -- Web project to host the Silverlight application Web.config -- Web project configuration file *.* -- Project files Set-Up 1. Copy the "UI Tools Tutorial" files (Table designs and other application files) to the machine running ETO Server. 2. Add the Table application to ETO Server using the Services Configurator. (See documentation on Autodesk WikiHelp http://wikihelp.autodesk.com/Inventor_ETO/) Table Configuration Application Name: UIToolsTutorial Host Type: Custom Design: Table Project: {path}\UI Tools Tutorial\IntentHost.config 3. Configure the client endpoints in the web.config file to use the ETO Server you have configured. Config File: {path}\UIToolsTutorial.Silverlight.Web\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 solution Solution File: {path}\UI Tools Tutorial\UIToolsTutorial.sln If there are compiler errors: 1) Make sure the references resolved properly. If they did not, re-add them from the ETO Series/ETO Server install\bin directories. 2) The UIToolsTutorial.Addin project has a post-build step to embed the manifest. If this mt.exe post-build step fails with error code 9009, then you probably need to add the path to mt.exe to the PATH environment variable and then restart Visual Studio. For VS2010, mt.exe can be found here: C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bin 5. Run/Debug 1) For the web application: - set UIToolsTutorial.Silverlight.Web as the StartUp 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. 2) For the Inventor Addin application: - start Inventor - attach the debugger to the process Debug menu->Attach to Process set Attach to: Managed (v4.0) code select Inventor.exe - enable the addin in Inventor (tools->add-ins, select UIToolsTutorialAddin and check Loaded/Unloaded) - load the UI Tools Tutorial.ipj project - open the Table.iam assembly