The Import Options - File Format - General dialog is displayed when
you click the Options button after
selecting one of the following types of files in Files
of type in the Open dialog:
Setting |
Get/Set Methods |
Return Value
or
<Value>
or
<OnFlag> |
Comment |
Surface/solid entities |
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swImportSolidSurface)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swImportSolidSurface,
<OnFlag>) |
Boolean value |
Specifies whether to import surface and solid entities; you must also
set ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption,
swGeneralImportSurfaceSolidEntityOptions_e.<Value>) |
Try forming solid(s) |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption,
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportTryFormingSolids) |
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportTryFormingSolids |
See swGeneralImportSurfaceSolidEntityOptions_e
for all valid options |
B-rep mapping |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportUseBrep)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption,
swGeneralImportSurfaceSolidEntityOptions_e.swImportUseBrep)
and
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption,
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportByBrep) |
NOTE: You must set ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption,
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportByBrep) for
swGeneralImportSurfaceSolidEntityOptions_e.swImportUseBrep
to have an affect.
and
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportByBrep |
See swGeneralImportSurfaceSolidEntityOptions_e
for all valid options |
Knit surface(s) |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption,
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportKnitSurfaces) |
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportKnitSurfaces |
See swGeneralImportSurfaceSolidEntityOptions_e
for all valid options |
Do not knit |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swCreateBodyFromSurfacesOption,
swGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportDoNotKnit) |
wGeneralImportSurfaceSolidEntityOptions_e.swGeneralImportDoNotKnit |
See swGeneralImportSurfaceSolidEntityOptions_e
for all valid options |
Merge Entities |
See Comment |
See Comment |
Not currently available in SolidWorks API |
Free Point/curve entities |
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swImportFreeCurves)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swImportFreeCurves,
<OnFlag>) |
Boolean value |
Specifies whether to import free points and free curve entities; must
also specify an ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportCurvePreference,
swGeneralImportFreePointCurveEntityOptions_e.<Value>)
|
Import as sketch(es) |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportCurvePreference)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportCurvePreference,
swGeneralImportFreePointCurveEntityOptions_e.swGeneralImportAsSketches) |
swGeneralImportFreePointCurveEntityOptions_e.swGeneralImportAsSketches |
See swGeneralImportFreePointCurveEntityOptions_e
for all valid options |
Import as 3D curves |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportCurvePreference)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportCurvePreference,
swGeneralImportFreePointCurveEntityOptions_e.swGeneralImportAs3dCurves) |
swGeneralImportFreePointCurveEntityOptions_e.swGeneralImportAs3dCurves |
See swGeneralImportFreePointCurveEntityOptions_e
for all valid options |
Import multiple bodies as parts |
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swImportMultBodyAsPartData)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swImportMultBodyAsPartData,
<OnFlag>) |
Boolean value |
Specifies whether to import multibody part as an assembly document;
for STEP and ACIS files only |
Perform full entity check and repair errors |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportCheckAndRepair)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportCheckAndRepair,
<Value>) |
|
|
Automatically run Import Diagnostics (Healing) |
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swImportAutoRunImportDiagnostics)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swImportAutoRunImportDiagnostics,
<OnFlag>)
and
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swImportAutoRunImportDiagnosticsPersist)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swImportAutoRunImportDiagnosticsPersist,
<OnFlag>) |
Boolean value
and
Boolean value |
Specifies whether import diagnostics (healing) are run automatically.
If TRUE, they are; if FALSE, they are not
and
Specifies whether users are presented with a dialog asking them if the
import diagnostics (healing) should run; if True, then users are not asked
and automatic healing is done depending on the value of swUserPreferenceToggle_e.swImportAutoRunImportDiagnostics;
if False, then users are asked |
Customize curve tolerance |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swUseCustomizedImportTolerance)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swUseCustomizedImportTolerance,
<Value>) |
|
Specifies whether customized curve tolerance for imported documents
is enabled |
Customize curve tolerance <n> |
ISldWorks::GetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swCustomizedImportTolerance)
ISldWorks::SetUserPreferenceDoubleValue(swUserPreferenceDoubleValue_e.swCustomizedImportTolerance,
<Value>) |
Double value in meters |
Specifies customized curve tolerance for imported documents; swUserPreferenceIntegerValue_e.swUseCustomizedImportTolerance
must be set to 1 to enable this setting |
Unit - File specified unit |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportUnitPreference)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportUnitPreference,
swGeneralImportUnitsOptions_e.swGeneralImportFileSpecifiedUnit) |
swGeneralImportUnitsOptions_e.swGeneralImportFileSpecifiedUnit |
See swGeneralImportUnitsOptions_e
for all valid options |
Unit - Document template specified unit |
ISldWorks::GetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportUnitPreference)
ISldWorks::SetUserPreferenceIntegerValue(swUserPreferenceIntegerValue_e.swImportUnitPreference,
swGeneralImportUnitsOptions_e.swGeneralImportDocumentTemplateSpecifiedUnit) |
swGeneralImportUnitsOptions_e.swGeneralImportDocumentTemplateSpecifiedUnit) |
See swGeneralImportUnitsOptions_e
for all valid options |
IGES - Show IGES levels |
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swIGESImportShowLevel)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swIGESImportShowLevel,
<OnFlag>) |
Boolean value |
Specifies whether to displays the IGES-In Surfaces, Curves, and Levels
dialog to the user where the user can specify levels and values |
STEP - Map configuration data |
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swImportStepConfigData)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swImportStepConfigData,
<OnFlag>) |
Boolean value |
Specifies whether to import STEP file configuration data plus geometric
data or geometric data only; for STEP files only |
Unigraphics NX - Import tool bodies |
ISldWorks::GetUserPreferenceToggle(swUserPreferenceToggle_e.swImportUGToolBodies)
ISldWorks::SetUserPreferenceToggle(swUserPreferenceToggle_e.swImportUGToolBodies,
<OnFlag>) |
Boolean value |
Specifies whether to import tool bodies; for Unigraphics II files only |