Parameters#

class omni.converter.dgn.Parameters#

Bases: pybind11_object

DGN Converter Options Class.

Methods

__init__(self)

parseArgs(self[, args])

Parse SdfLayer::FileFormatArguments to populate the Parameters

toArgs(self)

Create file format arguments that could be used to recreate these conversion parameters.

Attributes

applyGlobalOrigin

Whether the global origin of Models are applied as an XformOp

attributes

Attributes to import where key = attribute name and value=custom attribute name to use in USD

convertCurves

If true then curve objects are imported as USD BasisCurves.

convertElementId

Whether to convert the element ID attribute

convertHidden

If true then hidden data is imported, it will be hidden in the USD Stage until activated/unhidden.

creator

Creator version string

fallbackCurveWidth

sets a fallback width for curve segments that do not have an explicit width set.

geometryAttributeStyle

The style in how the DGN geometry attributes get authored to USD

hiddenLevels

List of level names to hide

hideLevelsByList

Whether to hide defined levels based on the listed level names

importAttributesByList

Whether to import defined attributes

instancing

If true, enable instancing

instancingStyle

Style of instancing to use in USD when handling Shared Cell References

levelExcludes

List of level names to exclude during filtering

levelFilterStyle

Styles to used to handle filtered levels

levelIncludes

List of level names to include during filtering

materialType

ePreviewSurface (compatible with USD-enabled DCCs), ePreviewSurface_OmniPBR (optimized for RTX rendering and USD DCCs).

mergeCurves

If true then curve segments are merged if they have the same 'width'.

mergeMeshes

If true then meshes that share the same level and color are merged for optimization.

mergedAttributeStyle

The style in which the values of attributes that differ between merged elements are stored

modelNamePatterns

List of model names patterns for resolving DGN models to convert; model names can include wildcard characters ("*") to complete the rest of the model name during conversion wildcard characters can be placed at the beginning ("ault"), ending ("Def"), or both ("fau"); if the user provides patterns that do not match any models in the DGN file, then the file is not converted

progressLogging

If true then conversion progress will be reported

surfaceTolerance

Distance tolerance for coincident faces.

triangulate

Whether to triangulate Meshes

useMaterials

If true then use specified modes of materials.

__init__(
self: omni.converter.dgn._omni_converter_dgn.Parameters,
) None#
parseArgs(
self: omni.converter.dgn._omni_converter_dgn.Parameters,
args: Dict[str, str] = {},
) bool#

Parse SdfLayer::FileFormatArguments to populate the Parameters

Parameters:

str – JSON formatted string

toArgs(
self: omni.converter.dgn._omni_converter_dgn.Parameters,
) Dict[str, str]#

Create file format arguments that could be used to recreate these conversion parameters.

property applyGlobalOrigin#

Whether the global origin of Models are applied as an XformOp

Type:

(bool)

property attributes#

Attributes to import where key = attribute name and value=custom attribute name to use in USD

Type:

(dict)

property convertCurves#

If true then curve objects are imported as USD BasisCurves. If false, then we skip and do not Import any curve object to USD.

Type:

(bool)

property convertElementId#

Whether to convert the element ID attribute

Type:

(bool)

property convertHidden#

If true then hidden data is imported, it will be hidden in the USD Stage until activated/unhidden. If false, then we skip and do not Import the hidden data to USD.

Type:

(bool)

property creator#

Creator version string

Type:

(str)

property fallbackCurveWidth#

sets a fallback width for curve segments that do not have an explicit width set. If the fallback width is not set or <= 0 or omitted, no widths primvar is authored and the renderer’s default is used.

Type:

(float)

property geometryAttributeStyle#

The style in how the DGN geometry attributes get authored to USD

Type:

(enum)

property hiddenLevels#

List of level names to hide

Type:

(str[])

property hideLevelsByList#

Whether to hide defined levels based on the listed level names

Type:

(bool)

property importAttributesByList#

Whether to import defined attributes

Type:

(bool)

property instancing#

If true, enable instancing

Type:

(bool)

property instancingStyle#

Style of instancing to use in USD when handling Shared Cell References

Type:

(enum)

property levelExcludes#

List of level names to exclude during filtering

property levelFilterStyle#

Styles to used to handle filtered levels

property levelIncludes#

List of level names to include during filtering

property materialType#

ePreviewSurface (compatible with USD-enabled DCCs), ePreviewSurface_OmniPBR (optimized for RTX rendering and USD DCCs).

Type:

(enum)

Type:

Material type

property mergeCurves#

If true then curve segments are merged if they have the same ‘width’. If false then curve merging is skipped

Type:

(bool)

property mergeMeshes#

If true then meshes that share the same level and color are merged for optimization. If false then mesh merging is skipped

Type:

(bool)

property mergedAttributeStyle#

The style in which the values of attributes that differ between merged elements are stored

Type:

(enum)

property modelNamePatterns#

List of model names patterns for resolving DGN models to convert; model names can include wildcard characters (“*”) to complete the rest of the model name during conversion wildcard characters can be placed at the beginning (”ault”), ending (“Def”), or both (”fau”); if the user provides patterns that do not match any models in the DGN file, then the file is not converted

Type:

(str[])

property progressLogging#

If true then conversion progress will be reported

Type:

(bool)

property surfaceTolerance#

Distance tolerance for coincident faces. If zero or negative, the tolerance will be calculated as a percent of extents diagonal.

Type:

(double)

property triangulate#

Whether to triangulate Meshes

Type:

(bool)

property useMaterials#

If true then use specified modes of materials. if false, then use only basic display colors

Type:

(bool)