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

LAYTRANS script

6 REPLIES 6
SOLVED
Reply
Message 1 of 7
troma
2296 Views, 6 Replies

LAYTRANS script

I'm trying to set up a script for batch processing some files, including a layer translation.  I used the advice from a JTB World Blog post to set this up.

Here is my line in the script:

 

(ACET-LAYTRANS "OBM topo Translate.dws" 5)

 

And here's what CAD says in response:

 

; error: no function definition: ACET-LAYTRANS

 

I've tried adding the path in the script, or adding it in my Support File Search Paths, but there is no difference.

Thanks.


Mark Green

Working on Civil 3D in Canada

6 REPLIES 6
Message 2 of 7
hmsilva
in reply to: troma

Try

(if (not (member "laytrans.arx" (arx))) (arxload "laytrans"))
(ACET-LAYTRANS "OBM topo Translate.dws" 5)

 

HTH

Henrique

 

EESignature

Message 3 of 7
troma
in reply to: hmsilva

Thanks Henrique, that did it!

Mark Green

Working on Civil 3D in Canada

Message 4 of 7
hmsilva
in reply to: troma

You're welcome, Troma
Glad I could help

Henrique

EESignature

Message 5 of 7
PMBcad
in reply to: hmsilva

Hello Henrique

 

Your routine runs very well, nice work.

 

Patrick
http://www.multi-batch.com/
For your entire batch processing needs

Message 6 of 7
randyspear6624
in reply to: hmsilva

Thanks, I've been using something similar for awhile and couldn't figure out why the nested block layers wouldn't convert. I had (+1 2 😎 instead of simply 5.

 

cheers

Message 7 of 7
lucasbarcoWHC5B
in reply to: troma

Hi, I'm trying to make a script like this but I have a basic question: where do I save the file_name.dws? Thank you

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

Post to forums  

Autodesk Design & Make Report

”Boost