What's new

Recent content by eendrigo

  1. E

    Selected objects

    Selected objects Hi, does anyone knows how to get a selected (with mouse click) object (line, point ..) in a sketch ? I tried with : IObjectCollectorPtr iObjectCollector=iSession->GetSelectedObjects(); int...
  2. E

    SESSION DEAD OR LIVE ?

    Thanks Thank Alex. Ezio :lol:
  3. E

    JOB OR SEX ???

    JOB OR SEX ??? Hi web master, it's ok for you that Ms. tykktykk can post messages in the forum ? Ezio :arrow:
  4. E

    SESSION DEAD OR LIVE ?

    SESSION DEAD OR LIVE ? Try this : #1) 1) Open an empty assembly 2) Count, via APIs, the number of opened sessions ( one) 3) Insert in this assembly an existing part 4) Count, via APIs, the number of opened sessions ( two) 5) Insert another...
  5. E

    SUGGESTIONS

    SUGGESTIONS Hi, #1) To IADParameter add, for example, the followings types : BOOL STRING etc. I could declare, and use, via APIs, for internal use, such kind of parameter not strictly connected to any geometric entities. #2)...
  6. E

    MODIFYING PARAMETERS VALUES

    MODIFYING PARAMETERS VALUES Hi all, For those how intend to use IADParameter::Put...() remember : IADParameter::OpenParameterTransaction() .. .. IADParameter::PutValue( ...) .. .. IADParameter::CloseParameterTransaction() Othewise...
  7. E

    INSERT IN AN ASSEMBLY AN EXISTING PART OR ASSEMBLY

    Hi Shubha, I found my solution. Here is : VARIANT vtPart; VariantInit (&vtPart); index.vt = VT_LPSTR; index.bstrVal = "C:\\\\ALIBRE\\\\EZIO\\\\AAA.AD_PRT"; iOccurences->Add( vtPart, transf); This works fine. I realized the drive name ( C:) must provide otherwise the instruction...
  8. E

    INSERT IN AN ASSEMBLY AN EXISTING PART OR ASSEMBLY

    INSERT IN AN ASSEMBLY AN EXISTING PART OR ASSEMBLY Hi all, Loock at the following code : void CPartInsertAndAssemblySaveDlg::InsertAssembly() { IADSessionsPtr iSessions = NULL; // Get all the open sessions in Alibre. iSessions = m_pRoot->GetSessions ()...
  9. E

    Addressing sketch objects

    ADDRESSING SKETCH OBJECTS Hi Frank, this is the correct code : if( nFigureGeometricType == AD_LINE) { IADSketchLinePtr iLine; iFigure->QueryInterface( &iLine); //IADSketchLinePtr iLine=((IADSketchLinePtr)iFigure); if(...
  10. E

    generating new catalog

    generating new catalog Hi all! How can I create a new catalog? Bye, Ezio
  11. E

    Preview in Explorer icon

    Preview in Explorer icon Hello ! Is it possible to generate a preview for the icons in Windows Explorer so it is easier to find parts or assemblies? If yes how do they update? Thanks, Ezio
  12. E

    Menu item position, toolbars

    Menu item position, toolbars Hello again! #1 We had a look at the AddOnConfig that creates a Animation sample menu item "My animation" which, in our case, appears between "Team Design" and "Windows". What is the point behind the menu item order? It is not...
  13. E

    Addressing sketch objects

    Addressing sketch objects Hi all! Struggling hardly with the not so well documented API... While we understand how to add sketch figures after we've found this piece of code: IADSketchPointPtr AddSketchPoint ( double XCoord...
  14. E

    Translating menues, Greying out, protecting features, C++

    Hi Alex! We are looking back on some 15 years of C++ programming developing many and some of them complex projects. Right know we have no plans to switch to C#. We are new to AD trying to understand wether it is possible to port a project to AD started originally as an Autodesk Inventor...
  15. E

    How to programmatically maximize an AD Window

    Hi ALex, that was me. I answered in the public forum. Bye, Ezio :roll:
Top