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...
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...
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)...
MODIFYING PARAMETERS VALUES
Hi all,
For those how intend to use IADParameter::Put...() remember :
IADParameter::OpenParameterTransaction()
..
..
IADParameter::PutValue( ...)
..
..
IADParameter::CloseParameterTransaction()
Othewise...
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...
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 ()...
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
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...
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...
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...
Translating menues, Greying out, protecting features, C++
Hi all!
Another bunch of questions for you wizards:
#1 How can I set up a new language file (translation of menues and dialogs controls)?
#2 How can I grey out Alibre's GUI menu items deactivating components, for example...
Thanks Alex and Kelsey for your help!
Regarding your code, Alex, looking for a window refering to its title (CWnd::GetWindowText()) just works for a window with that specific title string. What I need is a code that executes from inside a window maximizing it, regardless of its name.
A...
Generic questions
A couple of question :
1) How could by default maximized the new session windows without do it manually ?
2) How can I load an existing part ( *.AD_PRT) into an assembly ?
3) How can I load an existing assembly ( *.AD_ASM) into...
API DOCUMENTATION
I have the necessity to cross completely, in all of its elements, an assembly and its partses.
I have looked at the available documentation and, apart that all addressed to the VB, I have not found some example that can help...