How to get family size?

How to get family size?

dhanait_ajay13
Enthusiast Enthusiast
716 Views
2 Replies
Message 1 of 3

How to get family size?

dhanait_ajay13
Enthusiast
Enthusiast

if i place the loadable , in-place and default family and now i want get the size of each family

0 Likes
717 Views
2 Replies
Replies (2)
Message 2 of 3

daniel_tarta
Community Visitor
Community Visitor

As far as I know you cannot get the family size of an in-place family. To get the size of component families you need to export them to RFA's then get their size:

 

Document oFamDoc = oDocument.EditFamily(oFamily);

 

        public static double FileSizeMBsGet(string strFilePathName)

        {

            try

            {

                FileInfo fInfo = new FileInfo(strFilePathName);

                {

                    return Math.Round(Convert.ToDouble(fInfo.Length / 1024) / 1000, 2);

                }

            }

            catch

            {

                return 0;

            }

        }

0 Likes
Message 3 of 3

Mohamed_Arshad
Advisor
Advisor

HI @dhanait_ajay13 
Can I know what size you exactly needed from the family? Needed Family file size or any other?


Mohamed Arshad K
Software Developer (CAD & BIM)

0 Likes