Engineering Solutions

UG Import Options- Native Reader

UG Import Options- Native Reader

Previous topic Next topic No expanding text in this topic  

UG Import Options- Native Reader

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The UG native reader uses the ug_reader.ini file.  The UG reader also includes a browser to control the import of assemblies, the sorting of entities by component, and various other import details.  For more information, refer to the UG Part browser section.

The UG reader and part browser have the following available options:

 

@AssignThicknessToSolids

Value

Description

on

Assign thickness to a solid if the owning part has an attribute with the name THICKNESS. The thickness value is the value of this attribute.

off

Do not assign thickness to solids (default).

 

@AttributesAsMetadata

Value

Description

on

Import all generic attributes (global and related to single entities) as metadata.

<name>

off

Do not import generic attributes.

part

Import just the global attributes (the attributes related to the part as a whole) as metadata.

<name>

entity

Import just the entity attributes (the attributes related to single entities) as metadata.

<name>

%attribute1%attribute2%attribute3

Import specified generic attributes as metadata.

The attribute names are listed, separated by a character that you choose, and inserted as the first element of the string. The example uses '%' as a separator. You can choose another character as a separator, in case one of the listed attribute names contains '%'. HyperMesh will recognize it as it is the first character of the string.

<name>

 

@CleanupTol

Value

Description

double

A negative value (default) means to use the auto cleanup tolerance.  A value greater than the calculated auto cleanup tolerance means to use that specific tolerance.

Refer to the CAD Cleanup Tolerance section.

 

@ColorsAsMetadata

Value

Description

on

Read color attributes of geometric entities as metadata.

COLOR_RGB

off

Do not read color attributes (default).

 

@ComponentAttributes

Value

Description

string

In batch mode, or if @Interactive = off, this corresponds to the UG Part Browser Component attributes option.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@ComponentNameFormat

Value

Description

string

In batch mode, or if @Interactive = off, this corresponds to the UG Part Browser Assign components by name option; the default value is "default", that is the standard component naming; to have custom component name one should set:

@ComponentNameFormat = "custom <custom1><custom2>...<customnn>"

where <customi> could be one of the following:

<Part Name>, <Part Number>, <RID-PDI>, <Layer>, <Category>, <Instance Name>, <Material Name>, <Thickness>, <UG Body ID>, <UG Tag>, <Solid Name>.

If @Interactive = on , this initializes the corresponding option in the UG Part browser.

 

@CoordinateSystem

Value

Description

global

