Jump to content

Recommended Posts

Posted

Quote:

Originally Posted by dbroada viewpost.gif

as hedge implies, you will save yourself a lot of time setting your template NOW. Does LT support scripts? If so create yourself a text file like this...

Code:

SETVARINSBASE0,0,0

(you can include other variables too if you want) and call it myname.SCR

 

type script in AutoCAD and run your myname file. Obviously disregard this post in LT can't do scripts.

 

 

Yes lt does support scripts. I didn't know the methos but was able to creat script file in notepad using help & than i am able to run it in current seccions. I have added some more commands to it also.

 

I tried but can't figuer out how to add that routine in the startup.

Can anyone help me with it.

 

:unsure:

Posted

does LT have support for APPLOAD ?

if it does, add your script file to the Contents of the Startup Suite.

Posted
does LT have support for APPLOAD ?

if it does, add your script file to the Contents of the Startup Suite.

 

how can i find out. i tried typing appload at the command prompt but not seems to be working.

sorry for the trouble but because i am novice in custmization can you guide me step by step.

 

 

:(

Posted

If it doesn't seem to be working, I am not sure how to get it to load as every drawing loads.

The only thing I can suggest is to drag the script file into every drawing into which you want it to be run.

I shall investigate when I have more time available to get on a different machine and run a few tests.

Unless somebody else beats me to it.

Posted
If it doesn't seem to be working, I am not sure how to get it to load as every drawing loads.

The only thing I can suggest is to drag the script file into every drawing into which you want it to be run.

I shall investigate when I have more time available to get on a different machine and run a few tests.

Unless somebody else beats me to it.

 

yes i am doing that at the moment running script file in evry draing i am working.

I will look forward to some options though.

  • 2 years later...
Posted

instead of dragging the scrpit into your drawing you could always add a macro and assign that macro to a key. I can tell you how to do this would help. But like you I'm looking for a way to run a script on start for LT

Posted

Straight from the LT 2006 help-

 

To run a script at startup

 

On the Start menu (Windows), click Run.

In the Run dialog box, enter aclt drawing_name /b script_name.

To start a new file, instead of a drawing file name, enter the /t switch and the name of a template file: /t template_drawing.

 

To open a drawing file to a particular view, follow the drawing name with the /v switch and the name of the view: /v view_name.

 

The name of the script file must be the last parameter listed. the file extensions are optional.

 

Click OK.

AutoCAD LT opens the drawing and executes the commands in the script file. When the script has been completed, the Command prompt is displayed.

Posted

You should be able to create a batch file using notepad it has a .bat extension in this case say we will call it mycad.bat it has the one line in it

 

aclt %1 /b script_name

 

to use it Start Run then type mycad mydwgyouwanttoopen the %1 will be replaced by your drawing name

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...