Attention: Maintenance on monday 19.04.2021 from 07:00 - 13:00 (Gitlab and Mattermost are offline!)

Readme.txt 2.91 KB
Newer Older
Constantin Jucovschi's avatar
Constantin Jucovschi committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
	Installation
	=======================
	1) Open the project in Visual Studio Professional 2012.

	2) Right-click on the project name --> Properties --> Build --> OutputPath. Change the "C:\" in the path to the correct drive letter.

	2') Right-click on the project name --> Properties --> Build Events --> Post-build event command line. 
		Change the "100" in %VS100COMNTOOLS% to reflect the version of your Visual Studio. 
		For Visual Studio 11, use %VS110COMNTOOLS%.


	3) To see if protocol-definition\common.proto has changed, do an update (it's an external), then run 

		GenerateCommonProtocolClasses.bat

	   to update Common.cs with generated classes. *NOTE* a bug in the protobuffer library sometimes omits the "_" before appending List to certain generated class names. Do that yourself if necessary.

	4) Build the project in Visual Studio. The following files are copied automatically to the path in OutputPath:

		cometd2.dll
		Google.ProtocolBuffers.dll
		Google.ProtocolBuffers.Serialization.dll
		InventorAlex.dll

	5) Copy 
	
		sally-1.0.war
		sally-1.0-jar-with-dependencies.jar 
			 
	   to the same folder.

	6) Copy 
	
		Autodesk.InventorAlex.Inventor.addin

	   to the _parent_ folder.

	The add-in is loaded automatically when you open a document in Autodesk Inventor 2013.
   
   
	Dependencies
	=======================

	- lib/cometd/cometd2.dll   comes from https://github.com/Oyatel/CometD.NET
	- lib/protobuffer/*        comes from http://code.google.com/p/protobuf-csharp-port/


	In General: How to Register/Unregister as Autodesk Inventor Add-In
	=======================

	1) Build Project;

	2) Copy add-in dll file to one of following locations: 
		a) Anywhere, then *.addin file <Assembly> setting should be updated to the full path including the dll name
		b) Inventor <InstallPath>\bin\ folder, then *.addin file <Assembly> setting should be the dll name only: <AddInName>.dll
		c) Inventor <InstallPath>\bin\XX folder, then *.addin file <Assembly> setting shoule be a relative path: XX\<AddInName>.dll

	3) Copy.addin manifest file to one of following locations:
		a) Inventor Version Dependent
		Windows XP:
			C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor [version]\Addins\
		Windows7/Vista:
			C:\ProgramData\Autodesk\Inventor [version]\Addins\

		b) Inventor Version Independent
		Windows XP:
			C:\Documents and Settings\All Users\Application Data\Autodesk\Inventor Addins\
		Windows7/Vista:
			C:\ProgramData\Autodesk\Inventor Addins\

		c) Per User Override
		Windows XP:
			C:\Documents and Settings\<user>\Application Data\Autodesk\Inventor [version]\Addins\
		Windows7/Vista:
			C:\Users\<user>\AppData\Roaming\Autodesk\Inventor [version]\Addins\

	4) Startup Inventor, the AddIn should be loaded

	To unregister the AddIn, remove the Autodesk.<AddInName>.Inventor.addin from above mentioned .addin manifest file locations directly.