Creo View 新的加载机制:Creo View 3.1 M010 及以后版本安装时,会自动安装 Creo View Agent (bin\pvagent.exe)
和传统 Creo View 插件注册 (pview.ocx) 的方式类似,类似 Internet Explorer 11 版本的浏览器仍然以这种方式注册新的 Uniform Resource Identifier (URI),这些 URI 以 creoview:// 名称开头
Windchill 11.0 M010 及其后续版本现在调用这些 URI 让浏览器加载 Creo View Agent,并反过来连接 Windchill,目的是让 Creo View 客户端完全和 Windchill 进行集成
Windchill>浏览器>Creo View 加载工作流:用户点击 Windchill 对象详细信息页面上缩略图或者内容选项卡中相应的表示法,执行在Creo View 中打开的动作
Windchill 可视化服务(WVS) 构建 creoview:// URI 字符串,包括以下:
a. Windchill 服务器基本 URL 信息
b. 客户端上使用的浏览器类型
c. Windchill 需要加载的进程 ID
d. Windchill 需要加载的用户账户信息
浏览器将需要注册的 URI 信息映射到 Creo View Agent (pvagent.exe)中,在执行前,跳出对话框让用户确认是否需要执行:
Internet Explorer | Prompt: Do you want to allow this website to open a program on your computer?
 |
---|
Google Chrome | Prompt: External Protocol Request Google Chrome needs to launch an external application to handle creoview: links... The following application will be launched if you accept this request:...
 |
---|
Mozilla Firefox | Prompt: This link needs to be opened with an application.
 |
---|
假设你已接受 (点击OK),并选择记住我的决定 (可选项,可根据情况决定是否勾选),浏览器会执行系统请求,调用 Creo View Agent (pvagent.exe),并把编译后的 creoview:// 信息传回,举例为以下的命令行:
"<path>\bin\pvagent.exe" "creoview://?wcparams=eyJhdHRyaWJ1dGV...XJpZCI6IndjYWRtaW4ifSwiaWQiOiJjdiJ9"
Windows 用户账户控制 (UAC) 也会跳出对话框让你确认请求的应用程序可以被加载
如果 Creo View Agent 进程未完成 Windchill 服务器和用户账号的匹配,Creo View Agent 将做以下动作:
闪屏:阻止用户多次重复点击造成网络潜在影响
显示 Windchill 认证窗口或Windows 认证窗口,要求提供独立的进程连接 Windchill
Creo View Agent 检查输入的 Windchill 用户名正确并和 Windchill 用户控制一致的话,则退出;否则会跳错:
Error: ATTENTION: Must authenticate client using the same authenticated Windchill user.
iv. 匹配成功,Creo View Agent 加载 Creo View client (productview.exe) 进程打开请求的表示法
如果 Creo View Agent 进程未处理 Windchill 服务器和用户认证, Creo View Agent 会加载一个会话选择框:
用户可选择创建新会话或将当前表示法添加到结构中
当 Creo View Client 加载后,通过其顶层的 Creo View Agent 进程和浏览器进行通信
解码 URI 连接字符串:
creoview:///?wcparams=eyJhdHRyaWJ1dGVzIjp7InVybGJhc2UiOiJodHRwOi8vc2VydmVyLW5hbWUucHRjbmV0 LnB0Yy5jb20vV2luZGNoaWxsIiwiYnJvd3NlciI6ImllIiwic2Vzc2lvbmlkIjoiWWJWNW8yaW5wcmJ4Y0FoVno1MUg tNzEyd0U0LjFndmUiLCJ1c2VyaWQiOiJ3Y2FkbWluIn0sImlkIjoiY3YifQ==