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
gt22
April 20, 2015, 12:18pm
2
See this communication thread here
http://www.lynkoa.com/forum/draftsight/aux-specialistes-draftsight
conclusion for drafsight you need Absolutely premium to create macros
@+ ;-))
pl
April 20, 2015, 1:09pm
3
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.
pl
April 20, 2015, 1:16pm
4
And maybe a clue: if you associate SCR files with DraftSight in Windows, does it work?
pl
April 20, 2015, 1:26pm
5
Another solution would be to use FREECAD which is also free to do this:
http://www.freecadweb.org/wiki/index.php?title=Macros
pl
April 20, 2015, 2:29pm
7
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
pl
April 20, 2015, 4:15pm
9
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.