- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Good day everyone,
For my work i need to use al lot of repeating actions in autocad (cleaning up existing engineering-plans). So with searching and reading over the internet i have tried to write a script with a few consecutive commands. Only one problem: my script doesn't work at all, and i don't know what am i doing wrong? It would be great if sonemone could help me out with this?
I shall describe what i'm would wish to become + what code i am using:
Scale my drawing x10 (between these coordinates)
- scale;49130,-49590,0;387222,166237,0;10;
Freeze layers i dont need (with user input):
-layer;freeze;select;\;;
Explode all blocks (between these coordinates):
Burst;49130,-49590,0;387222,166237,0;
Delete all excisting dimensions and wipeouts:
ssx;;entity;;dimension;;erase;p;;
ssx;;entity;;wipeout;;erase;p;;
Set all objects (between these coordinates) color by layer:
-setbylayer;49130,-49590,0;387222,166237,0;settings;color;;
Change all hatches to a specific color:
ssx;;entity;;hatch;;change;p;;properties;color;truecolor;170,170,170;;
Put the objects from layer "0" automaticaly on layer "background"
ssx;;layer;;0;;change;p;;properties;layer;background;;
So i wrote this code to one .lsp file and appload this in autocad but it doesn't do anything?
- scale;49130,-49590,0;387222,166237,0;10;
-layer;freeze;select;\;;
Burst;49130,-49590,0;387222,166237,0;
ssx;;entity;;dimension;;erase;p;;
ssx;;entity;;wipeout;;erase;p;;
-setbylayer;49130,-49590,0;387222,166237,0;settings;color;;
ssx;;entity;;hatch;;change;p;;properties;color;truecolor;170,170,170;;
ssx;;layer;;0;;change;p;;properties;layer;background;;
Thank you for your reactions!
Lars
Solved! Go to Solution.