admin 发表于 2014-6-1 20:05:02

Windows Active Workspace setup

To enable NX to work with Active Workspace when it is running as a web client, perform the following setup for Windows OS.
NoteEnsure that Teamcenter FCC is running to enable NX to launch from the Active Workspace web client.

[*]Setup the registry to associate mime type with .nxtcxml file.
[*]Update the registry to associate the batch file startNXFromActiveWorkspace.bat, which starts NX when you double-click the .nxtcxml file.
[*]Create the batch file startNXFromActiveWorkspace.bat and place it in a directory to which you have write permissions.
Setup the registry and associate the mime type

[*]To access the Windows registry and make changes, start regedit.exe.
[*]Right-click HKEY_CLASSES_ROOT and choose New→Key.
[*]Rename the new key .nxtcxml and then set the following:

[*]Default Value data=nxtcxml
[*]Right-click .nxtcxml, and choose New→String Value.
[*]Set the following:

[*]Value name=ContentType
[*]Value data=application/nxtcxml
[*]Right-click HKEY_CLASSES_ROOT\MIME\Database\ContentType and choose New→Key.
[*]Rename the new key application/nxtcxml.
[*]Right-click the new key, choose New→String Value, and set the following:

[*]Value name=Extension
[*]Value data=.nxtcxml

Update the registry to set open action for the extension

[*]Start regedit.exe if the Registry Editor is not already open.
[*]Right-click HKEY_CLASSES_ROOT\.nxtcxml and choose New→Key.
[*]Rename the new key Shell, and then right-click it and choose New→Key.
[*]Rename the new key Open, and then set the following:

[*]Value data=&Open
[*]Right-click the Open key and choose New→Key.
[*]Rename the new key Command, and then set the following:

[*]Value data=”<directory to which you have write permissions>\startNXFromActiveWorkspace.bat” “%1”
[*]Close the Registry Editor.

Create the batch file and place it in the directory
Copy the following script and save it as startNXFromActiveWorkspace.bat in the location specified by the Command key in step 6 above.@echo off@remstartNXfromActiveWorkspace@remCopyright (c) 2014 Siemens Product Lifecycle Management Software Inc.@remThis script launches NX in managed mode when invoked from Active Workspace client.@remIn order to use this script FCC must be installed in the machine.@rem JAVA_HOME must be set in user environment or set here@rem set JAVA_HOME=C:\apps\Java\jre7x64@rem FMS_HOME must be set in user environment or set here@rem set FMS_HOME=Y:\tc91\root\tccs@if not exist "%FMS_HOME%" goto :no_fcc@if exist "%UGII_BASE_DIR%" goto :process_command@rem UGII_BASE_DIR must be set in user environment or set here@rem set UGII_BASE_DIR=D:\workdir\nx9mr_ip\nx902.1\wntx64\kits:process_command@setlocal@set PATH=%UGII_BASE_DIR%\UGII;%PATH%@set UGII_ROOT_DIR=%UGII_BASE_DIR%\UGII@"%UGII_ROOT_DIR%\ugs_router.exe" -ugm -use_file_dir %1 -version=V27.0 -passthrough -application_id=AW -user_action_flags=0x0 -opts -http_url_file="%1"@endlocal@goto :end:no_fcc@echo "The environment variable FMS_HOME is not set"@echo "FCCmust be installed in the machine to run NX in managed mode. "@echo "Exiting..."@pause@goto :end:end

页: [1]
查看完整版本: Windows Active Workspace setup