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)
?
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”.
hmmm… there is still no name
is there a missing library
import clr
clr.AddReference(“RevitServices”)
import RevitServices
from RevitServices.Persistence import DocumentManager
doc = DocumentManager.Instance.CurrentDBDocument
x = doc.Title
OUT = x
There was a typo :
x = doc.Title
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