CAEFileContainer Class¶
-
class
NXOpen.PDM.
CAEFileContainer
¶ Bases:
NXOpen.TransientObject
This class is a File Container class for uploading JT files created by NX CAE Post Processing to Teamcenter. Users can add the JT file names and their corresponding dataset names to this container class. Once all the JT file names are added, this class can be used to upload the JT files to Teamcenter. The class can be used to upload only to a a single part at a time.
Use
NXOpen.PDM.PdmSession
to get the instance of this class.New in version NX8.5.0.
Methods¶
Method | Description |
---|---|
AddFile | Add a file to the list of files in the file container class NXOpen.PDM.CAEFileContainer . |
DeleteFile | Delete a file from the list of files in the file container class NXOpen.PDM.CAEFileContainer . |
Dispose | Free resources associated with the instance. |
DoUpload | Upload CAE files to Teamcenter, independent of a standard file->save. |
GetOwningPart | Get the part tag of the owning part of the class NXOpen.PDM.CAEFileContainer . |
SetOwningPart | Sets the part tag of the owning part of the class NXOpen.PDM.CAEFileContainer . |
Method Detail¶
AddFile¶
-
CAEFileContainer.
AddFile
¶ Add a file to the list of files in the file container class
NXOpen.PDM.CAEFileContainer
.Signature
AddFile(datasetname, filename)
Parameters: - datasetname (str) –
- filename (str) –
New in version NX8.5.0.
License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)
DeleteFile¶
-
CAEFileContainer.
DeleteFile
¶ Delete a file from the list of files in the file container class
NXOpen.PDM.CAEFileContainer
.Signature
DeleteFile(datasetname, filename)
Parameters: - datasetname (str) –
- filename (str) –
New in version NX8.5.0.
License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)
Dispose¶
-
CAEFileContainer.
Dispose
¶ Free resources associated with the instance.
After this method is called, it is illegal to use the object. In .NET, this method is automatically called when the object is deleted by the garbage collector.
Signature
Dispose()
New in version NX8.5.0.
License requirements: None.
DoUpload¶
-
CAEFileContainer.
DoUpload
¶ Upload CAE files to Teamcenter, independent of a standard file->save.
Upload all the files in the file container class
NXOpen.PDM.CAEFileContainer
using this function. The JT files should be present in the temporary directory of the system prior to calling this function.Signature
DoUpload()
New in version NX8.5.0.
License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)
GetOwningPart¶
-
CAEFileContainer.
GetOwningPart
¶ Get the part tag of the owning part of the class
NXOpen.PDM.CAEFileContainer
.Signature
GetOwningPart()
Returns: Return type: str New in version NX8.5.0.
License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)
SetOwningPart¶
-
CAEFileContainer.
SetOwningPart
¶ Sets the part tag of the owning part of the class
NXOpen.PDM.CAEFileContainer
.Signature
SetOwningPart(partspec)
Parameters: partspec (str) – New in version NX8.5.0.
License requirements: nx_masterfem (“Finite Element Modeling”) OR nx_design_sim (“NX Design Simulation”)