• This forum is the machine-generated translation of www.cad3d.it/forum1 - the Italian design community. Several terms are not translated correctly.

apertura di un dwg tramite script

AlbertoBianco

Guest
Hello everyone! I found nothing about opening a dwg file through a script procedure. I tried to enter this procedure but it doesn't work:

_fileopen
j:\committee - ici\hici449c\pd\h\pdh066ab0a.dwg

Can you help me? ?

Thank you!:wink::biggrin:
 
_ filiopene"j:\commesse - ici\hici449c\pd\h\pdh066ab0a.dwg"(you must then head after the route)
 
_
"//mserver/1170/mec/details/tie fg.13.dwg"

or
_
"\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
 
Hello everyone! I found nothing about opening a dwg file through a script procedure. I tried to enter this procedure but it doesn't work:

_fileopen
j:\committee - ici\hici449c\pd\h\pdh066ab0a.dwg

Can you help me? ?

Thank you!:wink::biggrin:
Where did you try to put it in?

you need to create a text file and save it then with .scr extension

then run it by tools->exegui scripts.

I would personally use a lisp file so you upload it and run it from command line

using your own method comes out, then there are also other ways.
save what I wrote in a text file and save it with .lsp extension
then from strumeti->autolisp-> application

to launch the command type openf

(defun c:openf(); command name
(command "_fileopen" "c:/percorse/esem. dwg" ) ; path and file name attention "/" and not "\"
)

change the fields according to your needs.
 
_ filiopene"j:\commesse - ici\hici449c\pd\h\pdh066ab0a.dwg"(you must then head after the route)
As for going to my head, I'm sure I've done everything as you have to:finger:
Where did you try to put it in?

you need to create a text file and save it then with .scr extension

then run it by tools->exegui scripts.

I would personally use a lisp file so you upload it and run it from command line

using your own method comes out, then there are also other ways.
save what I wrote in a text file and save it with .lsp extension
then from strumeti->autolisp-> application

to launch the command type openf

(defun c:openf(); command name
(command "_fileopen" "c:/percorse/esem. dwg" ) ; path and file name attention "/" and not "\"
)

change the fields according to your needs.
then..I created it as .txt file and then I replaced the extension with .scr
This procedure would help me to print more dwg with the printed settings applied, so as well as to open the dwg I must also print it. .the press procedure I have already checked and works (the one created by me) but I can not add precisely the automatic opening of the file to print. I don't know if I explained well.:redface:
 
Where did you try to put it in?

you need to create a text file and save it then with .scr extension

then run it by tools->exegui scripts.

I would personally use a lisp file so you upload it and run it from command line

using your own method comes out, then there are also other ways.
save what I wrote in a text file and save it with .lsp extension
then from strumeti->autolisp-> application

to launch the command type openf

(defun c:openf(); command name
(command "_fileopen" "c:/percorse/esem. dwg" ) ; path and file name attention "/" and not "\"
)

change the fields according to your needs.
It works with the method you told me! This can come back useful and thank you!:wink:
I think how much you find herehttp://www.cad3d.it/forum1/showthread.php?t=6107It can be better than good....

but above all... Why not use _Publish If you just need to print?
while for the basic problem, i.e. printing multiple files without staring them all open one by one, the publish command is a manna from the sky!:finger: I did not know this command.. thank you for the umpteenth time mbt:biggrin: you solved my problem!
 
happy to have done it. :finger:

Why "really"?
Have I done this before? :confused:
you had suggested to me the command to ablitate the pan to the pressure of the mouse wheel that I had messed up:smile:
 

Forum statistics

Threads
44,997
Messages
339,767
Members
4
Latest member
ibt

Members online

No members online now.
Back
Top