Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
bshbsh
in reply to: eric.frissell26WKQ

Next
    For Each Item In InvDoc.BorderDefinitions
        If Item.IsReferenced = False Then Item.Delete

This means that if the item is referenced by your original document (the one you intend to change) that it doesn't delete the information?

 yes. but this code is there to prevent error messages, because you can not delete referenced blocks.

 


If I set this to True would it delete the information/border/titleblock that the original document is using?

no, most likely it will just cause errors. besides, even if it would delete them, it would not delete the non-referenced stuff.

 


Secondly when I run this script it's somehow copying one titleblock 6 times and calls it copy of (titleblock name) then copy of copy of (titleblock name).


then delete or comment out the last for-next loop, as the remarks specifically warns you what is going to happen if you do that... did you not read them?