CoCreate User Forum  

Go Back   CoCreate User Forum > Applications > CoCreate Drafting

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 02-02-2010, 04:56 AM
pcushion pcushion is offline
Registered User
 
Join Date: Oct 2002
Location: Dunstable, MA
Posts: 33
Adding a variable in ME10.ini script ....

Hi Guys ....

I am working on getting the Classic User Interface (CUI) from the HP-UX side working on the PC side. We have engineers here that have been using ME10 since it's birth and are very .... dodgey ... about switching to the PC version. Even if it is the CUI. There are macros and menus that they are all SO familiar with that I have been asked to investigate and resolve.

I was wondering if a new variable could be added to the ME10.ini script.
I want to add an "MEHOMEDIR" variable and have it read the windows HOME env variable (usually %USERPROFILE%).

Any and all thoughts are welcome ....

Regards,
Paul.
__________________
Mechanical Designer
M/A-Com Technology Solutions Inc.
Reply With Quote
  #2  
Old 02-02-2010, 05:31 AM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
Re: Adding a variable in ME10.ini script ....

Hello Paul,

What is the purpose for setting this variable in the ini file, I'm asking to undersatand better what you are trying to do to provide a better answer to your question.

Cheers,
Thom
Reply With Quote
  #3  
Old 02-02-2010, 06:13 AM
pcushion pcushion is offline
Registered User
 
Join Date: Oct 2002
Location: Dunstable, MA
Posts: 33
Re: Adding a variable in ME10.ini script ....

Hi Thom,

We have custom macros that use some UNIX syntax's for pointing to the users home directory that do not work in the XP environment.
I want to know if I can use the Windows Environment Variable HOME (%USERPROFILE%) to have these macros point to the users "home" folder within Documents and Settings ... Typically the login name the user log's into their computer with.

I was hoping that by creating a variable within the .ini, i would get some help in pointing these macros to the users home directory.

Does this make sense???

The macros are just so extensive (and proprietary) that I can't send any for you to look at.
__________________
Mechanical Designer
M/A-Com Technology Solutions Inc.
Reply With Quote
  #4  
Old 02-02-2010, 06:57 AM
gmatelich's Avatar
gmatelich gmatelich is offline
Registered User
 
Join Date: Oct 2002
Location: Bellevue, WA, USA
Posts: 396
Re: Adding a variable in ME10.ini script ....

You can check out http://www.cocreateusers.org/forum/showthread.php?t=7454 to see if these WorkManager commands are all avialable in ME10.

Perhaps you will just want to hard code their home folder into their C:\Program Files\CoCreate\CoCreate Drafting 2008\startup.m file, i.e LET MEHOMEDIR 'C:\Documents and Settings\gregm\My Documents'
Reply With Quote
  #5  
Old 02-02-2010, 07:33 AM
pcushion pcushion is offline
Registered User
 
Join Date: Oct 2002
Location: Dunstable, MA
Posts: 33
Re: Adding a variable in ME10.ini script ....

That would be ideal, but there are hundreds of users.
So being able to use a variable would be better.
__________________
Mechanical Designer
M/A-Com Technology Solutions Inc.
Reply With Quote
  #6  
Old 02-02-2010, 08:17 AM
Thom Ivancso's Avatar
Thom Ivancso Thom Ivancso is offline
Registered User
 
Join Date: Oct 2002
Location: Connecticut, USA
Posts: 212
Re: Adding a variable in ME10.ini script ....

Hello Paul,

You can add a variable to the ME10.ini file and then read it into Drafting using the GETENV command.

So what I did was to add a variable called ME_USERHOME under the [ME10 MISC] header as shown below.

[ME10 MISC]
;MELZWCLIP=0
;MEIGNOREBADSYMLINEERROR=0
;ME_ALTERNATIVE_WUI_MENUS=0
ME_MANUALSCD_DIR=
ME_USERHOME=D:\

And then once Drafting was running I ran the following two lines from the command line as follows.

LET Hdir (GETENV 'ME_USERHOME')
DISPLAY Hdir

And then I got the information back as D:\

But in order to do this with the Classic (MOTIF) interface you have to change the ME10.ini file in the

drive:\Program Files\CoCreate\CoCreate Drafting 2008\old_ui folder and not the main folder.

hth,
Cheers
Thom
Reply With Quote
  #7  
Old 02-02-2010, 09:04 AM
pcushion pcushion is offline
Registered User
 
Join Date: Oct 2002
Location: Dunstable, MA
Posts: 33
Re: Adding a variable in ME10.ini script ....

That is awesome ... Thank You Thom.

I will try it out and let you know.

Regards ... Paul.
__________________
Mechanical Designer
M/A-Com Technology Solutions Inc.
Reply With Quote
  #8  
Old 02-02-2010, 09:30 AM
Mike Swartz's Avatar
Mike Swartz Mike Swartz is offline
Registered User
 
Join Date: Jan 2004
Location: Fort Collins
Posts: 322
Re: Adding a variable in ME10.ini script ....

So, if you just want to access the %USERPROFILE% directory, why create a new variable?

LET Hdir (GETENV 'USERPROFILE')
DISPLAY Hdir
Or if you want to go one step further, and add the customization to a directory you create in the userprofile directory (named for this example.......CoCreate)

INPUT ((GETENV 'USERPROFILE')+'\CoCreate\my_custom_macro.m')
Reply With Quote
Reply

Tags
me10.ini


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 03:38 AM.



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.