Sheet Count

Sheet Count

Anonymous
Not applicable
1,071 Views
3 Replies
Message 1 of 4

Sheet Count

Anonymous
Not applicable

Hi All

 

I have produced a .dwg template, all set up with title blocks and sheet formats etc etc.

 

The only issue I have is when the template is opened 'Sheet:1' is always at the bottom of the column (See attached) so the sheet count takes this as sheet one. When a draughtsman inserts his own Sheet Format the sheet count immediatley goes to 2/2 whereas is should read 1/1.

 

Is there anyway of removing this 'Sheet:1'?

 

Any help appreciated

 

Gareth

0 Likes
Accepted solutions (1)
1,072 Views
3 Replies
Replies (3)
Message 2 of 4

ekinsb
Alumni
Alumni

Hi Gareth,

 

I don't believe it's possible to delete that last sheet.  Inventor requires a drawing to always have at least one sheet.

 

You could possibly get the result you want using some kind of API solution that would automatically delete the original sheet when a new sheet is added.


Brian Ekins
Inventor and Fusion 360 API Expert
Mod the Machine blog
0 Likes
Message 3 of 4

jdkriek
Advisor
Advisor
Accepted solution

Wrote this real quick, but the following iLogic should do the trick. In your template double click on the sheet and rename it to "remove". When you get done it should read "remove:1" instead of "sheet:1". Set the event trigger to OnSave, so when the drawing is saved it will remove the first sheet named this and leave the rest alone. Note there needs to be another sheet present in order to delete the first sheet and we don't want to keep deleting the first sheet all the time so we name it something specific via the template.

 

Dim oApp As Application: oApp = ThisApplication
Dim oDoc As Inventor.DrawingDocument: oDoc = oApp.ActiveDocument
Dim oSheets As Sheets: oSheets = oDoc.Sheets
Try 
	Dim oSheet As Sheet: oSheet = oSheets.Item("remove:1")
	oSheet.Activate
	oSheet.Delete
Catch
'Do nothing, the sheet is gone.
End Try
Jonathan D. Kriek
MFG Solutions Engineer
KETIV Technologies, Inc.


0 Likes
Message 4 of 4

Anonymous
Not applicable

Many Thanks for the reply, I will try and implement it later.

 

Thanks for replying

 

Gareth

0 Likes