sds_cmd
Posted: Tue Aug 30, 2005 1:05 pm
I'm taking my first steps in the topic of SDS-programming and have encountered a problem with the 'sds_cmd' statement. I want to select a polyline on screen and use the MEASURE command to get point along the line. I'm testing the Delphi-interface to SDS from ADEKO to do the job but I think the following code will be understandable also for C-programmers.
if (sds_entsel('\nPick an object: ', entname, pt) <> SDS_RTNORM) then
result := SDS_RTERROR;
//ShowMessage(IntToStr(result));
listbuf := sds_buildlist(SDS_RTSTR, '_measure', SDS_RTENAME, entname,
SDS_RTREAL, 0.5, 0);
sds_retlist(listbuf);
if (listbuf <> nil) then
if (sds_cmd(listbuf) <> SDS_RTNORM) then
result := SDS_RTERROR;
ShowMessage(IntToStr(result));
if (sds_relrb(listbuf) <> SDS_RTNORM) then
result := SDS_RTERROR;
//ShowMessage(IntToStr(result));
if (sds_entdel(entname) <> SDS_RTNORM) then
result := SDS_RTERROR;
I don't get any errormessage but also no points.
Any help available?
Thanks
Alf
if (sds_entsel('\nPick an object: ', entname, pt) <> SDS_RTNORM) then
result := SDS_RTERROR;
//ShowMessage(IntToStr(result));
listbuf := sds_buildlist(SDS_RTSTR, '_measure', SDS_RTENAME, entname,
SDS_RTREAL, 0.5, 0);
sds_retlist(listbuf);
if (listbuf <> nil) then
if (sds_cmd(listbuf) <> SDS_RTNORM) then
result := SDS_RTERROR;
ShowMessage(IntToStr(result));
if (sds_relrb(listbuf) <> SDS_RTNORM) then
result := SDS_RTERROR;
//ShowMessage(IntToStr(result));
if (sds_entdel(entname) <> SDS_RTNORM) then
result := SDS_RTERROR;
I don't get any errormessage but also no points.
Any help available?
Thanks
Alf