Minggu, 20 Februari 2011

Knowledge detail

About SDS

Q: What is SDS, and what can I do with it?
A: SDS is an acronym for “Solutions Development System,” a C/C++ language interface compatible with the ADS® (AutoCAD® Development System) interface found in other CAD systems. SDS provides hooks into ZWCAD, allowing you to create custom applications.
SDS communicates with the user and ZWCAD via LISP akin to the way that ADS works with AutoLISP in other CAD systems. However, SDS greatly augments the capabilities of LISP with a more powerful command base that also accesses the operating system. This allows you to create more sophisticated custom solutions. And because SDS applications are compiled, they are run typically many times faster than any LISP application.
Issue: SDS development environment
Q: How do I configure the development environment when work with the SDS API?
A: SDS is strictly a C/C++ SDK, and so it can be used directly by a standard VC (Visual C) object; you do not need to configure the development environment specially for an SDS application. In other words, you can use the Wizard embed in VC++ compiler to generate a VC object automatically for a SDS application.
The SDS application is built as a DLL file, and the entry point of the DLL file is defined as show below:
void __declspec(dllexport) SDS_EntryPoint(HWND hWnd)
{
   AFX_MANAGE_STATE(AfxGetStaticModuleState());        
   SDS_main(1, &ads_argVec);
    return;
}

Tidak ada komentar:

Posting Komentar