Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

LISP runs intermittently

20 REPLIES 20
SOLVED
Reply
Message 1 of 21
Anonymous
580 Views, 20 Replies

LISP runs intermittently

Hello everyone.

 

I'm new to the Forums and new to LISP programming. I've written a program to insert fastener hardware into our drawings. It works well on my machine, but sometimes on other machines it places the blocks in what seems to be random locations. We've isolated the issue to workstations (i.e. we all tried the same drawing and switched users to different machines). Does anyone see a problem with the LISP? Since I am very new to programming, any and all additional constructive criticism is welcome.

 

Thank you in advance,

Doug

20 REPLIES 20
Message 21 of 21
stevor
in reply to: Anonymous

 

A common set of subroutines, written various ways, is:

 

 (DeFun U_W (p)  (trans p 1 0)))
 (DeFun W_U (p)  (trans p 0 1)))

 

UCS to World, and back.

Also, using "UCS" "P"

to get to a know Coordinate system

asmay not be as effective using "UCS" "W"

or to  some named corrdinate system.

 

 

 

 

S

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost