NX How to: Backgroundinformation on UGZipC

2021-10-06T23:27:57Z
NX for Design

Summary


Details

UGZipC  is not a tool from Siemens, hence we cannot give support or an updated version.

The tool is from Wiedemann Engineering (http://www.w-eng.de/). However, it was last compiled by Wiedemann against NX 3 and therefore it no longer works for newer NX version.







Solution

The source code of this tool is available at the webpage, for own compilation.

Alternative Solutions:
Although there is no function to create a container from an assembly, you can collect all files of an assembly to compress it later.

Inside NX you can use the Create Clone Assembly function:

https://docs.sw.siemens.com/en-US/product/209349590/doc/PL20200507135732916.assemblies/html/func_details_clone_create

Without a started NX a command line tool is available:
https://docs.sw.siemens.com/en-US/product/209349590/doc/PL20190529153444898.assemblies/html/assy_create_edit_func_ugpc

This as a batch file example using this command (named "ass_cp.bat"):
@echo off
set UGII_BASE_DIR=xyz

rem Simple Script to copy an assembly to a folder
rem
rem Syntax:
rem ass_cp {masterpart} {output folder}
rem e.g.:
rem ass_cp c:\path\start_part.prt c:\output
rem
for /f  %%i in ('%UGII_BASE_DIR%\ugii\ugpc %1')  do xcopy "%%i" "%2" 
pause

If familiar with batch programming, an enhancement to compress the outputted files to one archive file should be possible easily.

Also there are capabilities with NX Open programming. Please have a Support Center search for 
Product: Open Samples Keywords: copy assembly and find examples.

Hardware/Software Configuration

Platform: all
OS: n/a
OS Version: n/a
Product: NX
Application: ASSEMBLIES
Version: P2007
Function: PART_FILE_OPS

Ref: 002-8543312

KB Article ID# PL8543312

Contents

SummaryDetails

Associated Components

Assemblies