Jesteś tutaj > Les forums > Your creations. > [scripts] AutoCAD sv ru es en fr

Fora

[scripts] AutoCAD

Nowy  - Odpowiedz
Autor Odpowiedzi
Idz do strony 1 - 2 - 3
NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:04 - [Cytuj]
Membre

Membre
Hello,
I've made scripts which will install AutoCAD. All scripts do their work however you need POL Helper plug-in for some. AutoCAD 2008 and 2005 were extensively tested. In other cases only basic functionality was tested.

To install using one of those scripts you have to copy its content to file on your hard disk and then run it from POL by Tools->Run a non-official script

To copy one of the script contents quote post with script for your desired AutoCAD and then copy what will appear in quote window (from "#!/bin/bash" to exit) it is because forum does interpret backlash n as newline symbol.

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:04 - [Cytuj]
Membre

Membre
AutoCAD R14

For script go here

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:05 - [Cytuj]
Membre

Membre
AutoCAD 2000

For script go here

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:06 - [Cytuj]
Membre

Membre
AutoCAD 2002

For script go here

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:07 - [Cytuj]
Membre

Membre
AutoCAD 2004

for script go here

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:08 - [Cytuj]
Membre

Membre
AutoCAD 2005

For script go here

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:09 - [Cytuj]
Membre

Membre
AutoCAD 2006
For script go here

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:10 - [Cytuj]
Membre

Membre
AutoCAD 2008

For script go here

Edytowane przez NSLW

NSLW Data: Czwartek 26 Marzec 2009 ŕ 9:11 - [Cytuj]
Membre

Membre
AutoCAD Mechanical 2008

For script go here

Edytowane przez NSLW

Quentin PÂRIS Data: Czwartek 26 Marzec 2009 ŕ 19:11 - [Cytuj]
Admin

Admin
I think it's not a good idea to force pol helper.

PlayOnLinux's goal is not to say to the user what he have to do.

Your script should download winetricks and rund it, that's very easy
NSLW Data: Czwartek 26 Marzec 2009 ŕ 19:19 - [Cytuj]
Membre

Membre
Oh..
If i would know that i would did so.
You've got right. When i'll have got more time i think about rewriting my scripts. I would like to notice that in case of AutoCAD 2004 and AutoCAD 2005 it isn't possible though because of registration possibility.
Will you explain in coming documentation how to use winetricks in installing scripts? I think it would be very helpful.
Quentin PÂRIS Data: Czwartek 26 Marzec 2009 ŕ 19:22 - [Cytuj]
Admin

Admin
Hum, that's not very clear. I think I will integrate it on POL in the next version. For the moment, that's very easy :

# Exemple with winetricks
wget http://www.kegel.com/wine/winetricks
bash winetricks -q comctl32 comctl32.ocx corefonts gdiplus gecko msls31 msxml3 msxml4 msxml6 riched20 riched30 tahoma
NSLW Data: Czwartek 26 Marzec 2009 ŕ 21:16 - [Cytuj]
Membre

Membre
I thought about it more and in my opinion it's good idea when there is not much to download and to install.
In other case the user will have to wait and he doesn't know what is happening and how long should he wait. So it is the bad site of this solution.

Citation de Tinou:

I think it's not a good idea to force pol helper


I would not used POL Helper if i would knew the ways of doing things with plain POL.
Quentin PÂRIS Data: Czwartek 26 Marzec 2009 ŕ 21:32 - [Cytuj]
Admin

Admin
Ok, If you prefer

# Exemple with winetricks
POL_SetupWindow_wait_next_signal "PlayOnLinux is installing winetricks programs on your prefix" "Title of your script"
wget http://www.kegel.com/wine/winetricks
bash winetricks -q comctl32 comctl32.ocx corefonts gdiplus gecko msls31 msxml3 msxml4 msxml6 riched20 riched30 tahoma
POL_SetupWindow_detect_exit


Believe me, it's better. If a grandmother use your script to install your program, she will not understand anything whereas with my solution, all is done automaticaly.
NSLW Data: Czwartek 26 Marzec 2009 ŕ 21:42 - [Cytuj]
Membre

Membre
It would be nice to see progress of downloading 24 MiB .NET Framework 2.0 on 256 kbps bandwidth (not my case but i think about the worst). Don't you think.
User won't wait half hour seeing
PlayOnLinux is installing winetricks programs on your prefix" "Title of your script"
I would think the program hangs.
It is still an half solution as with POL Helper.

Edytowane przez NSLW

Quentin PÂRIS Data: Czwartek 26 Marzec 2009 ŕ 22:30 - [Cytuj]
Admin

Admin
POL helper is a quarter of solution ;)

If you prefer, you can use POL_SetupWindow_download to download .NET Framework
NSLW Data: Czwartek 26 Marzec 2009 ŕ 23:00 - [Cytuj]
Membre

Membre
The reason why i don't like to use POL_SetupWindow_download to download .NET Framework is that it doesn't use cache like winetricks and with every installation I have to wait some time. I think the user with 256 kbps bandwidth thinks the same.
With winetricks i can copy already downloaded .NET Framework to cache and winetricks will use it so it's practical. Is there anything i don't know about POL_SetupWindow_download caching?

Edytowane przez NSLW

Quentin PÂRIS Data: Czwartek 26 Marzec 2009 ŕ 23:18 - [Cytuj]
Admin

Admin
Yes

cd $REPERTOIRE/ressources/file.exe
if [ ! -e "$REPERTOIRE/ressources/file.exe" ]
then
 POL_SetupWindow_download "Message" "Title" "http://www.website.com/file.exe"
fi


This directory was made for that. You can also check md5 sum if you wish
NSLW Data: Piątek 27 Marzec 2009 ŕ 11:16 - [Cytuj]
Membre

Membre

Citation de Tinou:

POL helper is a quarter of solution ;)

My friend says you are kidding/making laugh/making jokes out of me . Why is POL Helper quarter of solution and not half of solution?

btw.
I modified AutoCAD 2006 script to use winetricks and POL_SetupWindow_download. In my opinion it looks better now however the script is very lengthen out. Probably i'll make other scripts look alike.

Edytowane przez NSLW

Quentin PÂRIS Data: Piątek 27 Marzec 2009 ŕ 12:03 - [Cytuj]
Admin

Admin

Citation de NSLW:


My friend says you are kidding/making laugh/making jokes out of me . Why is POL Helper quarter of solution and not half of solution


Because POL Helper is more a tool foor advanced user. Your script was as if I made a script like that :

#!/bin/bash
[ "$PLAYONLINUX" = "" ] && exit 0
source "$PLAYONLINUX/lib/sources"

POL_SetupWindow_presentation "My script" "My title" "ect.."
POL_SetupWindow_message "First, download the application www.website.com" "My script"

POL_SetupWindow_message "Now, open a terminal and type 'EXPORT wineprefix = $HOME/.PlayOnLinux/wineprefix/appname'"

POL_SetupWindow_message "Then, type wine my_file.exe" 

# ect...


You see it's a non-sense

PoL's aim is to do all automatically, not to say to the user "You have to do that and it will work"

I'm just trying to explain you that, not to jokes out of you

Edytowane przez Tinou

Il n'y a rien à voir ici