Solid Edge Assembly Type Library
CheckInterference2 Method
Specifies the number of elements in the array specified by Set1.
Contains the Occurrence and Reference objects to be analyzed for interference via the ComparisonMethod. Note that if an Occurrence in the set is a subassembly, then each of the parts within the subassembly (even if they are nested more deeply within further subassemblies) will be analyzed for interference individually, rather than analyzing the entire subassembly as a unit.
Member of the InterferenceStatusConstants constant set that specifies the overall success of the analysis. Valid values are SECheckInterferenceAnalyisisStatusNoInterference, SECheckInterferenceAnalysisStatusConfirmedInterference, SECheckInterferenceAnalysisStatusProbableInterference, SECheckInterferenceAnalysisStatusProbablyAndConfirmedInterferences, and SECheckInterferenceAnalysisStatusIncompleteAnalysis.
Member of the InterferenceComparisonConstants constant set that specifies the method through which interferences will be analyzed. Valid values are SECheckIntererenceSet1VsSet2, SECheckInterferenceSet1VsAllOther, SECheckInterferenceSet1VsVisible, and SECheckInterferenceSet1VsItself. If the optional Set2 input parameter is supplied and no value is specified for the comparison method, the SECheckInterferenceSet1VsSet2 method will be used. If Set2 is not supplied and no comparison method is supplied, the SECheckInterferenceSet1VsItself will be the default.
Specifies the number of elements in the array specified by Set2.
Contains the Occurrence and Reference objects whose interference with the parts in Set1 is sought. If no array is passed in, the SECheckInterferenceSet1VsSet2 option for the ComparisonMethod is not used. Note that if an Occurrence in the set is a subassembly, then each of the parts within the subassembly (even if they are nested more deeply within further subassemblies) will be analyzed for interference individually, rather than analyzing the entire subassembly as a unit.
Specifies whether or not the interference volume is saved as an Occurrence object. If True, a Part file that contains the interference volume is generated in the temp directory, and is named Interferencex.par, where x is incremented as needed. The Occurrence object is returned in the InterferenceOccurrence argument. If AddInteferenceAsOccurrence is False, the interference volume is not saved, no file is created, and no object is returned via InterferenceOccurrence.
Specifies the name of the report to generate. If a file name is specified, a report file is generated.
Specifies the type of report to generate. This argument is a bit-mask constructed from the following possible values (from the InterferenceReportConstants constant set): SECheckIntererenceReportOccurrenceNames OR SECheckInterferenceReportOccurrenceCentersOfGravity OR SECheckInterferenceReportInterferenceCenterOfGravity OR SECheckInterferenceReportInterferenceVolume). If the ReportFilename is supplied and no value is supplied for ReportType, the default value is all of the options OR-ed together.
Specifies the number of intersections between parts in the assembly. This number also specifies the number of objects in the arrays returned by the IntersectingPartsSet1 and IntersectingPartsSet2 properties; each intersection found in the analysis is represented by the pair of parts at corresponding ordinal numbers in this array and the IntersectingPartsSet2 array.
Contains an array of intersecting parts. Parts within the active document are represented as Occurrence objects; parts within subassembly documents are represented as Reference objects. The array represents the subset of parts contained in the input parameter, Set1, that interfere with the comparison set. Each intersection found in the analysis is represented by the pair of parts at corresponding ordinal numbers in this array and the IntersectingPartsSet1 array.
Contains an array of intersecting parts. Parts within the active document are represented as Occurrence objects; parts within subassembly documents are represented as Reference objects. Each intersection found in the analysis is represented by the pair of parts at corresponding ordinal numbers in this array and the IntersectingPartsSet1 array.
Reports the status of each interference. A value of False is assigned to intersections that form non-manifold topology (that is, a mathematical point or line) or that are smaller than the tolerance of the analysis. A value of True is assigned to all intersections that are mathematically determinate.
When AddInteferenceAsObject is True, InterferenceOccurrence returns the Occurrence object that represents the interference volume.
Member of the InterferencedOptionsConstants constants set that specifies whether or not an interference with the same nominal diameter is ignored.
Member of the IInterferencedOptionsConstants constant set that specifies whether or not an interference between threaded fasteners and non-threaded holes is ignored.
Description
This method checks to see whether two selections share the same space. You can check one part against another part, or you can check one or more parts against themselves, against a second set of parts, or against all of the parts in the assembly.
Syntax
Visual Basic
Public Sub CheckInterference2( _
   ByVal NumElementsSet1 As Long, _
   ByRef Set1() As Object, _
   ByRef Status As InterferenceStatusConstants, _
   Optional ByVal ComparisonMethod As Variant, _
   Optional ByVal NumElementsSet2 As Variant, _
   Optional ByVal Set2 As Variant, _
   Optional ByVal AddInterferenceAsOccurrence As Variant, _
   Optional ByVal ReportFilename As Variant, _
   Optional ByVal ReportType As Variant, _
   Optional ByRef NumInterferences As Variant, _
   Optional ByRef InterferingPartsSet1 As Variant, _
   Optional ByRef InterferingPartsOtherSet As Variant, _
   Optional ByRef ConfirmedInterference As Variant, _
   Optional ByRef InterferenceOccurrence As Variant, _
   Optional ByVal IgnoreSameNominalDiaConstant As Variant, _
   Optional ByVal IgnoreNonThreadVsThreadConstant As Variant _
) 
Parameters
NumElementsSet1
Specifies the number of elements in the array specified by Set1.
Set1
Contains the Occurrence and Reference objects to be analyzed for interference via the ComparisonMethod. Note that if an Occurrence in the set is a subassembly, then each of the parts within the subassembly (even if they are nested more deeply within further subassemblies) will be analyzed for interference individually, rather than analyzing the entire subassembly as a unit.
Status
ValueDescription
seInterferenceStatusConfirmedAndProbableInterferenceAt least one interference found, but not confirmed AND at least one interference found and confirmed
seInterferenceStatusConfirmedInterferenceConfirmed interference
seInterferenceStatusIncompleteAnalysisAnalysis was not completed
seInterferenceStatusNoInterferenceNo interference
seInterferenceStatusProbableInterferenceProbable interference, but not confirmed
Member of the InterferenceStatusConstants constant set that specifies the overall success of the analysis. Valid values are SECheckInterferenceAnalyisisStatusNoInterference, SECheckInterferenceAnalysisStatusConfirmedInterference, SECheckInterferenceAnalysisStatusProbableInterference, SECheckInterferenceAnalysisStatusProbablyAndConfirmedInterferences, and SECheckInterferenceAnalysisStatusIncompleteAnalysis.
ComparisonMethod
Member of the InterferenceComparisonConstants constant set that specifies the method through which interferences will be analyzed. Valid values are SECheckIntererenceSet1VsSet2, SECheckInterferenceSet1VsAllOther, SECheckInterferenceSet1VsVisible, and SECheckInterferenceSet1VsItself. If the optional Set2 input parameter is supplied and no value is specified for the comparison method, the SECheckInterferenceSet1VsSet2 method will be used. If Set2 is not supplied and no comparison method is supplied, the SECheckInterferenceSet1VsItself will be the default.
NumElementsSet2
Specifies the number of elements in the array specified by Set2.
Set2
Contains the Occurrence and Reference objects whose interference with the parts in Set1 is sought. If no array is passed in, the SECheckInterferenceSet1VsSet2 option for the ComparisonMethod is not used. Note that if an Occurrence in the set is a subassembly, then each of the parts within the subassembly (even if they are nested more deeply within further subassemblies) will be analyzed for interference individually, rather than analyzing the entire subassembly as a unit.
AddInterferenceAsOccurrence
Specifies whether or not the interference volume is saved as an Occurrence object. If True, a Part file that contains the interference volume is generated in the temp directory, and is named Interferencex.par, where x is incremented as needed. The Occurrence object is returned in the InterferenceOccurrence argument. If AddInteferenceAsOccurrence is False, the interference volume is not saved, no file is created, and no object is returned via InterferenceOccurrence.
ReportFilename
Specifies the name of the report to generate. If a file name is specified, a report file is generated.
ReportType
Specifies the type of report to generate. This argument is a bit-mask constructed from the following possible values (from the InterferenceReportConstants constant set): SECheckIntererenceReportOccurrenceNames OR SECheckInterferenceReportOccurrenceCentersOfGravity OR SECheckInterferenceReportInterferenceCenterOfGravity OR SECheckInterferenceReportInterferenceVolume). If the ReportFilename is supplied and no value is supplied for ReportType, the default value is all of the options OR-ed together.
NumInterferences
Specifies the number of intersections between parts in the assembly. This number also specifies the number of objects in the arrays returned by the IntersectingPartsSet1 and IntersectingPartsSet2 properties; each intersection found in the analysis is represented by the pair of parts at corresponding ordinal numbers in this array and the IntersectingPartsSet2 array.
InterferingPartsSet1
Contains an array of intersecting parts. Parts within the active document are represented as Occurrence objects; parts within subassembly documents are represented as Reference objects. The array represents the subset of parts contained in the input parameter, Set1, that interfere with the comparison set. Each intersection found in the analysis is represented by the pair of parts at corresponding ordinal numbers in this array and the IntersectingPartsSet1 array.
InterferingPartsOtherSet
Contains an array of intersecting parts. Parts within the active document are represented as Occurrence objects; parts within subassembly documents are represented as Reference objects. Each intersection found in the analysis is represented by the pair of parts at corresponding ordinal numbers in this array and the IntersectingPartsSet1 array.
ConfirmedInterference
Reports the status of each interference. A value of False is assigned to intersections that form non-manifold topology (that is, a mathematical point or line) or that are smaller than the tolerance of the analysis. A value of True is assigned to all intersections that are mathematically determinate.
InterferenceOccurrence
When AddInteferenceAsObject is True, InterferenceOccurrence returns the Occurrence object that represents the interference volume.
IgnoreSameNominalDiaConstant
Member of the InterferencedOptionsConstants constants set that specifies whether or not an interference with the same nominal diameter is ignored.
IgnoreNonThreadVsThreadConstant
Member of the IInterferencedOptionsConstants constant set that specifies whether or not an interference between threaded fasteners and non-threaded holes is ignored.
See Also

AssemblyDocument Object  | AssemblyDocument Members  | Solid Edge V20 - What's New