IfcDoc.FormEdit.InsertPrimitive C# (CSharp) Method

InsertPrimitive() private method

private InsertPrimitive ( string type ) : void
type string
return void
        private void InsertPrimitive(string type)
        {
            TreeNode tnParent = this.treeView.SelectedNode;
            DocSchema docSchema = (DocSchema)tnParent.Tag;
            DocPrimitive docPrimitive = new DocPrimitive();
            InitDefinition(docPrimitive);
            docPrimitive.Name = type;
            docSchema.Primitives.Add(docPrimitive);
            this.treeView.SelectedNode = this.LoadNode(tnParent.Nodes[8], docPrimitive, docPrimitive.ToString(), false);
        }
FormEdit