cancel
Showing results for 
Search instead for 
Did you mean: 

Surface area Calculation in Assembly

Valued Contributor
Valued Contributor

I have an assembly file consisting of lots of parts. I want to know the surface area of each part individually. Is there any way we can introduce some macros for calculating surface area?

15 REPLIES

Re: Surface area Calculaiton in Assembly

Honored Contributor
Honored Contributor

Try this journal:

assembly_surface_area.vb

 

It hasn't been thoroughly tested, so post back with any errors you encounter.

Re: Surface area Calculaiton in Assembly

Valued Contributor
Valued Contributor

It runs without throwing any error..

Thanks a lot for your help..

Spoiler
 Man Happy

 

 

Re: Surface area Calculaiton in Assembly

Valued Contributor
Valued Contributor

The only problem that I am facing now is whenever I use a large assembly file. I have few parts which have referenceset as 'Entire Part'. For that following parts I am getting surface area as 0. Do you anything about reference set? How do I overcome this problem?

Also can I create a similar kind of journal to give a list of surface areas of an individual surface of an .iges file model?

Re: Surface area Calculaiton in Assembly

Honored Contributor
Honored Contributor

Updated to handle the "empty" and "entire part" reference sets. Download from the same link as above.

Re: Surface area Calculaiton in Assembly

Valued Contributor
Valued Contributor

It works now...Smiley Happy

I wanted to know what modification I must do in order to get surface area of individual surfaces of an part? I will be using imported .iges file so that I can have each surface as a different body(entity).

Re: Surface area Calculaiton in Assembly

Honored Contributor
Honored Contributor

As for measuring surface area of individual faces, I'd suggest iterating through the part's body collection, use the .GetFaces method, and finally use the measure face command on each. Record a journal of measuring one face in a part to get an idea of how to call the correct measurement functions; use this code as a starting point.

Re: Surface area Calculaiton in Assembly

Valued Contributor
Valued Contributor

Thanks.Smiley Happy I will try doing that...Smiley Happy

 

Re: Surface area Calculaiton in Assembly

Experimenter
Experimenter

Plz tell me how to use attached assembly_surface_area.vb file.

 

Re: Surface area Calculaiton in Assembly

Valued Contributor
Valued Contributor

In modelling window; go to Tools>Journals>Playback

 

A window will appear. Browse the .vb file and click open. You will now be able to click on 'Run' option.