Skip to content

Commit 2c62def

Browse files
authored
1 parent 18b0bd4 commit 2c62def

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyrevitlib/pyrevit/revit/db/query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1178,7 +1178,7 @@ def get_rvt_link_doc_name(rvtlink_instance):
11781178
Returns:
11791179
str: The name of the Revit link document, without the file extension and any directory paths.
11801180
"""
1181-
return get_name(rvtlink_instance).split(" \ ")[0].split(".rvt")[0]
1181+
return get_name(rvtlink_instance).split("\\")[0].split(".rvt")[0]
11821182

11831183

11841184
def get_rvt_link_instance_name(rvtlink_instance=None):

0 commit comments

Comments
 (0)