## Accessing documentation topics requires a HTTP server, which is done through a Node.js process. ## Note: as a consequence, it is not supported to open documentation using file protocol (by directly opening a HTML file). ## ## Accessing help directly from the 3DEXPERIENCE web client (aka Contextual Help) requires using HTTPS protocol, ## You can either configure the Node.js server to use HTTPS (by providing a certificate and a private key). ## Or setup a reverse proxy using HTTPS protocol that should be used as a gate to the Node.js server (itself using HTTP protocol). ## No reverse proxy installation is provided by the installation and so it must be handled by the customer ## and the reverse proxy URL must be indicated during the installation. ## ## === About the Reverse proxy === ## ## If you use a reverse proxy, whatever the one you use, assuming the reverse proxy is listening to , the following queries will have to be forwarded to the Node.js server, as well as potential parameters: ## => http://: ## /resources/msgcatalog/CommonId2url.CATNls => http://:/resources/msgcatalog/CommonId2url.CATNls ## /request/ => http://:/request/ ## / => http://:/ ## //isFirstTime => http://://isFirstTime ## //installedList => http://://installedList ## //getTranslatedTerms=> http://://getTranslatedTerms ## ## === About the Node.js process on Windows === ## ## On Windows, the Node.js server is managed through a Windows service (parameter values are deducted from the choices done during the installation) ## created during the installation procedure. ## The Windows service is created this way: ## prunsrv.exe //IS//DassaultSystemes_3DEXPERIENCE_Documentation_R2027x --DisplayName="Dassault Systemes 3DEXPERIENCE Documentation NodeJS R2027x 4040" --Description="Dassault Systemes 3DEXPERIENCE Documentation" --Startup=auto --StartMode=exe --StartImage="C:\Program Files\Dassault Systemes\B429doc\node.exe" --StdOutput "C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040.log" --StdError "C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040.log" --LogPrefix ds_docservice --LogLevel Info --LogPath="C:\Users\ADMINI~1.MES\AppData\Local\Temp" --ServiceUser=LocalSystem --StartParams="C:\Program Files\Dassault Systemes\B429doc\DSDocNode_http34.js"#-rootpath="C:\Program Files\Dassault Systemes\B429doc"#-port=4040#-host=AES-TKP-SVR.mesfuture.local#-proxyurl=http://localhost:4040#-toc=DSDoc.xml#-search=javaauto#-searchoutput="C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040_search.log"#-site=DSDOC#-javapath="C:\3DX2027\jdk-25.0.5.1\bin"#-feedback=yes# --StopMode=exe --StopImage="C:\Program Files\Dassault Systemes\B429doc\node.exe" --StopParams="C:\Program Files\Dassault Systemes\B429doc\DSDocNode_stop34.js"#-port=4040#-proxyurl=http://localhost:4040 ## If for any reason the Windows service cannot be stopped during upgrade, kill the node process then use this command to update the service manually: ## prunsrv.exe //US//DassaultSystemes_3DEXPERIENCE_Documentation_R2027x --DisplayName="Dassault Systemes 3DEXPERIENCE Documentation NodeJS R2027x 4040" --Description="Dassault Systemes 3DEXPERIENCE Documentation" --Startup=auto --StartMode=exe --StartImage="C:\Program Files\Dassault Systemes\B429doc\node.exe" --StdOutput "C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040.log" --StdError "C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040.log" --LogPrefix ds_docservice --LogLevel Info --LogPath="C:\Users\ADMINI~1.MES\AppData\Local\Temp" --ServiceUser=LocalSystem --StartParams="C:\Program Files\Dassault Systemes\B429doc\DSDocNode_http34.js"#-rootpath="C:\Program Files\Dassault Systemes\B429doc"#-port=4040#-host=AES-TKP-SVR.mesfuture.local#-proxyurl=http://localhost:4040#-toc=DSDoc.xml#-search=javaauto#-searchoutput="C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040_search.log"#-site=DSDOC#-javapath="C:\3DX2027\jdk-25.0.5.1\bin"#-feedback=yes# ## If for any reason the Windows service is not removed after uninstallation, use this command to do it manually: ## prunsrv.exe //DS//DassaultSystemes_3DEXPERIENCE_Documentation_R2027x ## ## === About the Node.js process on Linux === ## ## Important: On Linux the Node.js server must be run manually (or preferably through a Linux service, but then you must create it yourself). ## ## On Linux, node-v24.19.0-linux-x64 can be found in the directory where the media has been installed. ## On Windows, node.exe can be found in the folder where the media has been installed. ## Hereafter we will use "node" as a shortcut for either node-v24.19.0-linux-x64 or node.exe ## Note: it is also possible to use another Node.js executable that you already have installed on your machine. ## The JavaScript code used for the documentation server is DSDocNode_http34.js, that you can find at the same location as the node executable. ## ## To start the documentation server: ## node DSDocNode_http34.js -rootpath= (default=.) ## -protocol= (default=http) ## -proxyurl= (default=no) ## -host= (default=localhost) ## -port= (default=4040) ## -toc= (default=./DSDoc.xml) ## -search= (default=javaauto) ## -searchoutput= (default=default) ## -site= (default=DSDOC) ## -javapath= (default='') ## -feedback= (default=yes) ## where: ## - indicates where to find documentation stuff. If the node process is run from the folder where it is located, no need to use this parameter. ## Example: -rootpath="C:\Program Files\Dassault Systemes\B425Doc" ## - indicates the access protocol used by the Node.js server. ## Example: -protocol=https ## - indicates how the documentation server will be accessed from a browser. ## If you use a reverse proxy, this must be set as the reverse proxy URL. ## Example: -proxyurl=https://3dxdocserver.mycompany.com for a reverse proxy ## If you use HTTPS protocol (-protocol=https), this must be set as the server alias with the port. ## Example: -proxyurl=https://3dxdocserver.mycompany.com:4040 for a direct access to the documentation server using HTTPS ## If you only want to access the documentation directly (not through contextual help from a 3DEXPERIENCE rich or web client), no need to use this parameter. Otherwise, a reverse proxy must be set and configured to forward HTTPS queries to the Node.js server, or the Node.js server must use HTTPS protocol. ## - indicates the name of the machine where the Node.js process runs. If a reverse proxy is used, no need to use this parameter. ## Example: -host=mymachinename. localhost value can be used but then the documentation server won't be reachable from other machines. ## - indicates the port number where the Node.js server listens for HTTP requests. ## Example: -port=4040 ## - indicates the path to the root TOC file used to describe the table of content. ## Example: -toc=DSComposerDoc_TOC.xml ## - indicates which search implementation will be used. Reserved, always use the default value ## - indicates where search server output is redirected (can be used for debug purpose). Using default value will redirect the output in /ds_docsearch.log ## - indicates which corpus is to be used by the search implementation as well as which page is to be displayed by default. ## Possible values are: DSDOC (for 3DEXPERIENCE documentation), DSSIMULIA_Established, CATIA_Composer, CATIA_ComposerPlayer. ## - indicates where java is installed. Using default value will use java exe from Path environment variable ## - (yes|no) indicates whether the user is allowed to send feedback about the documentation, using their mail. ## ## Example: ## "C:\Program Files\Dassault Systemes\B429doc\node.exe" "C:\Program Files\Dassault Systemes\B429doc\DSDocNode_http34.js" -rootpath="C:\Program Files\Dassault Systemes\B429doc" -port=4040 -host=AES-TKP-SVR.mesfuture.local -proxyurl=http://localhost:4040 -toc=DSDoc.xml -search=javaauto -searchoutput="C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040_search.log" -site=DSDOC -javapath="C:\3DX2027\jdk-25.0.5.1\bin" -feedback=yes | tee C:\Users\ADMINI~1.MES\AppData\Local\Temp\ds_docnode4040.log ## ## The documentation is available once the Node.js process output indicates it is listening: ## Wed Aug 10 2022 15:59:25 : ...Documentation server listening at http://mymachinename:4040/English ## ## Note: the Node.js process will serve every language found in . ## Then, once the server is listening, to access the documentation you must enter the following URL in a browser's address bar: ## http://localhost:4040/language ## Where language can be English, French, Italian, Spanish, Russian, Japanese or Simplified_Chinese depending on which one(s) you installed ## ## Server URL to use for contextual help (language must be omitted when you specify user assistance location for contextual help in a 3DEXPERIENCE rich or web client, since the language is always appended depending on the context): ## http://localhost:4040 ## ## To stop the documentation server: ## node DSDocNode_stop34.js -port= (default=4040) ## -protocol= (default=http) ## -proxyurl= (default=no) ## or directly ## curl http://localhost:4040/cleanandstop ## ## === Multi-versions Server === ## ## The installed Node.js server is expected to serve all the languages of the same version (2023x for example). ## It is however possible for a Node.js server to serve several versions if they are located under the same location, but it requires a manual operation. ## For example on Windows, let's assume you have installed R2022x and R2023x documentation in C:\Program Files\Dassault Systemes (respectively in B424doc and B425doc), called the parent location. You must: ## - copy in the parent location the following content from the latest installation: node_modules folder, node.exe and DSDocNode*.js files ## - create a configuration file (for example Roots.txt) in the parent location, containing one line per version, as followed: ## ||| ## For example for 3DEXPERIENCE: ## B425doc|C:\Program Files\Dassault Systemes\B425doc|DSDoc.xml|DSDOC ## B424doc|C:\Program Files\Dassault Systemes\B424doc|DSDoc.xml|DSDOC ## Or for SIMULIA Established Products: ## B425doc|C:\Program Files\Dassault Systemes\B425doc|DSSIMULIA_Established_TOC.xml|DSSIMULIA_Established ## B424doc|C:\Program Files\Dassault Systemes\B424doc|DSSIMULIA_Established_TOC.xml|DSSIMULIA_Established ## value should be the folder name of each version ## - run node.exe, replacing DSDocNode_http34.js by DSDocNode_httpmulti34.js, and adding -roots parameter to indicate the configuration file. ## For example: ## node .\DSDocNode_httpmulti34.js -port=8000 -host=mymachinename -roots=Roots.txt ## Then the Node.js server URL will contain the alias. For example: http://mymachinename:8000/B424doc/English to access B424doc version ## and the reverse proxy parameters will have to be updated accordingly ##