
3.4 初次打开UiPath Studio
3.4.1 初次打开UiPath Studio 时的设置
点击图3-16 界面中网址右侧的下箭头,如图3-20 所示,界面如图3-21 所示。

图3-20

图3-21
点击图3-21 左下角的“Use Machine Key”,界面变为如图3-22 所示。

图3-22
如果你已经在UiPath 的云平台上注册了账号,此时在图3-22 界面输入Orchestrator URL 和Machine Key 即可,点击图3-22 界面右下角的Continue,进入下一界面。
在UiPath 的云平台上注册账号和获取Orchestrator URL 和Machine Key 值,请看本书3.4.4 章节说明,这里先不输入Orchestrator URL 和Machine Key 值,点击图3-22 界面左下角的“Use License Key”,进入下一界面,如图3-23 所示。
点击图3-23 界面中的Use Community Offline,进入下一界面,如图3-24 所示。

图3-23

图3-24
提示:UiPath StudioX 是UiPath 新推出的面向业务用户,供个人使用的创建任务自动化的设计器,读者可以自己尝试使用,这不是本书重点,不再展开。
点击图3-24 界面中的UiPath Studio,进入UiPath Studio 启动界面,如图3-25 所示。

图3-25
UiPath Studio 启动后,弹出“欢迎”页面,如图3-26 所示。

图3-26
点击图3-26 界面中右下角的Close,进入UiPath Studio Start 界面,如图3-27 所示。

图3-27
在图3-27 界面左下角,可以看见你刚安装的UiPath Studio 的版本为社区版及相应的版本号。
3.4.2 切换为中文界面
如果你希望使用中文界面,修改过程如下。
选择“Settings→General→ Language”,如图3-28 所示。

图3-28
选择“中文(简体)”后,会立即提示需要重启UiPath Studio,如图3-29 所示。

图3-29
点击图3-29 界面中的“Restart”按钮,开始重新启动,如图3-30 所示。

图3-30
重新启动后,显示中文“欢迎”页面,关闭,显示“开始”页面(界面左侧第3 项),如图3-31 所示。

图3-31
修改中文界面操作完成。
3.4.3 进入UiPath Studio 的设计界面
初次打开,还不知道如何设计,下面通过UiPath Studio 的模板功能,创建一个“机器人企业框架”流程,来进入UiPath Studio 的设计界面。
在图3-31 的界面中,选择界面右下角的“从模版创建“中的“机器人企业框架”,弹出该项目默认信息的界面,如图3-32 所示,项目名称、存储位置都可以修改,或者直接使用默认显示的。

图3-32
点击图3-32 界面右下角的“创建”按钮,开始生成相应文件,如图3-33 所示。

图3-33
生成完成后,进入UiPath Studio 的“设计”界面,“设计”界面左侧,显示了你刚才新建“项目”的文件构成框架,Main.axml 是其中一个文件,如图3-34 所示。

图3-34
鼠标双击图3-34 界面中左侧的Main.axml,显示Main.xaml 的编辑界面,点击界面右侧下面的“大纲”,可以用大纲方式显示流程图,如图3-35 所示。

图3-35
3.4.4 在UiPath 的云平台上注册账号和获取Orchestrator URL 和Machine Key 值
点击图3-16 界面的“login”按钮,自动用浏览器打开UiPath 的云平台,如图3-6,如果之前登陆过,直接进入图3-7 所示界面。
如果没有该平台的账号,需要注册一个UiPath 账号,一般采用自己的邮箱来做用户名。
注册完成后,通过你的账号登入UiPath 的云平台,如图3-36 所示。

图3-36
该平台是英文,如果使用的是谷歌浏览器,可以翻译成中文,翻译不是很准确。
进入平台后,点击默认页面中的“Orchestrator Services“下的Orchestrator 的名称,例如我的名称叫GTCDefault(你的名称可能设置与我不同),进入Orchestrator 的界面,如图3-37 所示。

图3-37
进入后,默认语言是英文,点击右上角你的账号图标,可以修改语言,如图3-37 所示。语言修改为中文后,在Orchestrator 中登记你的计算机,如图3-38 所示。

图3-38
点击图3-38 中的+后,+变成×,而且左侧多了两个图标,选择第一个图标,如图3-39所示。

图3-39
点击添加标准计算机后,弹出界面中输入自己的计算机名称,然后点击“配置“按钮,如图3-40 所示。

图3-40
配置完成后,复制你配置的这个计算机的键值,用于Studio 连接,如图3-41 所示。

图3-41
复制计算机的键值后,把你在图3-41 所示界面中复制的计算机键值,粘贴到图3-22所示界面中的“计算机键值“处。如果你已经跳过了这个界面,没关系,本文3.4.5 节中有“获得机器人授权的过程”
图3-22 所示界面中Orchestrator URL 处填写的内容为你进入Orchestrator 后的那个URL,取该URL 的截止你Orchestrator Service 的名称部分,例如我的填写内容是:https://cloud.uipath.com/gtc/GTCDefault,如图3-42 所示。

图3-42
点击图3-42 所示界面中右下角的“继续“后,切换到图3-24 所示界面,后续步骤基本相同,这里不再赘述。
3.4.5 获得机器人授权的过程
如果你初次进入UiPath Studio 界面,跳过了输入Orchestrator URL 和Machine Key 的步骤,运行机器人时,需要补上该步骤,否则允许流程会出现如图3-43 所示提示。

图3-43
获得机器人授权的过程如下。
打开UiPath Studio 后,UiPath Assistant 自动也打开了(如果没打开,或者你把UiPath Assistant 关闭了,在Windows 的程序中找到UiPath Assistant 的快捷方式,重新打开即可),打开后,自动最小化在windows 的右下角,如图3-19 所示。
双击图3-19 界面中的Ui 图标,显示UiPath Assistant 界面,如图3-44 所示。

图3-44
点击图3-44 界面右上角的人头像按钮,在弹出菜单中选择“首选项”,如图3-45 所示。

图3-45
弹出“首选项”界面,在界面中点击“Orchestrator 设置”,在设置界面中点击“连接类型”下拉框,选择“计算机键值”,如图3-46 所示。

图3-46
选择后,界面如图3-47 所示,输入Orchestrator URL 和计算机键值(图中举例的键值被马赛克了,你使用你的键值即可),点击“连接”按钮。
连接成功后,界面如图3-48 所示,显示状态:已连接,已获得许可。
然后关闭“首选项”界面,再去运行你的流程,UiPath Assistant 界面会显示你的流程,如图3-49 所示。

图3-47

图3-48

图3-49