Skip to content

Commit

Permalink
Update cad_audit_check.py
Browse files Browse the repository at this point in the history
Fixed Syntax Errors. Further development is proposed on a separate effort to make this tool ACC / Desktop Connector Friendly.

Potentially Adding a pyrevit lib for managing ExternalResources
  • Loading branch information
tay0thman authored Dec 4, 2024
1 parent 6e5a8c0 commit 7f8acdb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions extensions/pyRevitTools.extension/checks/cad_audit_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ def value(self):
def get_cad_site(cad_inst):
""" A CAD's location site cannot be got from the Shared Site parameter
cad_inst.Name returns the site name with a 'location' prefix (language-specific, eg 'emplacement' in French)"""
return = cad_inst.Name.replace("location", "-")
return cad_inst.Name.replace("location", "-")


def get_user_input():
Expand Down Expand Up @@ -140,7 +140,7 @@ def check_model(doc, output):

# Summary output section:
link_to_view = output.linkify(ac_view.Id, title="Show the view")
print("{} CAD instances found.".format(len(cad_instances))
print("{} CAD instances found.".format(len(cad_instances)))
if coll_mode: # if active view only
summary_msg = "the active view ('{}') {}".format(ac_view.Name, link_to_view)
else:
Expand Down

0 comments on commit 7f8acdb

Please sign in to comment.