Message 1 of 5
Not applicable
05-10-2017
12:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
I changed the names of the sheets to part numbers using the rules posted on the forum.Now I would like to add extra text "NOT PRINT" to name in selected sheets using the assembly parameters. I can not write a code that reads the existing name of the sheet. Where do I make a mistake? I will be grateful for your help.
Dim oDoc As DrawingDocument
oDoc = ThisApplication.ActiveDocument
oSheets=ThisDrawing.Document.Sheets
Dim oSheet As Sheet
Dim sSheetName As String
If Parameter("assemble.iam.item1") = False Then
oSheets.Item(30).Activate
mSheetName = oSheet.Name
ActiveSheet.Sheet.Name = mSheetName & "NOT PRINT"
Else
'do nothing
End If
If Parameter("assemble.iam.item2") = False Then
oSheets.Item(31).Activate
mSheetName = oSheet.Name
ActiveSheet.Sheet.Name = mSheetName & "NOT PRINT"
Else
'do nothing
End If
Solved! Go to Solution.