Saving to JT
You can save QY CAD assembly, part, and sheet metal documents in JT format with the Save As command. On the Save As dialog box, after you select the QY CAD document you want to save, click the Options button to display the QY CAD to JT Translation Options dialog box. You can use the dialog box to control how the QY CAD document is saved in *.jt format.
The SePvTrn.ini file, found in the QY CAD Preferences\Translators folder, stores the settings selected from the user interface. When you change a parameter in the options form, a new value is saved to the SePvTrn.ini file.
When you are working in a Teamcenter-managed environment through QY CAD Embedded Client, the file SEECtoJT.ini stores settings selected for the user interface. The SEECtoJT.ini file is located in the QY CAD Program folder.
Some parameters are not exposed through the user interface. You can use a text editor, such as Notepad, to set these parameters. However, if you edit this file, use extreme caution in setting these parameters. Errors in this file can adversely affect translation quality.
Parameter in SePvTrn.ini file | Description |
---|---|
Include Precise Geometry = 0 | Controls the inclusion of BREP definition in resultant jt files. jt file size will be larger when set to true, but jt viewer functionality that is able to use the precise BREP definition will provide more accurate results. The value can be a Boolean value (1 or 0). |
JT Units = m | Controls the model units for the JT files. Possible values include:
|
ChordalOption = RELATIVE | Controls the interpretation of the Chordal LOD parameter.
Possible values include a string equal to:
|
StructureOption = PER_PART | Controls the mapping of the jt product structure to the jt file structure for any jt output. Possible values include:
|
WriteWhichFiles = ALL | Controls the filtering of the jt files to be written based on the content. Possible values include:
Possible values include:
|
PmiOption = NONE | Not used |
partMonitor=false | |
Compression = true | Controls the toolkit's ability to output compressed jt files. Setting the value to false writes uncompressed jt file. Setting it to true writes compressed jt files. Possible values are a Boolean value of true or false. |
TristripOpt = true | Controls the toolkit's ability to perform an additional optimization. The additional optimization increases the visualization performance of renderable geometry data in each jt part file. When set to true, the toolkit attempts to reduce the number of triangles to render without reducing the quality of the geometry displayed. This increases visualization performance, but may increase the jt file export time. When used in conjunction with the compression option, this option may increase jt part file sizes due to alterations in the renderable geometry's data composition. The value can be a Boolean value of true or false. |
SeamSewing = true | Controls the toolkit logic to create shared edges between adjacent surfaces in the rendered geometry. This helps to eliminate gaps in the geometry. This option is impacted by the seamSewingTol option. The value can be a Boolean value of true or false. |
SeamSewingTol = 0.001 | Controls the tolerance used by the SeamSewing option to compare two vertices for equality in a seam to be sewn. The value specified represents a floating point fractional percentage of the bounding box diagonal of the part undergoing seam sewing. The option can be a floating point value in the range [0.0,1.0]. |
BrepPrecision = DOUBLE | Controls the floating-point precision for any B-REP geometry data saved in a jt file. Possible values include:
This parameter controls how the data is stored on the disk and does not affect the settings of the Include Precise Geometry or XTBasedNewFormat parameters. Possible values include:
|
AutoNameSanitize = true | Controls the toolkit logic to remove undesirable characters from the names of jt files by replacing them with an underscore character (_). The default set of undesirable characters that will be replaced is: $ ~ ` ! @ # % ^ & * ( )- + = " ' ; , . < > ? [ ]{ } You can use the FilenameSanitizeSet, FilenameSanitizeSetAdd, and FilenameSanitizeSetDelete options to modify this set of characters. The value can be a Boolean value (true or false). |
deleteUnusedparts=true | |
WriteAsciiAssembly = false | Controls the toolkit logic preventing the use of the jttoascii utility on resultant assembly-only jt files. When set to true, the translator creates an .A jt file equivalent for each .jt file that is created. For this option to function, jt Utilities product must be configured so that the jttoascii executable can be run from the same command line environment as the toolkit client application. The value can be a Boolean value (true or false). |
AutoLowLODgeneration = true | Controls the toolkit logic that analyzes and potentially creates two default lowest LODs. Specifically, this logic (potentially) creates a convex hull (shrink wrapped) and bounding box representation of a part's geometry. The value can be a Boolean value (true or false). |
SmartLODgeneration = false | Controls the toolkit logic that automatically analyzes and creates LODs to smooth the transition between the lowest user-defined LOD and the highest LOD generated by the autoLowLODgeneration option. This option may result in an arbitrary number of additional LODs. The value can be a Boolean value (true or false). |
Number of LODs = 3 | Controls the number of LOD definitions. The value must be an integer greater than 1. |
XTBasedNewFormat = true | Controls the inclusion of XT BREP into the jt files. When this is true: QY CAD uses the Parasolid BREP by adding it to the jt files. Before version 15, QY CAD translated the jt file from Parasolid to jt BREP format. Reusing the Parasolid BREP is much faster. QY CAD uses the QY CAD triangles instead of creating them from the jt BREP. When X_TBasedNewFormat is enabled, the Levels Of Detail (LODs) are not used, since QY CAD uses the QY CAD triangles instead of generating them. |
IncludeVisibleConstructions = true | Controls the inclusion of QY CAD construction geometry in the jt files. If this is true, all visible constructions are translated to JT format. |
IncludeSEProperties = true | Controls the inclusion of QY CAD properties in the jt files. |
Export Simplified parts = | Specifies when to use simplified parts when exporting an assembly. Possible values are All Designed, All Simplified, and Use Current Configuration. The default value is Use Current Configuration. |
Export Assembly Simplification = | Specifies when to use simplified subassemblies. Possible values are All Designed, All Simplified, Top Level Configuration, and Use Current Configuration. The default value is Use Current Configuration. |
Export Inter-Part Copies as constructions=true | Export inter-part copies as construction surfaces. Possible values are a Boolean value of true or false. |
UpdateChangedPartOnly=false | Prevents an overwrite of jt files whose content is not changing. When set to true, the bill of materials for each jt file to be written is compared to that of any potentially overwritten jt file. If the product structure content or versions of this content differ, the JT file will be overwritten. This is for incremental JT translation support. Possible values are a Boolean value of true or false. |
SEPartFileAsSingleJTFile=true | Exports a single JT file for a QY CAD part document. If this flag is set to true, Save As jt outputs a single JT file. Possible values are a Boolean value of true or false. |
Import Multiple Bodies As Single Part file=On | This parameter is used during the import of precise assembly geometry. When multiple solid bodies are encountered in a single part definition this parameter specifies how the bodies are added to the assembly file. If the parameter is set to the default value, On, a part file containing multiple construction bodies is created and added to the assembly. If the parameter is set to Off, an individual part file is created for each body contained in the part definition. A subassembly is then created, to which the individual part files are added. |
Import DoNotSave=On | This parameter controls whether or not the QY CAD part files are created on import, or on the initial save of the assembly file. For small to intermediate file sizes, this enhancement works well. For assemblies that are larger than 600-700 part files, you should disable this parameter to ensure there is sufficient memory to create the files on save. |
HealAndSew=0 | Controls whether to heal and sew free surfaces to create a solid body. When given a set of sheet bodies, the software cleans the input sheets of self-intersections and loop inconsistencies. It then identifies and removes very small surfaces or sliver sheets from the set of sheets. Edges of adjacent surfaces are then used to fill holes where slivers were removed. Larger holes from missing surfaces are also filled. After the healing process is complete a single stitch operation at 1.0e-5 (meters) is attempted to create a solid body. The value can be a Boolean value (1 or 0). |
ImportSewSheet=1 | Controls whether all surfaces and sheet bodies are to be stitched to a tolerance of 1.00e005 meters. It may be to your advantage not to stitch the surfaces on import, but to evaluate what needs to be stitched and perform the stitch after you import the file. This option is on by default. If the stitching operation creates a valid volume, the volume is converted to a solid. The value can be a Boolean value (1 or 0). |
ImportBooleanSolid=1 | Controls whether to Boolean all solid bodies together and insert the results into PathFinder as part copies. This option is off by default. If the option is off, all solid bodies are added as individual part copies to PathFinder. The value can be a Boolean value (1 or 0). |
CreateAssociativePartsInAssembly=0 | During the import of a JT assembly, this parameter determines whether if an associative link to the jt file is created. By default, the creation of associative links is disabled. |
ImportSheet=1 | If the jt file contains precise sheet (surface) data, it is imported or excluded. By default this is enabled (1). |
ImportWires=1 | If the jt file contains precise Wire (curve) data, it is imported or excluded. By default this is enabled (1). |
Import Triangles Only=0 | Controls whether the meshed data or BREP data is imported from the .jt file. A false, 0, value retrieves the BREP body, while a true, 1, value retrieves triangle data without the BREP data. The value can be a Boolean value (1 or 0). |
ImportImprintCurve=1 | Controls whether to combine all curve data into a single part copy. It may be to your advantage to identify the curves that you do not need and either hide or delete them before importing the file. This option is on by default. The value can be a Boolean value (1 or 0). |
MakeBaseFeature=1 | Controls whether to make the imported solid body the base feature for the QY CAD model. If there is more than one solid body in the Parasolid (.X_T) file, no base feature is created. In this case you can use the Make Base Feature command to select a solid to use as the base feature or construct a new base feature for the model. If you clear this option, all solid bodies contained in the SolidWorks file you are importing are placed in PathFinder as a part copy, rather than as a body feature. Inserting bodies as a part copy requires you to select or create a base feature. The value can be a Boolean value (1 or 0). |
ImportCheckBody=0 | Controls whether to perform a full body check on the file. The value can be a Boolean value (1 or 0). |
Stitch=1 | Specifies if the Heal and stitch option, the Stitch option, or neither option is used when opening the file. Setting the value to 1 enables the dialog and will either heal and stitch, or stitch surfaces depending on the radial button setting. Setting the value to 0 will not heal and stitch nor will it stitch surfaces when disabled. |
EnableDefaultOutputPath=1 | Controls whether the output folder is the same as the input folder for the documents you are importing. If you select this option and import an assembly, the assembly and the individual parts in the assembly are imported to the same folder. The value can be a Boolean value (1 or 0). |
ImportOutputPath= | Specifies the path to which the files will be output. |
[LOD 1] | A grouping of parameters that controls tessellation and simplification for a specific LOD. The value can be in the range of [1–n], where n is specified by the Number of LODs parameter. |
Level | Controls the level of compression. Possible values include:
|
Chordal | Specifies the maximum distance that a (tessellated) line segment may deviate from the actual curve it is approximating. The value specified is interpreted as dictated by the Chordal option. For best results, use chordal values in conjunction with the Angular parameter. Chordal values affect primarily the larger features of the model, while angular values affect primarily the smaller features. The value can be a floating point in the range [0.0,1.0] for relative interpretation, arbitrary range for absolute interpretation. |
Angular | Specifies the maximum angle (in degrees) between two adjacent (tessellated) line segments in a curve approximation. For best results, use angular values in conjunction with the Chordal parameter. Angular values affect primarily the smaller features of the model, while chordal values affect primarily the larger features. The value can be a floating point value in the range [0.0,90.0]. |
Length | Specifies the maximum absolute length of (tessellated) line segments in a curve approximation. The value can be a floating point value of arbitrary range, depending on the magnitude of modeling units used for geometry. |
FeatureSuppression | Specifies the size tolerance of holes and arcs to suppress. The value specified represents a floating point fractional percentage of the bounding box diagonal of the part undergoing suppression. A value of 0.0 indicates no suppression. The value can be a floating point value in the range [0.0,1.0]. |
Simplify | Specifies the minimum percent reduction of renderable geometry (triangles) for the specific LOD versus the highest LOD. The value specified represents a floating point fractional percentage of the number of triangles in the highest LOD. This value should be left at 1.0 (100%) for the high LOD. The value can be a floating point value in the range [0.0,1.0]. |
AdvCompressionLevel | Specifies the level of advanced compression. Possible values include:
|
Export 3D Bodies | Specifies which body is included in the .jt file. Possible values include:
|
Export PMI | Controls whether PMI is exported to the .jt file. Possible values are true or false. |
Export Coordinate System | Controls whether coordinate systems are exported to the .jt file. Possible values are true or false. |
Export Surface Connections to PMI Dimensions and Annotations | Controls whether surface information associated with PMI annotations and dimensions is saved with the file. Surface information is required for precise measurement on CMM machines for the CMM inspection process. Note: You must also check the boxes for Include precise geometry and Save PMI Data in the Save As Translated Options dialog box. |
Export Symmetric Diameter as Standard Diameter dimension | Although symmetric diameter dimensions are not a native dimension type in JT files, you can set this option to 1 to export QY CAD symmetric diameter dimensions as standard diameter dimensions. This parameter works in conjunction with the parameter, Export Surface Connections to PMI Dimensions and Annotations. Note: If Export Surface Connections to PMI Dimensions and Annotations=1, then the standard diameter dimension will be associative to the body edge (for example, a virtual edge of a section body). If Export Surface Connections to PMI Dimensions and Annotations=0, then the standard diameter dimension will be associative to the body surface. |
Use QY CAD Resolution | Controls the level of detail used during the export to JT. The default value is 1, which specifies that the export use the QY CAD display cache conversion to JT triangles. Setting the value to 0 specifies that the export use the value defined in the numLODs = parameter to create a user-defined set of levels of detail. |
Saving sheet metal files to the .jt file format
You can use the Export 3D Bodies parameter in the SePvTrn.ini file to specify how to save a sheet metal file to .jt format. By default, the parameter is set to 0, which includes only the design body in the .jt file. You can set the parameter to 1 to include only the flat body in the .jt file or to 3 to include all bodies in the .jt format.
If you set the parameter to 1 and there is no flat body for the sheet metal part, the .jt file includes the design body instead.
Saving assembly files to the .jt file format
When saving assemblies to .jt format:
-
If an assembly contains assembly features, any parts affected by the features have an _oa suffix.
-
If an assembly contains a subassembly with one or more parts hidden and the Translate Visible Parts Only option on QY CAD to JT Translation Options dialog box is selected, the assembly has an _oa suffix.
-
If parts are simplified and have multiple occurrences, some simplified and some designed, the name of the simplified part has a _1 suffix.
Saving PMI and coordinate systems to .jt format
You can use the Save PMI data option on the QY CAD to JT Translation Options dialog box to save all product manufacturing information (PMI) data and all model views to the JT file being created. When you select this option, other JT save options are disabled and the appropriate options are set to support PMI data. Precise geometry is always sent when the Save PMI Data option is selected even if the Include Precise Geometry option is not set.
You can use the Save Coordinate System option on the QY CAD to JT Translation Options dialog box to save the coordinate system to the JT file being created.
The JT document structure must be set to Single JT document and the Save PMI data option must be selected to use the QY CAD Publish to 3D PDF command to generate JT attachments for machining applications (CAM/CMM), such as QY CAD CAM Pro.
Controlling the level of detail during JT export
You can use the Use QY CAD Resolution parameter to control the level of detail used during the export to JT. The default value is 1, which specifies that the export use the QY CAD display cache conversion to JT triangles. Setting the value to 0 specifies that the export use the value defined in the numLODs = parameter to create a user-defined set of levels of detail.
Understanding JT attributes and QY CAD properties
Documents saved in JT format contain attributes that describe the information contained in the document. These attributes are the equivalent of file properties used by Solid Edge to describe document information.
When you export a QY CAD document to JT format, QY CAD file properties are written where they can be read by viewers, and other CAD systems that read JT format.
When you export a QY CAD document to JT format, QY CAD writes the following properties to the JT file as string properties:
-
CAD_MASS
-
CAD_MASS_UNIT
-
CAD_DENSITY
-
CAD_SURFACE_AREA
-
CAD_VOLUME
-
CAD_CENTER_OF_GRAVITY
-
CAD_MATERIAL
These are standard JT properties and any application which reads JT files can read these properties.
When you import a JT to QY CAD all JT user attributes are imported and saved as file properties. There is no file property associativity between the QY CAD document and the JT document. In other words, if you change attribute values in the JT file, the changes are not updated in the QY CAD file. There is no user interface to control the import of file properties. You can use the ImportjtProperties parameter in the SePvTrn.ini file. Setting the parameter to True enables the import of JT attributes to Solid Edge file properties. By default, the value is True. If the parameter does not exist in the SePvTrn.ini file, the default value of True is assumed and the attributes are imported.
The [Import Property map] section of the SePvTrn.ini file serves as a mapping table, allowing you to map JT attributes to QY CAD file properties. The mapping table contains two columns. The left column is an exact match of the QY CAD property page string and the right column is the string in the JT file.
[Import Property map]
Document Number = I-DEAS Part Number
Author = Creator Project Name = I-DEAS Project
Density = CAD_Density
Parameters in the [Import Property Map] section are case insensitive.
Physical properties are exported by IDEAS and NX with the same naming conventions. This provides a standard name used by the VIS viewers to display or calculate properties of a solid body. QY CAD exports physical properties using the same naming convention.
Exporting multiple QY CAD files to JT
To use the batch translator to translate a list of files, create a text file that includes the full path for each file name you want to export. Include only one file name per line as shown:
c:\My SE files\part1.par |
Use this text file as input to the translator.
Exporting QY CAD textures to. JT
You can use the Export Textures parameter in the SEPVtrn.ini file located in the QY CAD Preferences\Translators folder, to export QY CAD textures to .jt By default the parameter value is set to 0, but you can change the value to 1 to export the textures. The textures can be applied to parts within the assembly or to faces at the assembly level.
When you export textures, the texture file is embedded in the .jt document, which increases the size of the document.
When exporting textures, the Background Colors and Rotation options on the Texture tab of the Face Overrides dialog box are not supported. If you select either of these texture options, the results of the .jt document may be different from the QY CAD document you are exporting.
Bulk translations
Use SePvAdp.exe, located in the QY CAD Program folder to translate QY CAD files through a standalone interface. The executable uses the SePvTrn.ini file to control the JT output translation settings. Any changes to the .ini file must be done before invoking the translator.
To run the executable, QY CAD must be installed on the computer and SePvAdp.exe must exist in the QY CAD Program folder. The executable does not launch a full version of QY CAD, so it requires less memory, leaving more resources available for processing larger files. When you select the files for translation, you must enclose in quotation marks "" any folder or file names containing spaces.
Once started, the only indication that the translator is running is the presence of SePvAdp.exe on the Processes tab in Task Manager. Once the translation of all selected files is complete, the process ends and is no longer displayed in Task Manager. Subsequent exportation of the same input file to the same output folder will overwrite the existing JT file.
You can invoke the executable through Start→Run in Windows Explorer or through a command line prompt in a DOS window. Examples of the command line prompt include:
Single input file with JT file exported to same folder as input file
-
C:>”C:\Program Files\UDS\QY CAD 2022\Program\SePvAdp.exe” <input_filename>
Multiple input files with JT files exported to same folder as input files
-
C:>”C:\Program Files\UDS\QY CAD 2022\Program\SePvAdp.exe” <input_filename_1> <input_filename_2> and so on.
Single input file with JT file exported to a different output folder
-
C:>”C:\Program Files\UDS\QY CAD 2022\Program\SePvAdp.exe” -g -o <output_folder> <input_filename>
Multiple input files with JT files exported to a different output folder
-
C:>”C:\Program Files\UDS\QY CAD 2022\Program\SePvAdp.exe” -g -o <output_folder> <input_filename_1> <input_filename_2> and so on.
Uploading to Teamcenter
When you upload a QY CAD file that contains PMI into Teamcenter, the PMI is now exported to JT.
If you use SePvAdp.exe to covert QY CAD files to JT without opening them, any PMI in the QY CAD file is automatically exported to JT. Also, when using SePvAdp.exe, any PMI of inactive parts within an assembly is automatically exported to JT.
© 2021 UDS