Running a script when DraftSight starts

Hi all

Is it possible for a script to be started at the time of opening DraftSight?

I manage to open a specific file by creating a .bat file and putting the following statement:

"C:\Program Files\Dassault Systemes\DraftSight\bin\DraftSight.exe" "C:\MyPlans\plan1.dwg"

Unfortunately, the following statement does not work.

"C:\Program Files\Dassault Systemes\DraftSight\bin\DraftSight.exe" "C:\scripts\script1.scr"

Is there an alternative?

Thank you for your help.

Gilbert

See this communication thread here

http://www.lynkoa.com/forum/draftsight/aux-specialistes-draftsight

conclusion for drafsight you need Absolutely premium to create macros

@+ ;-))

Hello

You can create scripts for DraftSight with the free version, these are the LISP scripts which are only available in the PRO version (paid).

 

To run a script you can try LOADSCRIPT.

And maybe a clue: if you associate SCR files with DraftSight in Windows, does it work?

Another solution would be to use FREECAD which is also free to do this:

http://www.freecadweb.org/wiki/index.php?title=Macros

Hello

I found this link that might interest you ;)!

http://www.cadoasis.com/creating-loading-lisp-files/

 

 

1 Like

As I indicated in my first answer, the LISP is for the PRO version, and it is looking to run a script of the free version, so no LISP ;-)

Ahhhhh ok, so much for me :)!

1 Like

But it's true that if it's for a one-time use you can download the trial version of the Pro version valid for 30 days, which will do that in Lisp, and there is more documentation on this subject and it will be easier!

Hi all

Running a script when DraftSight starts doesn't seem possible.

I was hoping to find the beginning of an answer to my script problem that stopped after the "_close" statement.

I finally found the solution by creating a main script that loads secondary scripts.

Thank you for your help.

Gilbert

I finally found the solution by creating a main script that loads secondary scripts.