#1
|
|||
|
|||
Opening mi files via windows explorer
New user of OneSpace Designer Drafting application (release 13.20).
Is it possible to open mi files via windows explorer an not have multiple instances of OneSpace Designer Drafting 2005 opened? I would like to open an mi file and have the file open into an existing instance of OneSpace Designer Drafting 2005. Thanks |
#2
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi Edfen,
I could suggest my solution tested on WINXP or WINNT O.S. Due to the language of WinXP some informations are only in Italian langue but, I hope, it is quite easy understand the concept. First we change the way used by S.O. to call application linked to file extention. In file ME10DDE.DOC you will find the image (in Italian language) how to change it. My way use DDE to pass information to the application. In message DDE row you will find "DDE_LOAD "%1" to allow to call a macro (DDE_LOAD) with a parameter %1 (the file name) So we need to write a macro (DDE_LOAD) DEFINE Dde_load PARAMETER Ffile {clean all drawings} WUI_NEW {load the file and also manage annotation file} LOAD Ffile Annotation_drawings_handling END_DEFINE Load the macro and then try do call drawing from filesystem (with open comand or doble click). Due to some limitation is better is ME10 program starts before to try open the document. For any other information could you ask. Regards GiorgioL. |
#3
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi GiorgioL,
Thanks for the quick response. I followed your instructions. Unfortunately, I am still having the same issue of one instance of me10f.exe being opened per the right-click open on the mi file via explorer. I loaded and manually ran the macro (dde_load 'c:\trash\q.mi'). Macro works fine. The file was open successfully. I am using WinXP Pro. I have attached screen shots of my file type config. Any other ideas? Thanks again, Ed |
#4
|
||||
|
||||
Re: Opening mi files via windows explorer
I don't think it is possible to open multiple MI files in the same Window and switch between them as you can with other Windows applications. You can load multiple MI files into the same drawing space using File, Load File... In the Load File window, check As Subpart to load additional MI files as subparts of the current drawing.
__________________
John Scheffel |
#5
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi Edfen
the topic General must be in capital letter GENERAL. Regards. GiorgioL |
#6
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi GiorgioL,
Thanks for the heads up. I figured that one out after a number of attempts. Been awhile since I last used DDE. Forgot how finicky 'it' could be. Another question for you if you do not mind: Does ME10 have an autoload feature when it comes to macros? I would like the macro to load when the user begins the ME10 session. ie. AutoCAD will automatically load the AutoLISP file 'acad.lsp' when the session is opened. Thanks again for the help! |
#7
|
||||
|
||||
Re: Opening mi files via windows explorer
Startup of ME10 actually loads a sequence of macro files, both source files (*.m) and binary files (*.mc). Typically user customizations are placed in the file customize.m which is located under the main ME10 install folder, but it can be anywhere in the search path. customize.m is loaded at the end of the startup.m file which is the main startup macro file. You should be able to define and execute your macros from the customize.m file.
__________________
John Scheffel |
#8
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi John,
Thanks for the info. That did the job! Ya have to love these boards. Great savings in time and effort. |
#9
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi GiorgioL,
I was aked to now to make the macro work with the 'Classic Interface' (-pelook 1). I tried to use the macro with the classic interface. The macro WUI_NEW does not work with the classic interface. Is there a similar macro or functionality for the classic interface? Thanks again! |
#10
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi Edfen,
instead use the wui_new keyword you can use: Quote:
|
#11
|
|||
|
|||
Re: Opening mi files via windows explorer
Quote:
reset_system confirm This works as well. G. |
#12
|
|||
|
|||
Re: Opening mi files via windows explorer
Thanks to all!
Boss is happy. |
#13
|
|||
|
|||
Re: Opening mi files via windows explorer
Is there a command that I can use within the macro that will prompt the user to save changes (if required)? The RESET_SYSTEM CONFIRM that I currently use in the macro automatically loads the appropriate file......however, any changes that were made to the previous file and not 'stored' by the user are lost. Again....I am looking for the above functionality for the Classic UI version.
Thanks! |
#14
|
|||
|
|||
Re: Opening mi files via windows explorer
Hi,
I suggest to use this to discover if the drawing is modified: inq_env 0 let drw_state (inq 4) drw_state = 1 the drawing is modified drw_state = 0 the drawing is not modified look in reference manual. Regards. GiorgioL. |
#15
|
|||
|
|||
Re: Opening mi files via windows explorer
Thanks for the tip GiorgioL!
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|