CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 11-28-2005, 08:25 PM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 8
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
Reply With Quote
  #2  
Old 11-29-2005, 02:47 AM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
Post 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.
Attached Files
File Type: doc me10dde.doc (47.0 KB, 566 views)
Reply With Quote
  #3  
Old 11-29-2005, 08:14 AM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 8
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
Attached Files
File Type: doc me10f.doc (87.0 KB, 570 views)
Reply With Quote
  #4  
Old 11-29-2005, 08:32 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
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
Reply With Quote
  #5  
Old 11-29-2005, 10:04 PM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
Re: Opening mi files via windows explorer

Hi Edfen

the topic General must be in capital letter GENERAL.

Regards. GiorgioL
Reply With Quote
  #6  
Old 11-30-2005, 05:01 AM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 8
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!
Reply With Quote
  #7  
Old 11-30-2005, 10:50 AM
John Scheffel's Avatar
John Scheffel John Scheffel is offline
Administrator
 
Join Date: Sep 2002
Location: San Jose, CA
Posts: 1,288
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
Reply With Quote
  #8  
Old 11-30-2005, 01:15 PM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 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.
Reply With Quote
  #9  
Old 12-01-2005, 06:49 AM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 8
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!
Reply With Quote
  #10  
Old 12-01-2005, 10:25 PM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
Re: Opening mi files via windows explorer

Hi Edfen,

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

{erase all information}
delete all confirm

{rename the top part }
rename_part 'Top'
Reagrds. GiorgioL
Reply With Quote
  #11  
Old 12-02-2005, 07:32 AM
Gary Brauch Gary Brauch is offline
Registered User
 
Join Date: Oct 2002
Location: Colorado
Posts: 220
Re: Opening mi files via windows explorer

Quote:
Originally Posted by edfen
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.
Reply With Quote
  #12  
Old 12-02-2005, 09:32 AM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 8
Re: Opening mi files via windows explorer

Thanks to all!

Boss is happy.
Reply With Quote
  #13  
Old 01-23-2006, 01:53 PM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 8
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!
Reply With Quote
  #14  
Old 01-24-2006, 10:08 PM
GiorgioL GiorgioL is offline
Registered User
 
Join Date: Oct 2002
Location: Pordenone (PN) - ITALY
Posts: 78
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.
Reply With Quote
  #15  
Old 01-25-2006, 12:08 PM
edfen edfen is offline
Registered User
 
Join Date: Nov 2005
Posts: 8
Re: Opening mi files via windows explorer

Thanks for the tip GiorgioL!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 08:34 PM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.