dedevo
Mechanical
- Dec 3, 2010
- 54
IModelDoc2.GetTitle
When issued in drawings, it returns the sheet info:
ie. CW201AM - Sheet1
I want to rip just the filename:
CW201AM.slddrw -> CW201AM
I am making a macro to SaveAs PDF and don't want to have to go back through later and strip out all of the "useless" info.
I was thinking of writing some code that would interpret where the first space is, but I don't like that idea incase my drawings do have a space in the filename.
Is there another function I can call?
Devon Murray, EIT [Mechanical]
Solidworks 2011 SP 2.0
When issued in drawings, it returns the sheet info:
ie. CW201AM - Sheet1
I want to rip just the filename:
CW201AM.slddrw -> CW201AM
I am making a macro to SaveAs PDF and don't want to have to go back through later and strip out all of the "useless" info.
I was thinking of writing some code that would interpret where the first space is, but I don't like that idea incase my drawings do have a space in the filename.
Is there another function I can call?
Devon Murray, EIT [Mechanical]
Solidworks 2011 SP 2.0