There isnt a native way of doing that but if you're populating your titleblock by code, you can use these
Get the sheet name without the number
Private Function GetSheetName(ByVal SheetName As String, ByVal Splitter As String) As String
Return SheetName.Substring(0, SheetName.IndexOf(Splitter))
End Function
to use
Dim GetNameOnly As String = GetSheetName(oSheet.Name, ":")
Get the sheet number without the name
Private Shared Function GetSheetNumber(ByVal SheetName As String, ByVal Splitter as string) As String
Return SheetName.Substring((SheetName.IndexOf(Splitter) + 1))
End Function
To use
Dim GetNumberOnly As String = GetSheetNumber(oSheet.Name, ":")
or
Dim GetNumberOnly As Integer = Convert.ToInt32(GetSheetNumber(oSheet.Name, ":"))
You could also call them inline in your current method like this but Functions are better because they are sharable with other Methods
Dim GetNumber As Integer = Convert.ToInt32(oSheet.Name.Substring((oSheet.Name.IndexOf(":") + 1))
Hope that helps
Nacho
Automation & Design Engineer
Inventor automation Programmer (C#, VB.Net / iLogic)
Furniture, Sheet Metal, Structural, Metal fab, Tradeshow, Fabrication, CNC

Did you find this post helpful? Feel free to Like this post.
Did your question get successfully answered? Then click on the ACCEPT SOLUTION button.