BEST APPROACH FOR API LEARNING
BEST APPROACH FOR API LEARNING
(OP)
Hi all,
i know VB6 upto database connectivity concepts. i don't know COM concepts in VB6.Just now i've started to study SolidWorks -API concepts myself.i'm refering SolidWorks help and studying.
I hve seen there r three types of API programming.
1) through VC++
2) through VB.
3) through MACRO. (Visual Basic Application like M.S Exell MACRO- VB Editor)
Is there any best appoarch to study the API concepts?
Can u give me good web site details for downloading the API Tutorials?
do u have any tutorials for API concepts?
THANK YOU,
regards,
murugan.S
Design Engineer,
GlobalSoft Pvt Ltd,
INDIA
murugan_subham@rediffmail.com
i know VB6 upto database connectivity concepts. i don't know COM concepts in VB6.Just now i've started to study SolidWorks -API concepts myself.i'm refering SolidWorks help and studying.
I hve seen there r three types of API programming.
1) through VC++
2) through VB.
3) through MACRO. (Visual Basic Application like M.S Exell MACRO- VB Editor)
Is there any best appoarch to study the API concepts?
Can u give me good web site details for downloading the API Tutorials?
do u have any tutorials for API concepts?
THANK YOU,
regards,
murugan.S
Design Engineer,
GlobalSoft Pvt Ltd,
INDIA
murugan_subham@rediffmail.com






RE: BEST APPROACH FOR API LEARNING
Once one is comfortable with VB, learning SW API comes much easier. It is easier to understand the examples in the help and it is easier to follow the code resulting from recording a macro.
RE: BEST APPROACH FOR API LEARNING
The most important (I am guessing that you have some programming skills) is to know the concepts of VB and the concept of object oriented programming (for me, used to "traditional" programming, it was the most triky part).
Then download the VB examples from SW site, download macros from the many sites on wich they are available and test them, make simple modifications. Record macos of things you want to do and see the generated code. Also take a look at the API help of SW: it really helps.
With the concepts and with some experiments you will soon be able to do program your macros.
C++ is more for gurus.
Regards
RE: BEST APPROACH FOR API LEARNING
Key concepts that can trip up beginners (or people accustomed to "linear" programming like FORTRAN):
•object oriented programming, especially understanding objects' methods and properties
•variable scope
•data types-- many SW API calls are sensitive to what data type (string, boolean, variant) are used for return variables
There is a SW API tutorial available through http://www.cpuandsimplepdm.com
RE: BEST APPROACH FOR API LEARNING
actually i've some knowledge in object oriented programming.
i did 10 projects using AutoLISP.
i 've worked some VB , ASP projects also.
i think , i can manage.
my question is how to approach Solidworks -API.
i am able to understand the solidworks API coding.
But main problem in help is they have given lot of events, methods, objects. it is confusing me.
which method is good?
1)observing and studying API coding from example programs. ( from coding, we can refer particular method, events, object in solidworks api help.)
2)studying through help contents step by step.
thanks,
regards,
murugan.S
Design Engineer,
GlobalSoft Pvt Ltd,
INDIA
murugan_subham@rediffmail.com
RE: BEST APPROACH FOR API LEARNING
thanks,
regards,
murugan.S
Design Engineer,
GlobalSoft Pvt Ltd,
INDIA
murugan_subham@rediffmail.com
RE: BEST APPROACH FOR API LEARNING
Hope this helps some,
Chris Gervais
Sr. Mechanical Designer
Lytron Corp.
RE: BEST APPROACH FOR API LEARNING
thanks,
regards,
murugan.S
Design Engineer,
GlobalSoft Pvt Ltd,
INDIA
murugan_subham@rediffmail.com