mirror of
https://git.dev.opencascade.org/repos/occt.git
synced 2025-08-14 13:30:48 +03:00
0027336: Update STEP entities, according to AP242
Add header and parameter for AP242. Update entities: product_definition_relationship styled_item Update select types: security_classification_item person_and_organization_item organization_item group_item external_identification_item document_reference_item date_item approval_item external_identification_item draughting_callout_element value_qualifier invisibility_context update gdt tests. fix compilation warnings.
This commit is contained in:
@@ -137,6 +137,11 @@ void STEPConstruct_ContextTool::AddAPD (const Standard_Boolean enforce)
|
||||
theAPD->SetApplicationInterpretedModelSchemaName
|
||||
(new TCollection_HAsciiString("automotive_design"));
|
||||
break;
|
||||
case 5: theAPD->SetApplicationProtocolYear (2013);
|
||||
theAPD->SetStatus (new TCollection_HAsciiString("international standard"));
|
||||
theAPD->SetApplicationInterpretedModelSchemaName
|
||||
(new TCollection_HAsciiString("ap242_managed_model_based_3d_engineering"));
|
||||
break;
|
||||
}
|
||||
|
||||
if (theAPD->Application().IsNull())
|
||||
@@ -149,6 +154,8 @@ void STEPConstruct_ContextTool::AddAPD (const Standard_Boolean enforce)
|
||||
break;
|
||||
case 3: appl = new TCollection_HAsciiString ( "configuration controlled 3D designs of mechanical parts and assemblies" );
|
||||
break;
|
||||
case 5: appl = new TCollection_HAsciiString ( "Managed model based 3d engineering");
|
||||
break;
|
||||
}
|
||||
theAPD->Application()->SetApplication ( appl );
|
||||
// if (noapd || enforce) aStepModel->AddWithRefs (theAPD);
|
||||
@@ -184,6 +191,21 @@ Standard_Boolean STEPConstruct_ContextTool::IsAP214 () const
|
||||
return sch == "automotive_design";
|
||||
}
|
||||
|
||||
//=======================================================================
|
||||
//function : IsAP242
|
||||
//purpose :
|
||||
//=======================================================================
|
||||
|
||||
Standard_Boolean STEPConstruct_ContextTool::IsAP242 () const
|
||||
{
|
||||
if ( theAPD.IsNull() ) return Standard_False;
|
||||
Handle(TCollection_HAsciiString) schema = theAPD->ApplicationInterpretedModelSchemaName();
|
||||
if ( schema.IsNull() ) return Standard_False;
|
||||
TCollection_AsciiString sch = schema->String();
|
||||
sch.LowerCase();
|
||||
return sch == "ap242_managed_model_based_3d_engineering";
|
||||
}
|
||||
|
||||
// ================================================================
|
||||
// Data Section : Basic Product Information (level S1)
|
||||
// * Get methods
|
||||
|
@@ -66,6 +66,9 @@ public:
|
||||
|
||||
//! Returns True if APD.schema_name is automotive_design
|
||||
Standard_EXPORT Standard_Boolean IsAP214() const;
|
||||
|
||||
//! Returns True if APD.schema_name is ap242_managed_model_based_3d_engineering
|
||||
Standard_EXPORT Standard_Boolean IsAP242() const;
|
||||
|
||||
Standard_EXPORT Handle(TCollection_HAsciiString) GetACstatus();
|
||||
|
||||
|
@@ -73,6 +73,7 @@ void STEPConstruct_Part::MakeSDR(const Handle(StepShape_ShapeRepresentation)& SR
|
||||
case 1: PC = new StepBasic_MechanicalContext;
|
||||
break;
|
||||
case 4:
|
||||
case 5:
|
||||
case 2: PC = new StepBasic_ProductContext;
|
||||
break;
|
||||
case 3: PC = new StepBasic_MechanicalContext;
|
||||
@@ -95,7 +96,8 @@ void STEPConstruct_Part::MakeSDR(const Handle(StepShape_ShapeRepresentation)& SR
|
||||
switch (schema) {
|
||||
default:
|
||||
case 1:
|
||||
case 2: PDF = new StepBasic_ProductDefinitionFormation;
|
||||
case 2:
|
||||
case 5: PDF = new StepBasic_ProductDefinitionFormation;
|
||||
break;
|
||||
case 3: PDF = new StepBasic_ProductDefinitionFormationWithSpecifiedSource;
|
||||
Handle(StepBasic_ProductDefinitionFormationWithSpecifiedSource)::DownCast(PDF)->
|
||||
@@ -112,7 +114,8 @@ void STEPConstruct_Part::MakeSDR(const Handle(StepShape_ShapeRepresentation)& SR
|
||||
switch (schema) {
|
||||
default:
|
||||
case 1:
|
||||
case 2: PDC = new StepBasic_ProductDefinitionContext;
|
||||
case 2:
|
||||
case 5: PDC = new StepBasic_ProductDefinitionContext;
|
||||
PDCname = new TCollection_HAsciiString ("part definition");
|
||||
break;
|
||||
case 3: PDC = new StepBasic_DesignContext;
|
||||
@@ -151,7 +154,8 @@ void STEPConstruct_Part::MakeSDR(const Handle(StepShape_ShapeRepresentation)& SR
|
||||
PRPCName = new TCollection_HAsciiString("part") ;
|
||||
break;
|
||||
case 4:
|
||||
case 2:
|
||||
case 2:
|
||||
case 5:
|
||||
myPRPC = new StepBasic_ProductRelatedProductCategory;
|
||||
PRPCName = new TCollection_HAsciiString("part");
|
||||
break;
|
||||
|
Reference in New Issue
Block a user