I can't just start a new istance bacause the main idea of this appliacation was to check if the Alibre is running or not - its a part of design time control
Hello,
I wrote a Windows service application and installed it, but the function GetActiveObjets return FAILED result (even if Alibre is working). The same code works good in a standard VCL application.
hr = GetActiveObject (clsid, NULL, &pUnk);
if (FAILED (hr))
{...
Example:
When opening a BOM session, I get a extra list of sessions for all parts that are included in the BOM.
How to distinguish whether a given session is independent or whether it was created as a result of opening an assembly, drawing or BOM.
BR
Marcin
Thank you for your reply, yes it was an example VB code.
I'll try your code, but temporary I testes this solution and it sems to work:
int count;
VARIANT Myindex;
Root->Sessions->get_Count( &count);
for(int i=0 ; i<count ; i++)
{
Myindex.lVal = i; //session index
Myindex.vt =...
Hello all,
My task is to get the list of all openned sessions.
I need to know the parts and assemblies NAMES and file paths (if saved).
Is there any existing example code for C++ develpment.
Note:
I dont't have an "Item" object when using C++.
objRoot.Sessions.Items(1)