美文网首页
017 - 获得Vault的文件属性和ITEM属性

017 - 获得Vault的文件属性和ITEM属性

作者: 怪怪001 | 来源:发表于2024-05-24 15:06 被阅读0次

iLogic程序编制过程

    1.判断是否已经登录Vault

    2.判断这个文件是否在Vault中已经存在

    3.如果不存在,结束程序

    4.如果存在,获得文件属性和ITEM属性

Sub Main

    If iLogicVault.LoggedIn = False

        Logger.Error("Not Logged In to Vault! - Login first and repeat executing this rule.")

        Exit Sub

    End If

    Dim mVaultFileProps As System.Collections.Generic.Dictionary(Of String, String) = New Dictionary(Of String, String)

    Dim mVaultItemProps As System.Collections.Generic.Dictionary(Of String, String) = New Dictionary(Of String, String)

    Dim mVaultFile As String = iLogicVault.GetFileByFullFilePath("$/Designs/Inventor Sample Data/Fishing Rod/Back Side Cover.ipt", mVaultFileProps, mVaultItemProps) 

    If mVaultFile Is Nothing Then

        Logger.Error("Vault file not found. Please double check that file path is correct or that the file exists in Vault.")

    Else

        Logger.Info("File " & mVaultFile & " (including dependent and attachment files) downloaded.")

        For Each item In mVaultFileProps

            Logger.Info("Vault File Property Name/Value: " + item.Key + " = " + item.Value)

        Next

        For Each item In mVaultItemProps

            Logger.Info("Vault linked Item Property Name/Value: " + item.Key + " = " + item.Value)

        Next

        Logger.Info("File " & mVaultFile & " download finished.")

  End If

End Sub

相关文章

  • linux 查漏补缺 2

    Linux 下软件安装相关 2.1 文件属性和可执行属性 2.1.1 文件属性 文件属性 rwx 中 r 表示 r...

  • 2019-07-18

    day15 系统文件属性 课程介绍 1.文件属性中有什么2.文件属性文件类型 解锁很多命令3. 文件属性文件权限...

  • 文件的属性、软硬链接、命令执行流程

    一 、 文件属性 ll -h 查看文件属性 ls -l [root@ZhaoJianHao-1 ~]# llto...

  • linux 文件属性与目录管理

    linux 文件属性与目录管理 linux 文件属性 linux 文件基本属性 当为[ d ]则是目录 当为[ -...

  • 给文件添加自定义属性

    获取文件属性 文件属性大概如下: 其中我们要自定义的属性,就需要写在文件扩展属性中。key是:NSFileExte...

  • Linx--常用命令第三篇

    一.常用命令 - find 根据文件属性进行搜索 语法: find 路径 文件属性 例如: find ....

  • 2019-07-19

    day16 文件属性相关知识 A.昨日回顾: 1.文件属性组成部分:8个部分 文件类型2.文件属性类型:(文本文件...

  • 三 Linux知识补充

    Mac文件属性 从文件属性看文件类型与文件权限 改变权限:chmod 设置的方法有两种:数字类型改变和符号类型改变...

  • Linux-03

    一、常用命令 - find 根据文件属性进行搜索 语法: find 路径 文件属性 例如: find . -nam...

  • day 16 操作系统文件属性/正则符号

    find的使用 文件属性--文件索引概念 inode block 文件属性--硬链接数 硬链接 软连接 系统正则符...

网友评论

      本文标题:017 - 获得Vault的文件属性和ITEM属性

      本文链接:https://www.haomeiwen.com/subject/uypxqjtx.html