Node Error in View input?

Hi,

I’m trying to get some lines in from an Autocad File and turn them into detail lines for Revit

Here is the Website I’m using from reference

Here is my Script


Here is the Error Zoomed in

The input for the view is “Element”

I feel like I’m being silly here and hopefully an easy view, any help would be appreciated.

Edit: I have also tried using the view node with the same issues

Thanks

There are 2 issues:

  1. The NewLineStyles node is partially built which means it is currently outputting null (nothing). Using that as the input to the DetailLinesFromCADLayers lineStyleMap input is therefore invalid hence the error.

  2. Issue 2 will arise once you fix issue 1 as the NewLineStyles node outputs GraphicStyle objects but the lineStyleMap input takes strings (text) so you will need to connect the GraphicStyle output into an OOTB Element.Name node to get the name(s) of the line styles as strings first.

There might also be a dependency issue with your workflow too as the DetailLinesFromCADLayers node will execute while the new line style is also executing and Revit might not register the change, creating a ‘cyclic dependency’. Since the NewLineStyles output forms an input to this node however, Dynamos VM should be able to handle this scenario. If you do get errors create the new line style first, then run the DetailLinesFromCADLayers after.

1 Like

Hi @Joe.ashton

Some of your inputs are wrong at “CAD.DetailLinesFromCADLayers”.Make sure your connecting proper inputs.

2 Likes

Also, your importInstance input is invalid. You need to connect the Select Model Element node to this input. CADLayerNames outputs strings. Visit my YouTube channel for guidance:

1 Like

Thanks, I think I was having a dumb moment, wanted to finish it before I finished work and looked over those mistakes.

Thanks for the help guys

Joe