Message 1 of 4
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I have an addin that, amongst other things, adds and sets a custom ID parameter to family files.
This has been working fine in 2012 and 2013 but now I'm trying it in 2014 I'm getting the above error.
Dim bin As Autodesk.Revit.DB.Binding = m_app.Create.NewTypeBinding(catSet) If Not m_doc.ParameterBindings.Insert(def, bin) Then ' ERROR HERE
m_doc is my family document
def is my parameter definition
catSet is a category set containing the category that I'm trying to add the parameter to.
I'll admit that I'm no Revit API expert so I may be going about this the wrong way but as I've said, it seems to work OK for 2012 and 2013. Is there something else I need to do for 2014?
Thanks in advance.
Paul
Solved! Go to Solution.