IfcDoc.DocumentationISO.FormatEntityUsage C# (CSharp) Method

FormatEntityUsage() private static method

private static FormatEntityUsage ( DocProject docProject, DocEntity entity, DocConceptRoot docRoot, DocTemplateUsage eachusage, DocObject>.Dictionary mapEntity, string>.Dictionary mapSchema, List listFigures, List listTables, bool>.Dictionary included, StringBuilder sb, string path, DocPublication docPublication ) : void
docProject DocProject
entity DocEntity
docRoot DocConceptRoot
eachusage DocTemplateUsage
mapEntity DocObject>.Dictionary
mapSchema string>.Dictionary
listFigures List
listTables List
included bool>.Dictionary
sb StringBuilder
path string
docPublication DocPublication
return void
        private static void FormatEntityUsage(DocProject docProject, DocEntity entity, DocConceptRoot docRoot, DocTemplateUsage eachusage, Dictionary<string, DocObject> mapEntity, Dictionary<string, string> mapSchema, List<ContentRef> listFigures, List<ContentRef> listTables, Dictionary<DocObject, bool> included, StringBuilder sb, string path, DocPublication docPublication)
        {
            if (eachusage.Definition != null)
            {
                if (included == null || included.ContainsKey(eachusage.Definition))
                {
                    if (eachusage.Documentation != null)
                    {
                        eachusage.Documentation = UpdateNumbering(eachusage.Documentation, listFigures, listTables, entity);
                    }

                    string eachtext = FormatConcept(docProject, entity, docRoot, eachusage, mapEntity, mapSchema, listFigures, listTables, path, docPublication);
                    sb.Append(eachtext);
                    sb.AppendLine();

                    if (eachusage.Concepts.Count > 0)
                    {
                        sb.AppendLine("<details>");
                        sb.AppendLine("<summary>Concept alternates</summary>");

                        foreach (DocTemplateUsage innerusage in eachusage.Concepts)
                        {
                            FormatEntityUsage(docProject, entity, docRoot, innerusage, mapEntity, mapSchema, listFigures, listTables, included, sb, path, docPublication);
                        }
                        sb.AppendLine("</details>");
                    }
                }
            }
        }