In batch mode, or if @Interactive = off, individual parts in an assembly are imported into the global coordinate system (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

local

In batch mode, or if @Interactive = off, individual parts in an assembly are imported into their local coordinate system.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@CreateMatsAndProps

Value

Description

on

Create materials and properties in HyperMesh if material and thickness data are found in the model (default).

off

Do not create materials and properties in HyperMesh.

 

@CreateWeldsInHypermesh

Value

Description

on

In batch mode, or if @Interactive = off, welds are created in HyperMesh.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, welds are not created in HyperMesh (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@DensityAsMetadata

Value

Description

on

Read density value as metadata (default).

DENSITY

TRANSFORMATION_MATRIX

off

Do not read density value.

 

@DisabledLayers

Value

Description

string

This corresponds to the UG Part Browser Disable option in Layer filtering mode: the layers to disable in the import should be listed with the same rules as for the UG Part browser entry.

 

@Display

Value

Description

categories

In batch mode, or if @Interactive = off, this corresponds to the UG Part Browser Categories selection.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

layerfiltering

In batch mode, or if @Interactive = off, this corresponds to the UG Part Browser Layer filtering selection (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@DoNotMergeEdges

Value

Description

on

Preserve the original geometry edges, instead of merging them together during the import cleanup phase.

off

Merge edges together during the import cleanup phase (default).

 

@EnabledLayers

Value

Description

string

This corresponds to the UG Part Browser Enable option in Layer filtering mode: the layers to enable in the import should be listed with the same rules as for the UG Part browser entry.

 

@ExportToMasterWeldFile

Value

Description

on

In batch mode, or if @Interactive = off, a master weld file is created.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, no master weld file is created (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@ImportBlanked

Value

Description

on

In batch mode, or if @Interactive = off, imports entities that are hidden, blanked, or no show.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, do not import entities that are hidden, blanked, or no show (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@ImportForVisualizationOnly

Value

Description

on

Import the model for visualization purposes only.

This skips many of the import steps (cleanup, stitching, solid creation, and so on) to provide a faster import. The resulting model may not be suitable for other uses.

off

Import the model in the normal fashion (default).

 

@ImportParameters

Value

Description

on

Import parameters.  Parameters are imported even if they are not associated to any geometry.  See also @ParametersPrefix.

For parameters that have relationships to other parameters, parameter expressions are created.

In addition, @DoNotMergeEdges is automatically set "on" when using this option, to give the best results for edge parameter association.

CADIO_FEAT_PARAM_IDS

FULL_NAME

off

Do not import parameters (default).

 

@ImportWaveLinkedGeometry

Value

Description

on

Import geometry created by the WAVE Geometry Linker.

off

Do not import geometry created by the WAVE Geometry Linker (default).

 

@IncludeWireFrame

Value

Description

on

In batch mode, or if @Interactive = off, import free curves and points (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, do not import free curves and points

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@Interactive

Value

Description

on

The UG Part browser comes up. This is the default in GUI mode, and is ignored in batch mode.

off

The UG Part browser does not come up. This is the default in batch mode.

 

@MatchUGAssemblyHierarchy

Value

Description

on

The assembly hierarchy created in HyperMesh is the same as seen in NX.

off

An assembly level is created in HyperMesh for parts contained in an assembly (default).

 

@MaterialName

Value

Description

string

Name of the CAD attribute containing the material name data of the current part.

Default is "Material"; meaningful only if @AttributesAsMetadata = "part". It only generates temporary data used by the ExtAPI cadassm tool.

 

@Merge

Value

Description

on

In batch mode, or if @Interactive = off, the MERGE metadata is generated.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, the MERGE metadata is not generated.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@MetadataPrefix

Value

Description

string

The string is prefixed to all metadata names. No prefix is used by default.

See CAD Metadata Naming for more details.

 

@Midsurface

Value

Description

on

In batch mode, or if @Interactive = off, and when @Display= layerfiltering, midsurfaces are imported.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, and when @Display= layerfiltering, midsurfaces are not imported (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@ModelAttributes

Value

Description

string

In batch mode, or if @Interactive = off, this corresponds to the UG Part Browser Model attributes option.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@OriginalIdAsMetadata

Value

Description

on

Import original CAD entity IDs as metadata.

ORIGINAL_ID

off

Do not import original CAD entity IDs as metadata (default).

 

@ParametersPrefix

Value

Description

string

Only parameters with this prefix will be imported.  All others will not be imported.

Default is "HW_"; meaningful only if @ImportParameters = "on".

 

@PartNumber

Value

Description

string

Name of the CAD attribute containing the part number info of the current part.

Default is "PartNumber"; meaningful only if @AttributesAsMetadata = "part". It only generates temporary data used by the ExtAPI cadassm tool.

 

@PropertyName

Value

Description

string

Name of the properties created in HyperMesh. It can contain “special” strings that will be replaced with their meaning: <COMPONENT_NAME> is the name of the component to which the property is associated, <PROPERTY_CARD_NAME> is the name of the property card.

 

@SaveSettingsAsDefault

Value

Description

on

In batch mode, or if @Interactive = off, the ug_reader.ini file is saved with the current settings.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, the ug_reader.ini file is not saved (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@ScaleFactor

Value

Description

double

Defines the model scaling factor during import.

Default is 1.0.

 

@SelectedCategories

Value

Description

string

This corresponds to the UG Part browser option Categories; they should be listed as they are written in the command file string: “<name1_length> <name1> <name2_length> <name2>…”, where <name<i>_length> is a number representing the string length of the ith category name.

 

@SelectedParts

Value

Description

string

This corresponds to the UG Part Browser Parts selection; they should be listed as they are written in the command file string: “<handle1_length> <handle1> <handle2_length> <handle2>…”, where <handle<i>> is a string representing the handle of the part as retrieved by UGOpen libraries and <handle<i>_length> is the string length.

 

@ShowAllCategories

Value

Description

on

In batch mode, or if @Interactive = off, and @Display = categories, all categories will be retrieved and displayed.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, and @Display = categories, only categories in the top assembly will be retrieved and displayed (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@SkipCreationOfSolid

Value

Description

on

Read surfaces, but do not create solid entities.

off

Create solid entities (default).

 

@Solid

Value

Description

on

In batch mode, or if @Interactive = off, and when @Display= layerfiltering, solids are imported (default).

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

off

In batch mode, or if @Interactive = off, and when @Display= layerfiltering, solids are not imported.

If @Interactive = on, this initializes the corresponding option in the UG Part browser.

 

@SplitPeriodicFaces

Value

Description

on

Split periodic surfaces to improve the quality and robustness of the import (default).

off

Import periodic surfaces as a single surface with a seam edge.

 

@StitchDifferentSheets

Value

Description

on

Stitching across different sheet bodies belonging to the same UG part/instance is enabled (default).

off

Stitching across different UG sheet bodies is disabled.

 

@TagsAsMetadata

Value

Description

on

Create entity name as metadata (default).

TAG

FromBody

Take entity from its parent body and create as metadata.

TAG

off

Do not read tags.

 

@ThicknessName

Value

Description

string

Name of the CAD attribute containing the thickness data of the current part.

Default is "Thickness"; meaningful only if @AttributesAsMetadata = "part". It only generates temporary data used by the ExtAPI cadassm tool.

 

@UID

Value

Description

string

Name of the CAD attribute containing the UID info of the current part.

Default is "UID"; meaningful only if @AttributesAsMetadata = "part". It only generates temporary data used by the ExtAPI cadassm tool.

 

@UniqueIdAsMetadata

Value

Description

on

Create metadata to track the unique CAD ID (default).

For parts and assemblies the value is the name.

For geometrical entities for each assembly level, the assembly instance tag is appended to the ORIGINAL_ID using "-".

For example:

No body entities present in the assembly: 20

Body entities present in a single level assembly: 1-20

Body entities present in a multiple level assembly: 1-4-2-20

The same identifier can be obtained for two entities when a single entity is split during import.

UNIQUE_ID

off

Do not create metadata to track the unique CAD ID.

 

 

See Also:

UG Metadata Support

UG Part Browser

UG Reader Support

CAD Import Options