Page 1 of 1

inserting a block with xdata

Posted: Tue Mar 22, 2011 12:38 pm
by efernal
How can I insert a block with xdata using

(RTDXF0, "INSERT",
2, blk_name,
10, insertion_point,
70, 2,
etc...?

thanks in advance,

e.fernal

I found out the way, as follow...

Posted: Tue Mar 22, 2011 2:39 pm
by efernal
sds_regapp("Memorial_Icad_Quadra");

struct sds_resbuf *rb = NULL;

sds_point p0 = {0.0, 0.0, 0.0};

rb = sds_buildlist(RTDXF0, "INSERT",
2, "teste",
10, p1,
41, fator_escala,
42, fator_escala,
43, fator_escala,
50, 0.0,
66, 1,
-3,
1001, "Memorial_Icad_Quadra",
1000, snumero,
0);

sds_entmake(rb);
sds_relrb(rb);

rb = sds_buildlist(RTDXF0, "ATTRIB",
1, snumero,
2, "1",
10, p0,
11, p1,
40, fator_escala * 5.0,
70, 0,
72, 1,
74, 2,
0);

sds_entmake(rb);
sds_relrb(rb);

rb = sds_buildlist(RTDXF0, "SEQEND", 0);

sds_entmake(rb);
sds_relrb(rb);