Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Error when I follow code as Revit api labs

3 REPLIES 3
SOLVED
Reply
Message 1 of 4
napooil
489 Views, 3 Replies

Error when I follow code as Revit api labs

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

3 REPLIES 3
Message 2 of 4
TripleM-Dev.net
in reply to: napooil

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

Message 3 of 4
naveen.kumar.t
in reply to: napooil

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

Message 4 of 4
napooil
in reply to: naveen.kumar.t

Thank you for solution.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report