xml_ug 发表于 2014-10-2 10:53:21

克隆装配问题

如何将克隆过来的零件只装入当前会话中;并未在当前目录生成文件;只保存的时候才生成;就像moldwizard调零件那样;请问怎么实现?

mildcat 发表于 2014-10-5 09:15:34

这个是加载零件到内存

UF_PART_open_quiet (view source)


Defined in: uf_part.h



Overview


Retrieves an existing NX part or Solid Edge part into the session
without making it the work and display part. Solid Edge parts (.par or
.psm file extension) are opened by extracting the Parasolids data from
the Solid Edge part and then importing this data into a new
NX part with a .prt extension. The file name of the new NX
part has the Solid Edge part name and a ".prt" file extension.
If there is an existing NX part with the same name as the Solid Edge part,
then this function returns an error.



Environment


Internal and External



History


In V15.0, this function was enhanced so that it could open Solid Edge
parts.



Required License(s)


gateway




int UF_PART_open_quiet
(

const char * part_name,
tag_t * part,
UF_PART_load_status_t * error_status

)

const char * part_name Input Name of part to retrieve.
tag_t * part Output The tag of the retrieved part or NULL_TAG if part
retrieval fails.
UF_PART_load_status_t * error_status Output to UF_*free* The user allocated structure
<error_status> is filled with the names
and associated error codes of any parts
that did not load correctly. The
structure must be freed with UF_PART_free_load_status.
For details see the definition
of UF_PART_load_status_t.

xml_ug 发表于 2014-10-6 19:44:21

1,用这个函数后;点保存;会不会保存到工作目录?2,怎样更改文件名加载到内存里?
页: [1]
查看完整版本: 克隆装配问题