DiscussionsIssue archiveData Exchange and Application Framework

Archived discussion

How to extract descriptive representation item of a shape entity

Data Exchange and Application FrameworkWed, 12/04/2024 - 10:583 replies

Browse this forum
QuestionAuthor

Hello,

I am currently working with the 7.8.2 dev C++ version and Visual Studio 2022 to extract meaningful data from STEP files and convert it into other formats.

As shown in the image below, some STEP files contain a line(s) with an MEASURE_REPRESENTATION_ITEM command. I intend to extract data defined in that line, such as volume measure, area measure, center point, etc., and associate the extracted data with the corresponding TDF_Label(s).

The UDA extraction feature, available from version 7.8.2 dev, does not process the above data.

I would appreciate it if you could provide relevant example links or code.

Sincerely,
Author

Discussion

3 archived replies

Posts are displayed in their archived order.

01Commenter-1

Archived image: 003-Screenshot%202024-12-04%20105151.png

Hello, it is a "validation property" that functionality supported for a long time. (https://github.com/Open-Cascade-SAS/OCCT/wiki/step#validation-properties) Extracting: https://github.com/Open-Cascade-SAS/OCCT/wiki/xde#centroid

Best regards, Commenter-1.

02Author

Thank you, Dmitrii!!

It gonna be much helpful to me :)

Could I ask one thing?

When I convert 'toycar_assy.stp' file through the commercial CAD software, a few attributes are found, which do not belong to the UDA and Validation property classification: Local Unit, MakeOrBuy, ProductDefinition, ProductID, ProductName.

Would you give me any clue to get these entities?

Sincerely,
Author

03Commenter-1

Probably you saying about Hoops or similar. Yes, we are planning to offer the same functionality. It is extraction from PRODUCT. Unfortunatelly, it is not defined by schemas. It is a not direct property extracted by special needs. Similar patch: 0033660: Data Exchange, Step Import - Adding product attributes to metadata - MantisBT

Still in progress.

Best regards, Commenter-1.