Search found 28 matches

by efernal
Mon Apr 25, 2016 7:52 pm
Forum: General
Topic: fill command icad 8
Replies: 2
Views: 1114

fillmode setvar checked?
by efernal
Wed Jan 20, 2016 7:07 am
Forum: General
Topic: F7 Grid
Replies: 7
Views: 3824

Just type the line bellow and press enter

(STARTAPP "NOTEPAD.EXE" (FINDFILE "ICAD.LSP"))
by efernal
Tue Jan 19, 2016 11:19 am
Forum: General
Topic: F7 Grid
Replies: 7
Views: 3824

Put the line above in Icad.lsp

(SETVAR "GRIDMODE" 0)
by efernal
Wed May 09, 2012 5:35 pm
Forum: AutoLisp/SDS
Topic: parameter in sds_defun()
Replies: 1
Views: 2935

send a list to lisp

use sds_rettlist or sds_putsym
by efernal
Wed Apr 11, 2012 8:37 am
Forum: AutoLisp/SDS
Topic: Need sds_cmd Example
Replies: 8
Views: 5475

Utilize sds_tblsearch para ver se já existe a definição do bloco.
Em não havendo, passe o path completo e insira o primeiro bloco.
Depois, para novas inserções, altere a string para o nome do bloco somente...
by efernal
Tue Apr 10, 2012 8:18 pm
Forum: AutoLisp/SDS
Topic: Need sds_cmd Example
Replies: 8
Views: 5475

Oi, Fabio...
Cada consorciado altera alguma coisa, então depende do IntelliCAD.
No caso, usei os arquivos sds.lib e sds.h da Cadian e o que você relata não acontece...
Você pode postar o trecho do código para uma verificação?
by efernal
Sat Apr 07, 2012 6:55 am
Forum: AutoLisp/SDS
Topic: Need sds_cmd Example
Replies: 8
Views: 5475

aproveitei e inseri duas funções na minha biblioteca... void InsertBlock(char *blk, sds_point p10, sds_real escala, sds_real angulo) { struct sds_resbuf osmode; osmode.restype = RTSHORT; sds_getvar("OSMODE", &osmode); sds_command(RTSTR, "OSMODE", RTSHORT, 0, RTSTR, "_.INSERT", RTSTR, blk, RT3DPOINT,...
by efernal
Sat Apr 07, 2012 6:17 am
Forum: AutoLisp/SDS
Topic: Need sds_cmd Example
Replies: 8
Views: 5475

simplificando... void InsertBlock2(int i, char *nome, sds_real escala, sds_real angulo, sds_point p10, char *a[]) { sds_command(RTSTR, "_.INSERT", RTSTR, nome, RT3DPOINT, p10, RTREAL, escala, RTREAL, escala, RTREAL, angulo, RTNONE); int cn; for(cn=0; cn<i; cn++) sds_command(RTSTR, a[cn], RTNONE); sd...
by efernal
Sat Apr 07, 2012 5:14 am
Forum: AutoLisp/SDS
Topic: Need sds_cmd Example
Replies: 8
Views: 5475

insercao de bloco atributado...

Eu uso este código para inserir um bloco atributado... Pode ser adaptado para um número variável de atributos... Se quiser alterar, compartilhe o resultado... struct sds_resbuf *rb = NULL; sds_point pa = { 100.0, 100.0, 0.0}; rb = sds_buildlist(RTDXF0, "TESTE", 10, pa, 40, 1.0, 50, 0.0, 0); InsertBl...
by efernal
Thu Jul 21, 2011 11:21 am
Forum: New User
Topic: "pop up" menu question
Replies: 2
Views: 3592

prompt menu

or set shortcutmenu to 0 (zero)
by efernal
Sat Mar 26, 2011 9:42 am
Forum: AutoLisp/SDS
Topic: inserting xdata in an existing entity : how to do?
Replies: 1
Views: 3336

BINGO!!!

#include "Memorial_Icad.h" void cmd_blocos() { sds_point p1 = {0.0, 0.0, 0.0}; sds_point p2 = {100.0, 100.0, 100.0}; sds_command(RTSTR, "_.LINE", RT3DPOINT, p1, RT3DPOINT, p2, RTSTR, "", RTNONE); sds_name ent; sds_entlast(ent); struct sds_resbuf *ENT = NULL, *rb3, *rb1001, *rb1000; ENT = sds_entget...
by efernal
Fri Mar 25, 2011 12:32 pm
Forum: AutoLisp/SDS
Topic: inserting xdata in an existing entity : how to do?
Replies: 1
Views: 3336

inserting xdata in an existing entity : how to do?

// this is not working... // any suggestions? #include "Memorial_Icad.h" void cmd_blocos() { sds_point p1 = {0.0, 0.0, 0.0}; sds_point p2 = {100.0, 100.0, 100.0}; sds_command(RTSTR, "_.LINE", RT3DPOINT, p1, RT3DPOINT, p2, RTSTR, "", RTNONE); sds_name ent; sds_entlast(ent); struct sds_resbuf *ENT = N...
by efernal
Tue Mar 22, 2011 2:39 pm
Forum: AutoLisp/SDS
Topic: inserting a block with xdata
Replies: 1
Views: 3200

I found out the way, as follow...

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_r...
by efernal
Tue Mar 22, 2011 12:38 pm
Forum: AutoLisp/SDS
Topic: inserting a block with xdata
Replies: 1
Views: 3200

inserting a block with xdata

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
by efernal
Mon Mar 02, 2009 12:04 pm
Forum: AutoLisp/SDS
Topic: System var or routine for (promptless) redefining blocks?
Replies: 4
Views: 5426

oops, change

(command "_.INSERT" myblock p1 1. 1. 0. [attributes values])

for

(command "_.INSERT" block p1 1. 1. 0. [attributes values])


e.fernal