Usage: an implementation of this interface is supplied and you must use it as is. You should not reimplement it.
interface PLMIInterferenceSimulation
Interface to manage Interference Simulation.
Use method to create a new Interference Simulation.
public virtual AddComputeQuantifier( | iQuantifierMode) |
This example adds the computation of the quantifier of minimum distance to the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::ComputeQuantifier iQuantifierMode = PLMIInterferenceSimulation::MinimumDistance ; HRESULT hr = piItfSimu->AddComputeQuantifier (iQuantifierMode) ;
public virtual AddGroupObjects( | oGroup) |
AllAgainstAllInGroup
: groups can be added. GroupAgainstGroup
: groups can be added. GroupAgainstContext
: groups can be added. AllAgainstAllInContext
: no group can be added because no group is necessary in this case. This example sets the GroupComputationType "GroupAgainstGroup" to the current interference simulation and adds a new group.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::GroupComputationType GroupType = PLMIInterferenceSimulation::GroupAgainstGroup ; PLMIInterferenceGroupObjects * piNewGroup = NULL ; HRESULT hr = piItfSimu->SetGroupComputationType (GroupType) ; if (SUCCEEDED(hr)) { hr = piItfSimu->AddGroupObjects (piNewGroup) ; }
public virtual AddItfSpecificationTypeEngCnx( | iTypeEngCnx) |
CheckNoClash
to take into account engineering connection specifications of type "Check No Clash" CheckContact
to take into account engineering connection specifications of type "Check Contact" CheckClearance
to take into account engineering connection specifications of type "Check Clearance" NoCheck
to take into account engineering connection specifications of type "NoCheck" CheckNone
to not use engineering connection specification NoCheck
is the only value used, standard specification must also be used.
SpecificationType
must be:
SpecStdClash
SpecStdClearance
CheckNone
value (see
) activates the first four values.
CheckNone
means that no engineering connection specification will be used.
In this case, as a specification (standard specification or engineering connection specification or knowledge rules specification) must always be active,
one of the others specifications (standard specification or knowledge rules specification) has to be added before.
CheckNone
This example allows to take into account the engineering connection of type "Check No Clash" of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::SpecificationTypeEngCnx ItfSpecTypeEngCnx = PLMIInterferenceSimulation::CheckNoClash ; HRESULT hr = piItfSimu->AddItfSpecificationTypeEngCnx (ItfSpecTypeEngCnx) ;
public virtual Execute( | ) |
public virtual GetClearanceValue( | oClearVal) |
This example retrieves the value of Clearance of the InterferenceSimulation piItfSimu .double oClearVal = 0.0 ; HRESULT hr = piItfSimu->GetClearanceValue (oClearVal) ;
public virtual GetComparison( | oComparisonMode) |
This example gets the mode of comparison of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::Comparison ItfComparisonMode = PLMIInterferenceSimulation::ComparisonNone ; HRESULT hr = piItfSimu->GetComparison (ItfComparisonMode) ;
public virtual GetGroupComputationType( | oType) |
This example gets the value of group computation for the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::GroupComputationType GroupType = PLMIInterferenceSimulation::AllAgainstAllInContext ; HRESULT hr = piItfSimu->GetGroupComputationType (GroupType) ;
public virtual GetGroupObjects( | iIndex, | |
oGroup) |
This example gets the first group of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceGroupObjects * piGroup = NULL ; int NbGroup = 0 ; HRESULT hr = piItfSimu->GetNumberOfGroupObjects (NbGroup) ; if (SUCCEEDED(hr) && (NbGroup > 0)) { hr = piItfSimu->GetGroupObjects (1, piGroup) ; }
public virtual GetInterferenceResults( | oListResults) |
This example gets the list of results of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) CATListPtrPLMIInterferenceResult ListResults ; HRESULT hr = piItfSimu->GetInterferenceResults (ListResults) ;
public virtual GetIntermediateRepresentation( | oInterRepMode) |
This example gets the mode for the intermediate representations during computation of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::IntermediateRepresentation InterRepMode = PLMIInterferenceSimulation::InterRepNone ; HRESULT hr = piItfSimu->GetIntermediateRepresentation (InterRepMode) ;
public virtual GetName( | oSimuName) |
This example gets the name of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) CATUnicodeString oSimuName ("") ; hr = piItfSimu->GetName (oSimuName) ;
public virtual GetNumberOfGroupObjects( | oNbGroup) |
This example gets the number of groups of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) int NbGroup = 0 ; HRESULT hr = piItfSimu->GetNumberOfGroupObjects (NbGroup) ;
public virtual GetRuleSetName( | oRuleSetName) |
This example retrieves the name of the RuleSet used in the InterferenceSimulation iSimu .PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) CATUnicodeString oRuleSetName = "" ; HRESULT hr = piItfSimu->SetRuleSetByName (oRuleSetName) ;
public virtual GetSpecificationType( | oItfSpecType) |
This example gets the Interference Specification Type of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::SpecificationType ItfSpecClear = PLMIInterferenceSimulation::SpecStdNone ; HRESULT hr = piItfSimu->GetSpecificationType (ItfSpecClear) ;
public virtual IsActiveComputeQuantifier( | iQuantifierMode, | |
oIsActive) |
This example verifies if the computation of the quantifier of minimum distance is activated for the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::ComputeQuantifier iQuantifierMode = PLMIInterferenceSimulation::MinimumDistance ; CATBoolean bool1 = FALSE ; HRESULT hr = piItfSimu->IsActiveComputeQuantifier (iQuantifierMode, bool1) ;
public virtual IsActiveItfSpecificationTypeEngCnx( | iTypeEngCnx, | |
oIsActive) |
This example verifies if the engineering connection of type "Check Contact" is taken into account for the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::SpecificationTypeEngCnx ItfSpecTypeEngCnx = PLMIInterferenceSimulation::CheckContact ; CATBoolean bool1 = FALSE ; HRESULT hr = piItfSimu->IsActiveItfSpecificationTypeEngCnx (ItfSpecTypeEngCnx, bool1) ;
public virtual IsComputeQuantifierAvailable( | iQuantifierMode, | |
oIsAvailable) |
SpecStdClearance
of
) CheckClearance
of
) This example verifies if the computation of the quantifier of minimum distance is allowed for the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::ComputeQuantifier iQuantifierMode = PLMIInterferenceSimulation::MinimumDistance ; CATBoolean bool1 = FALSE ; HRESULT hr = piItfSimu->IsComputeQuantifierAvailable (iQuantifierMode, bool1) ;
public virtual RemoveComputeQuantifier( | iQuantifierMode) |
This example removes the computation of the quantifier of minimum distance to the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::ComputeQuantifier iQuantifierMode = PLMIInterferenceSimulation::MinimumDistance ; HRESULT hr = piItfSimu->RemoveComputeQuantifier (iQuantifierMode) ;
public virtual RemoveGroupObjects( | iIndex) |
GroupComputationType
.
AllAgainstAllInGroup
: group can be removed if there is more than one group. GroupAgainstGroup
: group can be removed if there are more than two groups. GroupAgainstContext
: group can be removed if there is more than one group. AllAgainstAllInContext
: no group can be removed. This example removes the last group of the the current interference simulation. We suppose that the interference simulation has a GroupComputationType value equal toGroupAgainstGroup
and that a new group has already been added.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) int NbGroup = 0 ; HRESULT hr = piItfSimu->GetNumberOfGroupObjects (NbGroup) ; if (SUCCEEDED(hr) && (NbGroup > 2)) { hr = piItfSimu->RemoveGroupObjects (NbGroup) ; }
public virtual RemoveItfSpecificationTypeEngCnx( | iTypeEngCnx) |
CheckNone
will take into account all the other values:
CheckNoClash
CheckContact
CheckClearance
NoCheck
This example removes the taken into account of the engineering connection of type "Check Clearance" of the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::SpecificationTypeEngCnx ItfSpecTypeEngCnx = PLMIInterferenceSimulation::CheckClearance ; HRESULT hr = piItfSimu->RemoveItfSpecificationTypeEngCnx (ItfSpecTypeEngCnx) ;
public virtual RemoveRuleSet( | ) |
This example removes the RuleSet used in the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) HRESULT hr = piItfSimu->SetRuleSetByName (iRuleSetName) ;
public virtual SetClearanceValue( | iClearVal) |
This example sets the value of Clearance of 32 mm to the interference simulation piItfSimu .double iClearVal = 0.032 ; HRESULT hr = piItfSimu->SetClearanceValue (iClearVal) ;
public virtual SetComparison( | iComparisonMode) |
RecomputeModify
.
This example sets the mode of comparison "DeleteOutOfScope" to the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::Comparison ItfComparisonMode = PLMIInterferenceSimulation::DeleteOutOfScope ; HRESULT hr = piItfSimu->SetComparison (ItfComparisonMode) ;
public virtual SetGroupComputationType( | iType) |
AllAgainstAllInContext
.
AllAgainstAllInGroup
:
GroupAgainstGroup
:
GroupAgainstContext
:
AllAgainstAllInContext
:
This example sets the value of group computation "GroupAgainstGroup" to the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::GroupComputationType GroupType = PLMIInterferenceSimulation::GroupAgainstGroup ; HRESULT hr = piItfSimu->SetGroupComputationType (GroupType) ;
public virtual SetIntermediateRepresentation( | iInterRepMode) |
InterRepNone
.
This example sets the taken into account of the intermediate representations during computation for the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::IntermediateRepresentation InterRepMode = PLMIInterferenceSimulation::InterRepAppend ; HRESULT hr = piItfSimu->SetIntermediateRepresentation (InterRepMode) ;
public virtual SetName( | iSimuName) |
This example sets the name ItfSimu_01 to the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) CATUnicodeString iSimuName = "ItfSimu_01" ; HRESULT hr = opiItfSimu->SetName (iSimuName) ;
public virtual SetRuleSetByName( | iRuleSetName) |
This example sets the RuleSet beginning with the string "RuleSet_01" to the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) CATUnicodeString iRuleSetName = "RuleSet_01*" ; HRESULT hr = piItfSimu->SetRuleSetByName (iRuleSetName) ;
public virtual SetSpecificationType( | iItfSpecType) |
This example sets the Interference Specification Type SpecStdClearance to the current interference simulation.PLMIInterferenceSimulation * piItfSimu = ... ; // (created by PLMIInterferenceServices) PLMIInterferenceSimulation::SpecificationType ItfSpecClear = PLMIInterferenceSimulation::SpecStdClearance ; HRESULT hr = piItfSimu->SetSpecificationType (ItfSpecClear) ;
enum Comparison { ComparisonNone, RecomputeModify, DeleteOutOfScope }Interference Simulation type of comparison, these options allow or not the reuse of existing interference simulation results.
RecomputeModify
.
RecomputeModify
.enum ComputeQuantifier { MinimumDistance, PenetrationVector }Interference Simulation computation of quantifier, these options allow or not the computation of quantifier for interference
SpecStdClearance
in CheckClearance
in
). enum GroupComputationType { AllAgainstAllInGroup, GroupAgainstGroup, GroupAgainstContext, AllAgainstAllInContext }Management of groups for Interference Simulation.
enum IntermediateRepresentation { InterRepNone, InterRepAppend, InterRepComputeBetween }Management of intermediate representations for Interference Simulation, these options allow to take into account or not intermediate representations during interference computation.
InterRepNone
.enum SpecificationType { SpecStdNone, SpecStdClash, SpecStdClearance }Interference Simulation Specification type of computation for the standard specification.
SpecStdNone
), one of the others specifications (engineering connection specification
with the option "No Check" unchecked or knowledge rules specification) has to be added before.
enum SpecificationTypeEngCnx { CheckNone, CheckNoClash, CheckContact, CheckClearance, NoCheck }Interference Simulation Specification type of computation for the use of engineering connection specification.
SpecStdClash
or SpecStdClearance
.
CheckNoClash
CheckContact
CheckClearance
NoCheck
CheckNone
value (see method:
) to activate all these previous values.
CheckNone
Copyright © 1999-2014, Dassault Systèmes. All rights reserved.