BHoM / LifeCycleAssessment_Toolkit

GNU Lesser General Public License v3.0
22 stars 5 forks source link

Dynamo : 'Object reference is not set to an Instance of an Object' 'EvaluateEnvironmentalProductDeclaration' 'Life Cycle Assessment Phase' #271

Closed MarkAckerley closed 2 years ago

MarkAckerley commented 2 years ago

Hi,

I'm working in Dynamo 2.3 and my EvaluateEnvironmentalProductDeclaration node has a 'Phase' input which I haven't seen elsewhere.

I have had a try at guessing how it should be inputted (I am happy with a placeholder value just to get this working) but I have had no success.

My warning states 'Specified cast is not valid' so clearly creating a Type of 'life cycle assessment phase' was wrong.

Unfortunately I have only basic knowledge of BHoM and do not understand how I should 'document phases of life within EPDs' to make this work.

Any advice would be appreciated.

Kind regards,

Mark

image

image

MarkAckerley commented 2 years ago

So seemingly, I need the Dynamo equivalent of 'Merge' image It does not appear to be in 'Query' or 'Modify' or anything in oM... The Dynamo 'List.Create' doesn't help either.

Any assistance would be appreciated.

Kind regards,

Mark

FraserGreenroyd commented 2 years ago

Hi @MarkAckerley

The merge component is a Grasshopper native component. so won't exist within any BHoM nodes unfortunately.

@kayleighhoude @michaelhoehn @pawelbaran do any of you know of a similar component for Dynamo specifically?

MarkAckerley commented 2 years ago

Hi Fraser, thanks for the reply...

List.Create is probably it's equivalent, so the problem is likey to be the 'CreateType' 'LifeCycleAssessmentPhase' node.

So close!

Cheers,

Mark

EDIT : Aha! It is an enum... A different warning, but progress! image

EDIT2: This looks pretty similar to the example... image

MarkAckerley commented 2 years ago

If anyone had any thoughts on why the 'Object reference is not set to an Instance of an Object', I would be very grateful.

See attached files, Revit 2020, Dynamo 2.3.

Kind regards,

Mark

BHoM-01.zip