Export Surface Finish Data

Export Surface Finish Data

Anonymous
Not applicable
450 Views
3 Replies
Message 1 of 4

Export Surface Finish Data

Anonymous
Not applicable

Hi All

 

I'm looking for a solution to export surface finishes into Excel. We built an assembly and parts and their faces has different colors. Is that possible to read colored faces, merged them by color, read the total surface area and then export into Excel. That is for estimating purposes. I read the thread "Extracting Surface Finish Data" but I didn't find the piece of code that I need.

 

I appreciate your help

 

Eric

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

philippe.leefsma
Alumni
Alumni

Hi Eric,

 

If your faces have an overriden render style, then you can retrieve it using "Face.GetRenderStyle", then "Face.Evaluator.Area" gives you the area of each face. You cannot merge directly faces into a single one.

 

I hope it helps.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

Anonymous
Not applicable

Hi Philippe,

 

Do you have a sample of how to use them?

 

Thanks,

 

eric

0 Likes
Message 4 of 4

philippe.leefsma
Alumni
Alumni

Not do to specifically this. It is rather straighforward to iterate through the faces in a part or an assembly, you should be able to find example in the API Help Files. If you are not familliar with the API at all, I suggest you take a look at the overviews topics form the help files and on the manufacturing blog samples:

 

http://adndevblog.typepad.com/manufacturing/

 

Once you iterate through each face, you can use the "Face.Evaluator.Area" property.

 

Regards,

Philippe.



Philippe Leefsma
Developer Technical Services
Autodesk Developer Network

0 Likes