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

For 2. all that is required is to loop through the sheetformats collection in the drawing document, get the sheetformat object and use the copy method.

See Links to the API help embeded

Syntax

DrawingDocument.SheetFormats() As SheetFormats

 

Syntax

SheetFormat.CopyToTargetDocument As DrawingDocument ) As SheetFormat

 

For 1. Loop through each object from the drawing document and try and delete. Use try catch statement.  It will not delete anything that is currently in use in the sheet. 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan