Error when I follow code as Revit api labs

Error when I follow code as Revit api labs

napooil
Advocate Advocate
645 Views
3 Replies
Message 1 of 4

Error when I follow code as Revit api labs

napooil
Advocate
Advocate

Hi,I am new Revitapi.

I have follow code as Revitapi labs in subject Create Rectangular Column and when i run code in revit.

It's show error as picture.

How i can solve this problem?

Thank you.Q1.jpgQ2.jpg

0 Likes
Accepted solutions (2)
646 Views
3 Replies
Replies (3)
Message 2 of 4

TripleM-Dev.net
Advisor
Advisor
Accepted solution

Looks it can't find the reference plane, maybe it's named.

From where are you calling the command,  should be from the Metric Column.rft template

 

- Michel

0 Likes
Message 3 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support
Accepted solution

Hi @napooil ,

I worked recently on this sample and found no error.

1)First, check whether you are working on the proper family template file (i.e)Metric Column.rft

2)The error message says that the errors are present in line numbers 187 and 56

3)Go to line number 187 and inspect

4)Attach the Debugger to the method (findElement(Type, String)) and start debugging so that you will find what is causing this error

 

If you still can't figure out please attach the screenshot of the FindElement method.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 4 of 4

napooil
Advocate
Advocate

Thank you for solution.

0 Likes