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...
#2sds_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);
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);