ASCImporter Class¶
-
class
NXOpen.
ASCImporter
¶ Bases:
NXOpen.Builder
Represents a
NXOpen.ASCImporter
.This class is used to import .ASC and .DWG files
To create a new instance of this class, use
NXOpen.DexManager.CreateAscImporter()
Default values.
Property Value PartUnitsEnum Millimeters New in version NX7.5.0.
Properties¶
Property | Description |
---|---|
InputFile | Returns or sets the input file - name of a file which is being imported |
OutputFile | Returns or sets the output file - name of a file which is being created |
PartUnitsEnum | Returns or sets the part units enum |
SheetGeometryToSketch | Returns or sets the toggle of creating sketch in sheet |
Tag | Returns the Tag for this object. |
ViewGeometryToSketch | Returns or sets the toggle of creating sketch in view |
Methods¶
Method | Description |
---|---|
Commit | Commits any edits that have been applied to the builder. |
Destroy | Deletes the builder, and cleans up any objects created by the builder. |
GetCommittedObjects | For builders that create more than one object, this method returns the objects that are created by commit. |
GetObject | Returns the object currently being edited by this builder. |
ShowResults | Updates the model to reflect the result of an edit to the model for all builders that support showing results. |
Validate | Validate whether the inputs to the component are sufficient for commit to be called. |
Enumerations¶
ASCImporterUnits Enumeration | The Part Units selection Enum |
Property Detail¶
InputFile¶
-
ASCImporter.
InputFile
¶ Returns or sets the input file - name of a file which is being imported
-------------------------------------
Getter Method
Signature
InputFile
Returns: Return type: str New in version NX7.5.0.
License requirements: nx_layout (“NX Layout”)
-------------------------------------
Setter Method
Signature
InputFile
Parameters: filename (str) – New in version NX7.5.0.
License requirements: nx_layout (“NX Layout”)
OutputFile¶
-
ASCImporter.
OutputFile
¶ Returns or sets the output file - name of a file which is being created
-------------------------------------
Getter Method
Signature
OutputFile
Returns: Return type: str New in version NX7.5.0.
License requirements: nx_layout (“NX Layout”)
-------------------------------------
Setter Method
Signature
OutputFile
Parameters: filename (str) – New in version NX7.5.0.
License requirements: nx_layout (“NX Layout”)
PartUnitsEnum¶
-
ASCImporter.
PartUnitsEnum
¶ Returns or sets the part units enum
-------------------------------------
Getter Method
Signature
PartUnitsEnum
Returns: Return type: NXOpen.ASCImporterUnits
New in version NX7.5.0.
License requirements: nx_layout (“NX Layout”)
-------------------------------------
Setter Method
Signature
PartUnitsEnum
Parameters: partUnitsEnum ( NXOpen.ASCImporterUnits
) –New in version NX7.5.0.
License requirements: nx_layout (“NX Layout”)
SheetGeometryToSketch¶
-
ASCImporter.
SheetGeometryToSketch
¶ Returns or sets the toggle of creating sketch in sheet
-------------------------------------
Getter Method
Signature
SheetGeometryToSketch
Returns: Return type: bool New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
-------------------------------------
Setter Method
Signature
SheetGeometryToSketch
Parameters: createSketchInSheet (bool) – New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
ViewGeometryToSketch¶
-
ASCImporter.
ViewGeometryToSketch
¶ Returns or sets the toggle of creating sketch in view
-------------------------------------
Getter Method
Signature
ViewGeometryToSketch
Returns: Return type: bool New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
-------------------------------------
Setter Method
Signature
ViewGeometryToSketch
Parameters: createSketchInViews (bool) – New in version NX8.5.0.
License requirements: nx_layout (“NX Layout”)
Method Detail¶
Validate¶
-
ASCImporter.
Validate
¶ Validate whether the inputs to the component are sufficient for commit to be called.
If the component is not in a state to commit then an exception is thrown. For example, if the component requires you to set some property, this method will throw an exception if you haven’t set it. This method throws a not-yet-implemented NXException for some components.
Signature
Validate()
Returns: Was self validation successful Return type: bool New in version NX3.0.1.
License requirements: None.