PARAM - Delphi Programm for SolidWorks !


I had created in 1993 ... a dmt10 3d macro (torseur.cpl) that allowed to trace a torque and calculate and to trace it in an other point (See macdmt10). My research is to transpose this macro under SW and it is why I have i have been interested in the programming for SolidWorks .



Samples of macro torseur.cpl on DMT10 3D (in french)
(See details here)

By reading the documentation (in English) of SolidWorks API (apihelp.chm) I have noticed that one could program SW in C/++C or in Visual Basic.

If the language C remains the most rapid, it is not very simple to use.

The Visual Basic is now replaced by VB.NET (near from Delphi 1 ! and not compatible with VB).

I have wondered if it was not possible to use Delphi (for me version 5).

In the directory of SW (2001) C:\Program Files\SolidWorks\samples\visualbasic\parametric, one finds parametric.exe and its source parametric.bas.

It allows to launch SolidWorks with the file parametric.sldprt that represents a parallelepiped quoted. An InputBox allows to modify its dimensions.

This program did not function for me since SW was found in e:\... => it was necessary to recompiled it with the new path and I had put out VB (4) to the profit of Delphi since several years ...

I have therefore tried to adapt the program in Delphi and its was done in a half day of work. The program is not without doubting perfect (especially for the using and free resources) but it works rather well !

The program is more structured than in visual basic and I have added a code in order that the program functions if SW is not in the disk C:\...

I hope be able to propose you soon that will be the adaptation of torseur.cpl on SW.

In the meantime I propose you also Torseur.xls that is the calculation part of this program on Excel.

One can obtain one free French version of Delphi 6and a small programming lesson (MRUV) see MRUV


Download PARAM.ZIP : program + Delphi's sources (189 ko)

Top page

Home Main