Skip to content

Elementtype nodes - #2486

Merged
AndyDu1985 merged 3 commits into
DynamoDS:masterfrom
SHKnudsen:elementtype_nodes
Feb 10, 2020
Merged

Elementtype nodes#2486
AndyDu1985 merged 3 commits into
DynamoDS:masterfrom
SHKnudsen:elementtype_nodes

Conversation

@SHKnudsen

Copy link
Copy Markdown
Collaborator

NOTE: This PR fixes the build failure on the previous pr #2468

Purpose

This PR introduces an ElementType category to the Dynamo library, all other Dynamo types (WallType, FloorType, etc.) now inherits from ElementType which means a lot of duplicated code has been removed.

The following new nodes have been added:

ElementType nodes

ElementType

WallType nodes

WallType

FloorType nodes

FloorType

RoofType nodes

RoofType

All of the nodes have related unit and system tests, which has been run in RTF before submitting.

Unit Test

ElementType_UnitTest_030120

System Test

ElementType_SysytemTest_030120

Declarations

Check these if you believe they are true

  • The code base is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • Snapshot of UI changes, if any.

Reviewers

@AndyDu1985
@radumg
@mjkkirschner
@ZiyunShang

FYIs

Screenshots of the dynamo graphs for the system test

ElementType Properties test

CanGetElementTypeProperties

ElementType by name test

CanGetElementTypeByName

Duplicate ElementType test

CanDuplicateElementType

ElementType get preview image test

GetElementTypePreviewImage

WallType Properties test

CanGetWallTypeProperties

WallType Thermal Properties test

CanGetWallTypeThermalProperties

Check if FloorType is foundation slab test

CanCheckIfFloorTypeIsFoundationSlab

get FloorType structural material test

CanGetFloorTypeStructuralMaterial

FloorType thermal properties test

CanGetFloorTypeThermalProperties

RoofType thermal properties test

CanGetRoofTypeThermalProperties

* Element.GetSubComponents (#16)

* Element.GetSubComponents node with icons
* Element.GetSubComponents tests

* ElementTypeByName node

* ElementTypeByName tests

* Created ElemetType class

* made types inherit from ElementType

* node images + small fixes

* element and wall type tests

* Update WallTypeTests.cs

* ElementType tests

* WallType, FloorType and RoofType tests

* Revert sample DYN files

This reverts commit 38bd219.

* comment updates

* change var to int
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants