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

Problems about Multi-part assembly in paper #7

Open
QuanYuhan opened this issue Apr 28, 2023 · 1 comment
Open

Problems about Multi-part assembly in paper #7

QuanYuhan opened this issue Apr 28, 2023 · 1 comment

Comments

@QuanYuhan
Copy link

Hello,

First of all thanks for sharing such great work.

I try to reproduce the part about multi-part assembly in the paper (Sec 6 and Appendix A.3.1). I first tried to use the Assembly Dataset - Joint Data and the joint2cad script to build the joint parts , and tried to further perform the joint axis prediction task.

In order to perform the joint axis prediction task, I refer to the code of regraph script , trying to extract features from the joint parts, but I found that, in Fusion 360, after I import the joint part, since it is no longer a single part, I cannot use the regraph script to extracts features, including the types of surfaces and curves. Specifically, after importing an assembly's step file, the object appears to have no solid bodies. My fusion 360 script code is as follows

app = adsk.core.Application.get()
adsk.doEvents()

for doc in app.documents:
    doc.close(False)
design = adsk.fusion.Design.cast(app.activeProduct)

reconstruction = design.rootComponent.occurrences.addNewComponent(adsk.core.Matrix3D.create())
reconstruction.activate()
adsk.doEvents()

import_options = app.importManager.createSTEPImportOptions(file_path)
import_options.isViewFit = False
imported_designs = app.importManager.importToTarget2(import_options, design.rootComponent)
target = imported_designs[0]

In this code, there is no object in target.bRepBodies, which prevents me from getting the required features for the JoinABLe model. I upload the step file in this Google Drive link, and here is the debug information

1682655295228

Since I am not familiar with Fusion 360 api, I just simply modified the existing script file. Is there something wrong with my script, or does assembly feature extraction require some other method. Or can you give some more details about multi-part assembly.

Thanks in advance

@preethamam
Copy link

@QuanYuhan, were you successful in the multi-part assembly procedure? I'm wondering how to proceed with three or more parts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants