|
SolidWorks : Add-In API
naimo am 09.02.2006 um 14:58 Uhr (0)
Hallo Leute,ich versuch mich seit ein paar Tagen in die API-Programmierung für SolidWorks mit Visual C++ .NET 2003 einzuarbeiten. So weit, so gut.Nur ich hab keine Ahnung, wie ich auf SolidWorks zugreifen soll, wenn in den Beispielen steht:Code:// Connect to SolidWorks application pSldWorks = TheApplication-GetSWApp(); ASSERT(pSldWorks); hr = pSldWorks-get_IActiveDoc2(&pModel); ASSERT(pModel);Die Deklaration von pSldWorks ist mir noch klar, aber wie bekomm ich Zugriff auf TheApplication? Die Methode üb ...
| | In das Form SolidWorks wechseln |
|
SolidWorks : API - Fehler bei Create3PointArc
naimo am 16.02.2006 um 19:44 Uhr (0)
Hallo Harry,genau das selbe Problem hab ich auch. Bei mir hängt sich SolidWorks auch immer auf, wenn ich einen Bogen durch drei Punkte machen will, oder wenn ich ClearSelection mach. k.A. warum. Gruß Benjamin------------------There are only 10 types of people in the world: Those who understand BINARY und those who dont.
| | In das Form SolidWorks wechseln |
|
SolidWorks : Add-In API
naimo am 10.02.2006 um 09:45 Uhr (0)
Hallo Jan,so ähnlich hab ich mir das auch vorgestellt. Aber ich bekomm es einfach nicht hin Kannst du mir vielleicht eine kleine Hilfe geben, wie es funktionieren könnte. Ich bin echt am verzweifeln. Mein SldWorks stürzt ständig ab.Ich hab folgenden Code:Code:void CPMPageHandler::Passfeder(){ HRESULT hr = S_OK; CComPtr IModelDoc pModel; CComPtr ISldWorks pSldWorks; CComQIPtr IDrawingDoc pDraw; CComPtr IFeature pFeat; CComPtr IFeature pMateFeat; CComPtr IFeature pSubFeat; ...
| | In das Form SolidWorks wechseln |
|
Anzeige:
Anzeige: (Infos zum Werbeplatz)
 |