#1
|
|||
|
|||
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. |
#2
|
||||
|
||||
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 |
#3
|
|||
|
|||
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. |
#4
|
||||
|
||||
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' |
#5
|
|||
|
|||
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. |
#6
|
||||
|
||||
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 |
#7
|
|||
|
|||
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. |
#8
|
||||
|
||||
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') |
Tags |
me10.ini |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|