Get name of current document(BIM360), how?

Hello,

I get the path very easy! how can i get just the Name?

doc = DocumentManager.Instance.CurrentDBDocument
x = Document.PathName.GetValue(doc)
OUT = x

Is there no node like .GetName(doc)

Can I UnwrapElement(doc)?

Hi @Draxl_Andreas,

doc = DocumentManager.Instance.CurrentDBDocument
x = doc.Title
OUT = x

The correct property for the name of the document is “Title”.

1 Like

2020-09-02_14h41_09

hmmm… there is still no name

is there a missing library
2020-09-02_14h42_14

import clr
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager

doc = DocumentManager.Instance.CurrentDBDocument
x = doc.Title
OUT = x

1 Like

There was a typo :

x = doc.Title

2 Likes

just “dotting” it out… …how can i get the “vocabulary” for “dotting” out a document or element?

Is there a dictionary? is this a python topic or Revit API?

KR

Andreas

There is the API :
https://apidocs.co/apps/revit/2020/6cbb045c-a145-04f2-0a26-1ac9285c4d17.htm

1 Like