Document.FamilyManager can only be used in the Revit Family Editor

1,038 views
Skip to first unread message

francesc...@gmail.com

unread,
Jul 14, 2015, 12:17:16 PM7/14/15
to revitpyt...@googlegroups.com
Hi all,
I am trying to use the Revit Python Shell following the tutorial at http://wiki.theprovingground.org/revit-api-py-family

However, I am getting the following error:

    >>> doc.FamilyManager.Parameters
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    Exception: Document.FamilyManager can only be used in the Revit Family Editor.

I am using Autodesk Revit 2015 on Windows 8.1.

Thanks,
Francesco

Daren Thomas

unread,
Jul 14, 2015, 1:31:20 PM7/14/15
to revitpyt...@googlegroups.com
I think that means you need to open up a Revit Family Document for editing before you can use that part of the API. Do you have a normal Project file open?

Best,
Daren

--
You received this message because you are subscribed to the Google Groups "RevitPythonShell" group.
To unsubscribe from this group and stop receiving emails from it, send an email to revitpythonshe...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

francesc...@gmail.com

unread,
Jul 15, 2015, 4:41:49 AM7/15/15
to revitpyt...@googlegroups.com
Yes, I think it is open, see the attached screenshot. How can I open it?



Thanks

Daren Thomas

unread,
Jul 15, 2015, 5:26:39 AM7/15/15
to revitpyt...@googlegroups.com
Francesco,

to open the family editor, right click the family you want to edit in a view (e.g. click a window in your model) and choose "Edit Family" in the context menu. Or, you can open the family document itself.

Once you are in the family editor mode of Revit, the `doc.FamilyManager` API works.

Best,
Daren
Reply all
Reply to author
Forward
0 new messages