In the course of learning and debugging, I wanted to do something simple - create a visible line (an element in the database or simply a visible mark) from a known point to let me see if I'd got the right position in the drawing. ModelLine seems to fit the bill.
1) Why on earth do I need a sketch plane? Why does inserting a visible line from one 3D point to another - which gives every single piece of information you need to create the object and was perfectly good enough in AutoCAD - require anything else? How do I *use* sketch planes? Where should the ModelLine be in relation to the plane's origin and normal?
2) The example code given in the WikiHelp (http://wikihelp.autodesk.com/Revit/enu/2013/Help/00006-API_Developer's_Guide/0074-Revit_Ge74/0114-Sk...) for creating various ModelCurve types does *not* work - it throws an exception saying 'curve must be in the plane'. So attempting to figure it out from there was a complete failure.
3) Is WikiHelp the only source of help on the API? Is there no API help file like arxref.chm for AutoCAD's ObjectARX classes, or acad_mgd.chm for .NET? I'm finding the Wiki very slow to search, it often bombs out (ERR_EMPTY_RESPONSE), and it is very hard to find relevant and useful information in there - many pages in the API guide side of things talk about things from the UI side only, and don't have code samples. Is there a reference on the classes and their methods?
I should clarify that I'm testing with Visual Studio 2010 Pro and Revit Architecture 2013.
Solved! Go to Solution.