UF_UGMGR_convert_name_from_cli
Defined in: uf_ugmgr.h
int UF_UGMGR_convert_name_from_cli(const char * cli_name, char * * internal_name )
overview 概述
Converts a part file name from the command line input format to the internal form. This routine is a null operation if not running NX Manager and does not give an error.
In case of Default Domain: Master Part From: "@DB/<item_id>/<item_revision_id>" To: "%UGMGR=V3.2 PH=itemUid PRH= itemRevUid PN= item_id PRN=item_revision_id RT="has shape" AT="UG master part file""
Non-master Part
From: "<@DB><separator><item_id><separator><item_revision_id><separator><Item Revision to dataset relation><dataset_name>"
To: "%UGMGR=V3.2 PH=itemUid PRH= itemRevUid PN= item_id PRN=item_revision_id AN="dataset name" RT="relation type" AT="Dataset type" AUID=appuid"
e.g.,
From: "@DB/peters-part/A/spec/sheet1"
To: "%UGMGR=3.2 PN=Peters-part -PRN=A..."
In case of non-Default Domain: Master Part From: "@DB//<item_revision_id>" To: "%UGMGR=V3.2 PH=itemUid PRH= itemRevUid PN= MFK ID PRN=item_revision_id RT="has shape" AT="UG master part file""
Non-master Part
From: "<@DB><separator><MFK ID><separator><item_revision_id><separator><Item Revision to dataset relation><dataset_name>"
To: "%UGMGR=V3.2 PH=itemUid PRH= itemRevUid PN= MFK ID PRN=item_revision_id AN="dataset name" RT="relation type" AT="Dataset type" AUID=appuid"
e.g.,
From: "@DB/,=item_id=test123,object_type=testItemType/A"
To: "%UGMGR=V3.2 PH=iyDp59Kwx6sBFD PRH=iyOp59Kwx6sBFD PN=",=item_id=test123, object_type=testItemType" PRN=A AN=test-alt1 RT="has altrep" AT="UG alternative rep" AUID=C3Jp59Kwx6sBFD"
Note that UF_PART_new, UF_PART_open and UF_PART_save_as accept an input part file name in the command line input format without conversion.
将部件文件名从命令行输入格式转换为内部窗体。如果没有运行 NXManager 并且没有给出错误,则此例程为空操作。在默认域名的情况下: 主要部分来自: “@DB/< item _ id >/< item _ Amendment _ id >”到: “% UGMGR = V3.2 PH = itemUid 公屋 = itemRevUid PN = item _ id PRN = item _ Amendment _ id RT = “ has form”AT = “ UG Master Part file”非主要部分来自:“ <@DB > < 分隔符 > < 项目 _ id > < 分隔符 > < 项目 _ 修订 _ id > < 分隔符 > < 项目修订到数据集关系 > < 数据集 _ 名称 >”致: “% UGMGR = V3.2 PH = itemUid 公屋 = itemRevUid PN = item _ id PRN = item _ Amendment _ id AN = “数据集名称”RT = “关系类型”AT = “数据集类型”AUID = appuid”。来自: “@DB/Peters-part/A/spec/sheet1”到: “% UGMGR = 3.2 PN = Peters-part-PRN = A。."如属非预设域名: 主要部分摘自: “@DB/< MFK ID >/< item _ Amendment _ ID >”至: “% UGMGR = V3.2 PH = itemUid 公屋 = itemRevUid PN = MFK ID PRN = item _ Amendment _ ID RT = “ has form”AT = “ UG Master Part file”非主要部分摘自:“ <@DB > < 分隔符 > < MFK ID > < 分隔符 > < 项目修订 _ id > < 分隔符 > < 项目修订到数据集关系 > < 数据集 _ 名称 >”收件人: “% UGMGR = V3.2 PH = itemUid 公屋 = itemRevUid PN = MFK ID PRN = item _ Amendment _ ID AN = “数据集名称”RT = “关系类型”AT = “数据集类型”AUID = appuid”。,从: “@DB/,= item _ id = test123,object _ type = testItemType/A”到: “% UGMGR = V3.2 PH = iyDp59Kwx6sBFD 公屋 = iyOp59Kwx6sBFD PN =”,= item _ id = test123,object _ type = testItemType“ PRN = A AN = test-alt1 RT = “ has altrep”AT = “ UG Alternative rep”AuID = C3Jp59Kwx6sBFD”注意,UF _ Part _ new,UF _ Part _ open 和 UF _ Part _ save _ as 接受命令行输入格式的输入部件文件名,但不进行转换。
UFUN例子
获取源码例子请搜索 里海NX二次开发3000例专栏
parameters 参数
| const char * | cli_name | Input | Command Line Input format, e.g., "@DB/peters-part/A/spec/sheet1" Note: The separator used must not be a character which is already used in the part name, part revision, part file type or part file name. Valid separators are /@#$^&() | []{}. 命令行输入格式,例如“@DB/peters-part/A/spec/sheet1”注意: 使用的分隔符不能是已经在部分名称、部分修订、部分文件类型或部分文件名中使用的字符。有效分隔符是/@# $^ & () | []{}。 |
| char * * | internal_name | Output to UF_free | Internal format "%UGMGR=3.2 PN=Peters-part -PRN=A...". The caller must free this string by calling UF_free 内部格式“% UGMGR = 3.2 PN = Peters-part-PRN = A. . .”。调用方必须通过调用 UF _ free 来释放此字符串 |