I believe I know the answer, but I just want to verify:
Cube Rules are NOT accessible in the TM1 .NET API?
Seems silly that I can get to cube rules through the Java API, the C/C++ API, but not using the C#/VB.NET library.
I mean, I guess I could write a wrapper library in C++ using the C libs, but that's a lot of work. And I can see there is a _TM1Rule class, but it is inaccessible.
.NET API and Cube Rules question
-
- Posts: 23
- Joined: Wed Sep 30, 2009 1:41 pm
- OLAP Product: TM1
- Version: 9.4.1 FP03 32-bit
- Excel Version: 2007
Re: .NET API and Cube Rules question
Apparently there is a way to convert the Java TM1 API into a COM-exposed (and usable by .NET) DLL file.
For this, you need to download (or have installed) the latest Sun Java JDK and JRE as well as Visual Studio (any version will do - maybe even express).
Next, if it doesn't already exist, create a directory in the jre1.5.0_20 root (my version is jre1.5.0_20) called "axbridge" and another one under axbridge called "bin".
Copy the TM1JavaAPI.jar file to this axbridge\bin directory.
go to the command line (Run-->cmd) and navigate to your JDK\bin directory. For example, mine is jdk1.5.0_20\bin.
Execute the following:
This should then create a .dll file for you in your axbridge\bin directory and register the .dll with COM so you can then use it in .NET.
I haven't been able to try this yet because my machine is hosed, but in case anyone wants to try, let me know if it works.
For this, you need to download (or have installed) the latest Sun Java JDK and JRE as well as Visual Studio (any version will do - maybe even express).
Next, if it doesn't already exist, create a directory in the jre1.5.0_20 root (my version is jre1.5.0_20) called "axbridge" and another one under axbridge called "bin".
Copy the TM1JavaAPI.jar file to this axbridge\bin directory.
go to the command line (Run-->cmd) and navigate to your JDK\bin directory. For example, mine is jdk1.5.0_20\bin.
Execute the following:
Code: Select all
packager -out "C:\Program Files\Java\jre1.5.0_20\axbridge\bin" -reg "C:\Program Files\Java\jre1.5.0_20\axbridge\bin\TM1JavaAPI.jar" TM1JavaAPI
I haven't been able to try this yet because my machine is hosed, but in case anyone wants to try, let me know if it works.