Supported SDS functions

return type function
HDC* sds_getviewhdc(void);
int sds_getrgbvalue(int nColor);
int sds_getacadvalue(int nColor);
HPALETTE sds_getpalette(void);
HWND sds_getviewhwnd(void);
HWND sds_getmainhwnd(void);
HWND sds_gettextcmdlinehwnd(void);
HWND sds_getdockcmdlinehwnd(void);
CWinApp* sds_getwinapp(void);
CWnd* sds_getmainwnd(void);
CView* sds_getviewwnd(void);
CDocument* sds_getviewdoc(void);
HINSTANCE sds_getresourceinstance(void);
IDispatch* sds_getidispatch(BOOL bAddRef);
int sds_drawLinePattern(HDC h_dc, RECT rect, struct sds_resbuf *lineParam, BOOL bFill);
int sds_previewdwg(wchar_t *dwgfile, HWND hWnd);
int sds_agetcfg(const wchar_t *szSymbol, wchar_t *szVariable);
int sds_agetenv(const wchar_t *szSymbol, wchar_t *szVariable);
int sds_alert(const wchar_t *szAlertMsg);
double sds_angle(const sds_point ptStart, const sds_point ptEnd);
int ds_angtof(const wchar_t *szAngle, int nUnitType, double *pdAngle);
int sds_angtof_absolute(const wchar_t *szAngle, int nUnitType, double *pdAngle);
int sds_angtos(double dAngle, int nUnitType, int nPrecision, wchar_t *szAngle);
int sds_angtos_end(double dAngle, int nUnitType, int nPrecision, wchar_t *szAngle);
int sds_angtos_convert(int ignoremode, double dAngle, int nUnitType, int nPrecision, wchar_t *szAngle);
int sds_angtos_dim(int ignoremode, double dAngle, int nUnitType, int nPrecision, wchar_t *szAngle, int nDimazin);
int sds_angtos_absolute(double dAngle, int nUnitType, int nPrecision, wchar_t *szAngle);
int sds_arxload(const wchar_t *szARXProgram);
struct sds_resbuf* sds_arxloaded(void);
int sds_arxunload(const wchar_t *szARXProgram);
int sds_asetcfg(const wchar_t *szSymbol, const wchar_t *szValue);
int sds_asetenv(const wchar_t *szSymbol, const wchar_t *szValue);
int sds_bmpout(const wchar_t* pFile, int width, int height);
struct sds_resbuf* sds_buildlist(int nRType, ...);
struct sds_blockTree* sds_buildBlockTree(int type_mask);
int sds_callinmainthread(int (*fnDragEnts)(void *),void *pUserData);
void* sds_calloc(size_t sizeHowMany, size_t sizeBytesEach);
int sds_cmd(const struct sds_resbuf *prbCmdList);
int sds_command(int nRType, ...);
int sds_cviewport(sds_name nmViewport);
int sds_cvunit(double dOldNum, const wchar_t *szOldUnit, const wchar_t *szNewUnit, double *pdNewNum);
int sds_defun(const wchar_t *szFuncName, int nFuncCode);
int sds_dictadd(const sds_name nmDict, const wchar_t *szAddThis, const sds_name nmNonGraph);
int sds_dictdel(const sds_name nmDict, const wchar_t *szDelThis);
struct sds_resbuf* sds_dictnext(const sds_name nmDict, int swFirst);
int sds_dictrename(const sds_name nmDict, const wchar_t *szOldName, const wchar_t *szNewName);
struct sds_resbuf* sds_dictsearch(const sds_name nmDict, const wchar_t *szFindThis, int swFirst);
double sds_distance(const sds_point ptFrom, const sds_point ptTo);
struct sds_dobjll* sds_dispobjs(const sds_name nmEntity,int nDispMode);
int sds_distof(const wchar_t *szDistance, int nUnitType, double *pdDistance);
int sds_draggen(const sds_name nmSelSet, const wchar_t *szDragMsg, int nCursor, int (*fnDragEnts)(sds_point ptCursorLoc, sds_matrix mxTransform), sds_point ptDestPoint);
int ds_entdel(const sds_name nmEntity);
struct sds_resbuf* sds_entget(const sds_name nmEntity);
struct sds_resbuf* sds_entgetx(const sds_name nmEntity, const struct sds_resbuf *prbAppList);
int sds_enthandle(const sds_name nmEntity, wchar_t* handle);
int sds_entlast(sds_name nmLastEnt);
int sds_entmake(const struct sds_resbuf *prbEntList);
int sds_entmakex(const struct sds_resbuf *prbEntList, sds_name nmNewEnt);
int sds_entmod(const struct sds_resbuf *prbEntList);
int sds_entnext(const sds_name nmKnownEnt, sds_name nmNextEnt);
int sds_entsel(const wchar_t *szSelectMsg, sds_name nmEntity, sds_point ptSelected);
int sds_entseqend(const sds_name nmEntity, sds_name nmSeqendEntity);
int sds_entupd(const sds_name nmEntity);
void sds_fail(const wchar_t *szFailMsg);
int sds_findfile(const wchar_t *szLookFor, wchar_t *szPathFound);
void sds_free(void *pMemLoc);
void sds_freedispobjs(struct sds_dobjll *pDispObjs);
int sds_getangle(const sds_point ptStart, const wchar_t *szAngleMsg, double *pdRadians);
struct sds_resbuf* sds_getargs(void);
int sds_getcfg(const wchar_t *szSymbol, wchar_t *szVariable, int nLength);
int sds_getcname(const wchar_t *szOtherLang, wchar_t **pszEnglish);
int sds_getcorner(const sds_point ptStart, const wchar_t *szCornerMsg, sds_point ptOpposite);
int sds_getdist(const sds_point ptStart, const wchar_t *szDistMsg, double *pdDistance);
struct sds_resbuf* sds_getdoclist(void);
int sds_getfiled(const wchar_t *szTitle, const wchar_t *szDefaultPath, const wchar_t *szExtension, int bsOptions, struct sds_resbuf *prbFileName);
int sds_getfilenavdialog(const wchar_t *szTitle, const wchar_t *szDefaultPath, const wchar_t *szExtension, const wchar_t *dlgname, int bsOptions, struct sds_resbuf **prbFileName);
int sds_getfuncode(void);
int sds_getinput(wchar_t *szEntry);
int sds_getint(const wchar_t *szIntMsg, int *pnInteger);
int sds_getkword(const wchar_t *szKWordMsg, wchar_t *szKWord);
int sds_getorient(const sds_point ptStart, const wchar_t *szOrientMsg, double *pdRadians);
int sds_getpoint(const sds_point ptReference, const wchar_t *szPointMsg, sds_point ptPoint);
int sds_getreal(const wchar_t *szRealMsg, double *pdReal);
int sds_getstring(int swSpaces, const wchar_t *szStringMsg, wchar_t *szString);
int sds_getstringb(int swSpaces, const wchar_t *szStringMsg, wchar_t *szString, int bufsize);
int sds_getsym(const wchar_t *szSymbol, struct sds_resbuf **pprbSymbolInfo);
int sds_getvar(const wchar_t *szSysVar, struct sds_resbuf *prbVarInfo);
int sds_graphscr(void);
int sds_grclear(void);
int sds_grarc(const sds_point ptCenter, double dRadius, double dStartAngle, double dEndAngle, int nColor, int swHighlight);
int sds_grfill(const sds_point *pptPoints, int nNumPoints, int nColor, int swHighlight);
int sds_grdraw(const sds_point ptFrom, const sds_point ptTo, int nColor, int swHighlight);
int sds_grread(int bsAllowed, int *pnInputType, struct sds_resbuf *prbInputValue);
int sds_grtext(int nWhere, const wchar_t *szTextMsg, int swHighlight);
int sds_grvecs(const struct sds_resbuf *prbVectList, sds_matrix mxDispTrans);
int ds_handent(const wchar_t *szEntHandle, sds_name nmEntity);
int sds_help(const wchar_t *szHelpFile, const wchar_t *szContextID, int nMapNumber);
int sds_initget(int bsAllowed, const wchar_t *szKeyWordList);
int sds_inters(const sds_point ptFrom1, const sds_point ptTo1, const sds_point ptFrom2, const sds_point ptTo2, int swFinite, sds_point ptIntersection);
int sds_invoke(const struct sds_resbuf *prbArguments, struct sds_resbuf **pprbReturn);
int sds_isalnum(int nASCIIValue);
int sds_isalpha(int nASCIIValue);
int sds_iscntrl(int nASCIIValue);
int sds_isdigit(int nASCIIValue);
int sds_isgraph(int nASCIIValue);
int sds_islower(int nASCIIValue);
int sds_isprint(int nASCIIValue);
int sds_ispunct(int nASCIIValue);
int sds_isspace(int nASCIIValue);
int sds_isupper(int nASCIIValue);
int sds_isxdigit(int nASCIIValue);
int sds_layoutsearch(const wchar_t* szName, sds_name nmLayout);
int sds_layoutmake(const wchar_t* szName, const sds_name nmSrcLayout);
int sds_layoutgetcur(sds_name nmLayout);
int sds_layoutsetcur(const sds_name nmLayout);
void* sds_malloc(size_t sizeBytes);
int sds_menucmd(const wchar_t *szPartToDisplay);
int sds_menugroup(const wchar_t *pMemuGroupName);
int sds_msize(void *pvBuffer);
int sds_namedobjdict(sds_name nmDict);
int sds_nchords(double rad, double angleRad);
int sds_nentsel(const wchar_t *szNEntMsg, sds_name nmEntity, sds_point ptEntPoint, sds_point ptECStoWCS[4], struct sds_resbuf **pprbNestBlkList);
int sds_nentselp(const wchar_t *szNEntMsg, sds_name nmEntity, sds_point ptEntPoint, int swUserPick, sds_matrix mxECStoWCS, struct sds_resbuf **pprbNestBlkList);
struct sds_resbuf* sds_newrb(int nTypeOrDXF);
int sds_osnap(const sds_point ptAperCtr, const wchar_t *szSnapModes, sds_point ptPoint);
void sds_polar(const sds_point ptPolarCtr, double dAngle, double dDistance, sds_point ptPoint);
int ds_printf(const wchar_t *formatString, ...);
int sds_printout(const TCHAR *szPrintThis);
int sds_progresspercent(int iPercentDone);
int sds_progressstart(void);
int sds_progressstop(void);
int sds_prompt(const wchar_t *szPromptMsg);
int sds_putsym(const wchar_t *szSymbol, struct sds_resbuf *prbSymbolInfo);
void* sds_realloc(void *pOldMemLoc, size_t sizeBytes);
int sds_regen();
int sds_redraw(const sds_name nmEntity, int nHowToDraw);
int sds_regapp(const wchar_t *szApplication);
int sds_regappx(const wchar_t *szApplication, int swSaveAsR12);
int sds_regfunc(int (*nFuncName)(void), int nFuncCode);
int sds_relrb(struct sds_resbuf *prbReleaseThis);
void sds_relBlockTree(struct sds_blockTree *pTree);
int sds_retint(int nReturnInt);
int sds_retlist(const struct sds_resbuf *prbReturnList);
int sds_retname(const sds_name nmReturnName, int nReturnType);
int sds_retnil(void);
int sds_retpoint(const sds_point ptReturn3D);
int sds_retreal(double dReturnReal);
int sds_retstr(const wchar_t *szReturnString);
int sds_rett(void);
int sds_retval(const struct sds_resbuf *prbReturnValue);
int sds_retvoid(void);
int sds_rp2pix(double dNumberX,double dNumberY,int *pPixelX,int *pPixelY);
int sds_rtos(double dNumber, int nUnitType, int nPrecision, wchar_t *szNumber);
int sds_sendmessage(const wchar_t *szCommandMsg);
int sds_sendmessageex(const wchar_t *szCommandMsg); allows multiline input separated by \n
int sds_setfunhelp(wchar_t *szFunctionName, wchar_t *szHelpFile, wchar_t *szContextID, int nMapNumber);
int sds_setvar(const wchar_t *szSysVar, const struct sds_resbuf *prbVarInfo);
int sds_snvalid(const wchar_t *szTableName, int swAllowPipe);
int sds_ssadd(const sds_name nmEntToAdd, const sds_name nmSelSet, sds_name nmNewSet);
int sds_ssdel(const sds_name nmEntToDel, const sds_name nmSelSet);
int sds_ssfree(sds_name nmSetToFree);
int sds_ssget(const wchar_t *szSelMethod, const void *pFirstPoint, const void *pSecondPoint, const struct sds_resbuf *prbFilter, sds_name nmNewSet);
int sds_ssgetfirst(struct sds_resbuf **unused, struct sds_resbuf **pprbPickfirst);//arguments changed according to latest acedSSGetFirst
int sds_sslength(const sds_name nmSelSet, long *plNumberOfEnts);
int sds_ssmemb(const sds_name nmEntity, const sds_name nmSelSet);
int sds_ssname(const sds_name nmSelSet, long lSetIndex, sds_name nmEntity);
int sds_ssnamex(struct sds_resbuf **pprbEntName, const sds_name nmSelSet, const long iIndex);
int sds_ssnamexex(struct sds_resbuf **pprbEntName, const sds_name nmSelSet, const long iIndex, unsigned int flags=0);
int sds_sssetfirst(const sds_name pickfirstset, const sds_name unused); //arguments changed according to latest acedSSSetFirst
int sds_swapscreen(void);
int sds_tablet (const struct sds_resbuf *prbGetOrSet, struct sds_resbuf **pprbCalibration);
struct sds_resbuf* sds_tblnext(const wchar_t *szTable, int swFirst);
int sds_tblobjname(const wchar_t *szTable, const wchar_t *szEntInTable, sds_name nmEntName);
struct sds_resbuf* sds_tblsearch(const wchar_t *szTable, const wchar_t *szFindThis, int swNextItem);
int sds_textbox(const struct sds_resbuf *prbTextEnt, sds_point ptCorner, sds_point ptOpposite);
int sds_textpage(void);
int sds_textscr(void);
int sds_textout (const TCHAR *szPrintThis);
int ds_tolower(int nASCIIValue);
int sds_toupper(int nASCIIValue);
int sds_trans(const sds_point ptVectOrPtFrom, const struct sds_resbuf *prbCoordFrom, const struct sds_resbuf *prbCoordTo, int swVectOrDisp, sds_point ptVectOrPtTo);
int sds_ucs2rp(sds_point ptSour3D,sds_point ptDest3D);
int sds_update(int nWhichVPort,const sds_point ptCorner1,const sds_point ptCorner2);
int sds_undef(const wchar_t *szFuncName, int nFuncCode);
int sds_usrbrk(void);
int sds_vports(struct sds_resbuf **prbViewSpecs);
int sds_vbaload(const wchar_t *szDvbFile);
int sds_vbarun(const wchar_t *szMacro);
int sds_wcmatch(const wchar_t *szCompareThis, const wchar_t *szToThis);
int sds_wcmatchex(const wchar_t *szCompareThis, const wchar_t *szToThis, BOOL bIgnoreCase);
int sds_xdroom(const sds_name nmEntity, long *plMemAvail);
int sds_xdsize(const struct sds_resbuf *prbEntData, long *plMemUsed);
int sds_xformss(const sds_name nmSetName, sds_matrix mxTransform);
int sds_xref(wchar_t action,struct sds_resbuf *param);
int sds_xstrcase(wchar_t *szString);// Not documented
wchar_t* sds_xstrsave(wchar_t *szSource, wchar_t **pszDest);// Not documented
int sds_bbox(const sds_name entity, sds_point low, sds_point high);
const wchar_t* sds_getlocalisedcolorstring(int iColorIdx);
int sds_setdbmod(int iBitMask);
int sds_pushdbmod();
int sds_popdbmod();
BOOL sds_initdialog(BOOL bUseDialog);
int sds_getcolordialog(int defcol, int *retcol, int mode);
int sds_getlicenseinfo(wchar_t* szUserName, char* szLicenseKey, long* pLicenseID);
wchar_t* sds_getappname(void);
void sds_abort(const wchar_t *szAbortMsg);
void sds_exit(int swAbnormalExit);

© Menhirs NV. All rights reserved.