Skip to content

Commit e825186

Browse files
IsakNaslundBhFraser Greenroyd
authored andcommitted
Adding template for adding a new BHoMObject
1 parent 9838bcc commit e825186

File tree

3 files changed

+68
-0
lines changed

3 files changed

+68
-0
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
/*
2+
* This file is part of the Buildings and Habitats object Model (BHoM)
3+
* Copyright (c) 2015 - $year$, the respective contributors. All rights reserved.
4+
*
5+
* Each contributor holds copyright over their respective contributions.
6+
* The project versioning (Git) records all such contribution source information.
7+
*
8+
*
9+
* The BHoM is free software: you can redistribute it and/or modify
10+
* it under the terms of the GNU Lesser General Public License as published by
11+
* the Free Software Foundation, either version 3.0 of the License, or
12+
* (at your option) any later version.
13+
*
14+
* The BHoM is distributed in the hope that it will be useful,
15+
* but WITHOUT ANY WARRANTY; without even the implied warranty of
16+
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17+
* GNU Lesser General Public License for more details.
18+
*
19+
* You should have received a copy of the GNU Lesser General Public License
20+
* along with this code. If not, see <https://www.gnu.org/licenses/lgpl-3.0.html>.
21+
*/
22+
23+
using System;
24+
using System.Collections.Generic;
25+
using System.ComponentModel;
26+
using BH.oM.Base;
27+
using BH.oM.Quantities.Attributes;
28+
29+
namespace $rootnamespace$
30+
{
31+
[Description("")]
32+
public class $safeitemname$ : BHoMObject
33+
{
34+
/***************************************************/
35+
/**** Properties ****/
36+
/***************************************************/
37+
38+
[Description("")]
39+
public virtual string Property { get; set; }
40+
41+
42+
/***************************************************/
43+
44+
}
45+
}
46+
47+
101 KB
Binary file not shown.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<VSTemplate Version="3.0.0" xmlns="http://schemas.microsoft.com/developer/vstemplate/2005" Type="Item">
2+
<TemplateData>
3+
<DefaultName>BHoMObjectTemplate.cs</DefaultName>
4+
<Name>BHoMObject - Add a new class</Name>
5+
<Description>Adds a BHoMObject to your oM project.</Description>
6+
<ProjectType>CSharp</ProjectType>
7+
<SortOrder>10</SortOrder>
8+
<Icon>CreateBHoM.ico</Icon>
9+
</TemplateData>
10+
<TemplateContent>
11+
<References>
12+
<Reference>
13+
<Assembly>BHoM</Assembly>
14+
</Reference>
15+
<Reference>
16+
<Assembly>Quantities_oM</Assembly>
17+
</Reference>
18+
</References>
19+
<ProjectItem SubType="" TargetFileName="$fileinputname$.cs" ReplaceParameters="true">BHoMObjectTemplate.cs</ProjectItem>
20+
</TemplateContent>
21+
</VSTemplate>

0 commit comments

Comments
 (0)