PDA

View Full Version : Opening mi files via windows explorer


edfen
11-28-2005, 08:25 PM
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

GiorgioL
11-29-2005, 02:47 AM
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.

edfen
11-29-2005, 08:14 AM
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

John Scheffel
11-29-2005, 08:32 AM
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.

GiorgioL
11-29-2005, 10:04 PM
Hi Edfen

the topic General must be in capital letter GENERAL.

Regards. GiorgioL

edfen
11-30-2005, 05:01 AM
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!

John Scheffel
11-30-2005, 10:50 AM
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.

edfen
11-30-2005, 01:15 PM
Hi John,

Thanks for the info. That did the job!

Ya have to love these boards. Great savings in time and effort.

edfen
12-01-2005, 06:49 AM
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!

GiorgioL
12-01-2005, 10:25 PM
Hi Edfen,

instead use the wui_new keyword you can use:
{go to top part}
edit_part top

{erase all information}
delete all confirm

{rename the top part }
rename_part 'Top'

Reagrds. GiorgioL

Gary Brauch
12-02-2005, 07:32 AM
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!

In the classic, you can use:
reset_system confirm

This works as well.
G.

edfen
12-02-2005, 09:32 AM
Thanks to all!

Boss is happy.

edfen
01-23-2006, 01:53 PM
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!

GiorgioL
01-24-2006, 10:08 PM
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.

edfen
01-25-2006, 12:08 PM
Thanks for the tip GiorgioL!