Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data Exchange - Loading file structure and names #1374

Open
BacchusX1 opened this issue Oct 16, 2024 · 0 comments
Open

Data Exchange - Loading file structure and names #1374

BacchusX1 opened this issue Oct 16, 2024 · 0 comments

Comments

@BacchusX1
Copy link

BacchusX1 commented Oct 16, 2024

Hi all,

I am new to python occ so thanks for any help in advance.

I utilize occ to create graphs from step files and perform a classification task on extracted features from graph (connectivity, etc) and step (face types, volume etc).
I want to process assemblies, identify common standard parts, delete them and finally safe a step file without standard parts.

This works fine but I cannot retain the overall structure after writing the step without standard parts in the end.

I have the problem that I cannot load a step files complete structure (assembly - subassembly - solid) with its names and afterwards write it in the same way.

I have learned that compounds can be used to pack solids into assemblies. And I have seen the read_step_file_with_names_colors() function but no writer corresponding to it.

Has anyone a solution to retain the step file structure (assembly, subassembly, solid and associated names) during reading and writing?

Update 19.10.2024:

I have found issue: #805.
Based on that I will try to extract assembly structure. (https://github.com/dblanding/kodacad/blob/master/stepanalyzer.py)

For writing the assembly structure with names, I did not found a solution yet, so I would keep the issue open and keep you updated.
I hope to close the issue with a complete example.

@BacchusX1 BacchusX1 changed the title Data Exchange Data Exchange - Loading file structure and names Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants