inserting a block with xdata

Topics relating to AutoLisp and SDS.

Moderators: CMS Inc, avaernes

Post Reply
efernal
Valued Contributor
Posts: 28
Joined: Thu Jul 05, 2007 6:42 pm
Contact:

inserting a block with xdata

Post by efernal » Tue Mar 22, 2011 12:38 pm

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
efernal
Valued Contributor
Posts: 28
Joined: Thu Jul 05, 2007 6:42 pm
Contact:

I found out the way, as follow...

Post by efernal » Tue Mar 22, 2011 2:39 pm

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);
Post Reply