How to set text alignment using ent_make()?

#1
Hello,

I am trying to insert text using sds_entmake(). If I change the horizontal alignment setting to "Center", as shown below, then the text is inserted at 0,0 instead of the insertion coordinates in "point1". If no horizontal alignment is specified then it seems to work fine.

The function below reproduces the problem. Any help you can give me is greatly appreciated.

Dale

/////////////////////////////
void Command_Test()
{
int returni;
sds_point point1;
char string1[512];
struct resbuf *entlist = NULL;

strcpy(string1, "This is a test.");

sds_getpoint(NULL, "\nSelect insertion point for text: ", point1);

entlist = sds_buildlist(
RTDXF0, "TEXT",
10, point1,
72, 1, // TAKE THIS LINE OUT AND IT WORKS!!!!!
1, string1,
RTNONE);

returni = sds_entmake(entlist);

if (entlist != NULL){
sds_relrb(entlist);
entlist = NULL;
}

sds_printf("\nsds_entmake returned %i", returni);


}//end void

#2
If anyone is interested, I think I finally got it working.

entlist = sds_buildlist(
RTDXF0, "text",
11, botpt, // SEE NOTE BELOW
72, 1, // Horiz. alignment 1=Center
73, 3, // Vert. alignment 3=Top
1, "Sample Text",
RTNONE);
sds_entmake(entlist);

Normally, the insertion point is defined as code 10, however, if you change either the horizontal or vertical alignments to anything else other than 0 then code 10 is meaningless, and code 11 is used instead. This is vaguely explained in the AutoCAD dxf reference.

Dale