combine 2 lisp

combine 2 lisp

Anonymous
Not applicable
706 Views
1 Reply
Message 1 of 2

combine 2 lisp

Anonymous
Not applicable

hello all

the purpose of the lisp is put dimension on each segment of the pline and write the total length

my problem is that i need select twice the same pline

once for dimension and once for the total length

can anyone help me to combine those lisp that i wont need to select twice the same pline


thanks ahead 

0 Likes
707 Views
1 Reply
Reply (1)
Message 2 of 2

martti.halminen
Collaborator
Collaborator

 

Star by dividing 2.lsp to two separate functions: one to pick the object and returning the selection set (or just an entity, if you are only working with one polyline at the time). The other would be the part drawing the dimensions, getting an entity as parameter.

 

1.lsp looks like somebody gave Visual Lisp documents to a C++ programmer with no prior exposure to Lisp. You'd probably be better off re-writing it without trying anything fancy: just because the language allows run-time re-definitions of functions, doesn't necessarily mean that doing so would be preferable.

 

-- 

0 Likes