DiscussionsIssue archiveOCCT:Data Exchange

Archived issue #0024159

Colors are not imported for Step-Files created with Inventor 2014

CommunityOCCT:Data Exchangeclosed8 public notes

Search issues

Description

When I try to import the attached step-file, the colors are missing.
STEPConstruct_Styles::LoadStyles looks for entities of either StepVisual_MechanicalDesignGeometricPresentationRepresentation or StepVisual_DraughtingModel as the type, but the Step Library used with Autodesk Inventor 2014 seems to use another way to export the colors.

Steps to reproduce

//read the Step File
Handle(TDocStd_Document) hDoc;
XCAFApp_Application::GetApplication()->NewDocument("MDTV_XCAF", hDoc);
STEPCAFControl_Reader reader;
reader.SetColorMode(true);
reader.ReadFile(strFileName);
reader.Transfer(hDoc);

//Access the Colors
Handle(XCAFDoc_ColorTool) hColorTool = XCAFDoc_DocumentTool::ColorTool(hDoc->Main());
TDF_LabelSequence Labels;
hColorTool->GetColors(Labels);//no color was imported

Public activity

8 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: dbv
Date: Tue Sep 23 17:45:55 2014 +0400

    0024159: Colors are not imported for Step-Files created with Inventor 2014
    
    Method STEPConstruct_Styles::LoadStyles() now imports StepVisual_StyledItem entities even if they was defined without StepVisual_MechanicalDesignGeometricPresentationRepresentation or StepVisual_DraughtingModel entity
02Commenter 2
Method STEPConstruct_Styles::LoadStyles() now imports StepVisual_StyledItem entities even if they was defined without StepVisual_MechanicalDesignGeometricPresentationRepresentation or StepVisual_DraughtingModel entity

Dear gka, patch is ready be reviewed in branch CR24159
03Commenter 3
No remarks, please test
04Commenter 2
Branch [archived branch] has been updated forcibly by Participant.

[revision removed]
05Commenter 5
Dear Commenter 1,

Branch CR24159 (and products from GIT master) was compiled on Linux, MacOS and Windows platforms and tested.
[revision removed]

Number of compiler warnings:
occt component:
   Linux: 15 (15 on master)
   Windows: 0 (0 on master)
   MacOS: 193 (193 on master)
products component :
   Linux: 11 (11 on master)
   Windows: 1 (1 on master)

Regressions/Differences:
http://occt-tests/CR24159-master-occt/Debian60-64/summary.html
http://occt-tests/CR24159-master-occt/Windows-32-VC10/summary.html
de step_1(004) A1, E3, J7, J8, J9, N7
de step_2(005) K4, K5, K8
de step_3(006) C9
de step_4(007) E3

Testing cases:
Not done

Testing on Linux:
Total MEMORY difference: 354699004 / 354707176
Total CPU difference: 46226.690000000046 / 44597.82000000009

Testing on Windows:
Total MEMORY difference: 244494736 / 241480544
Total CPU difference: 36830.28125 / 33949.359375
06Commenter 6
Dear apv,

as now all the colors are read, following test cases should be updated:
de step_1(004) A1, E3, J7, J8, J9, N7
de step_2(005) K4, K5, K8
de step_3(006) C9
de step_4(007) E3


07Commenter 2
Branch [archived branch] has been updated by Participant.

[revision removed]


Detailed log of new commits:

Author: apv
Date: Thu Sep 25 17:02:14 2014 +0400

    Update of reference data

08Commenter 2
Branch [archived branch] has been deleted by Participant.

[revision removed]