Skip to content

Commit

Permalink
Merge pull request #2475 from tay0thman/patch-12
Browse files Browse the repository at this point in the history
Update cad_audit_check.py
  • Loading branch information
jmcouffin authored Dec 5, 2024
2 parents 5a81c1a + 3340c8c commit dd1666e
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 dd1666e

Please sign in to comment.