Detail lines from CAD layers

Hi, I have no idea why this goes wrong. Any help is appreciated.

Warning: CAD.DetailLinesFromCADLayers operation failed.
Method not found: ‘Autodesk.Revit.DB.NurbSpline Autodesk.Revit.DB.NurbSpline.Create(System.Collections.Generic.IList1<Autodesk.Revit.DB.XYZ>, System.Collections.Generic.IList1)’.

Hi @Sara.Voss which version of Revit are you using?

2018 @Thomas_Mahon

That’s a peculiar problem. The node thinks you are using a version of Revit older than 2017 and is calling the NurbSpline.Create() method from a library in BimorphNodes which supports backwards compatibility for older versions of Revit (2016 to be exact). As you are using 2018, (and therefore the Revit 2018 API) the older method cant be found (it was depreciated in 2017), which is why you are seeing that exception.

I’ve tested on Revit 2018.3, Dynamo 1.3.4 and BimorphNodes 2.5.1 and it works without issue. Are you testing with the above versions (v2. Dynamo should be fine too, as this problem is emanating from the Revit API so it shouldn’t make any difference).

Also, paste this code snippet into a Python node and run it in your problem file - it will tell you the version number via the API which the node uses to determine which API to use.

import clr

# Import DocumentManager and TransactionManager
clr.AddReference('RevitServices')
from RevitServices.Persistence import DocumentManager

# Import RevitAPI
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

import System

app = DocumentManager.Instance.CurrentUIApplication.Application

revitVersionNumber = System.Convert.ToInt16(app.VersionNumber)

OUT = revitVersionNumber
1 Like

my BimorphNode package was out of date. Thanks so much for your help! @Thomas_Mahon