Data extraction from native file

Data extraction from native file

s.chand6RXFT
Explorer Explorer
491 Views
3 Replies
Message 1 of 4

Data extraction from native file

s.chand6RXFT
Explorer
Explorer

Dear All,

I am woking with .prt native file. I want to extract the geometrical features(Area,volume,centre of mass, holes, connectivity etc) of the parts and subparts present in the assembled model.I found that , the python runs within the Fusion 360 process and also runs in the main Fusion 360 thread.I want to extact the features by using SDK  without running fusion 360. Is there any way to achieve my goal??

It would be great support, if i got the answer.

 

Many Thanks

0 Likes
492 Views
3 Replies
Replies (3)
Message 2 of 4

Jorge_Jaramillo
Collaborator
Collaborator
Hi,
With the Fusion360 API's there is not way to run outside the Fusion360 thread.
I believe you have to do it with a third-party library which can run autonomous over your PRT file.
0 Likes
Message 3 of 4

s.chand6RXFT
Explorer
Explorer

Thanks for your email. Even if  i run with fusion 360 thread, how can i extract the geometrical parameters from .prt files using fusion360 api using python.

What are the other third party library mentioned by you?

Many Thanks

0 Likes
Message 4 of 4

Jorge_Jaramillo
Collaborator
Collaborator

Hi,

 

I don't know which other software or libraries you use, since I don't work with that kind of files.

Maybe if you look in github you could find something interesting.

 

Regarding the Fusion API, once you are able to load the model and convert it to the Fusion's objects, you can see the object reference here to figure out how to obtain the values you expect.

For example:

a) Volume of a body: you can get it from BRepBody.volume

b) Face area: from BRepFace.area

... and so on.

 

Hope this could help.

 

Best regards,

Jorge

0 Likes