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

@WCrihfield No worries, I'm glad you made that other post because it will simplify my code a bit more with the switch extension function. I was not aware of that and as you can see below, I was working a lot harder than I was needing to. Thank for your help.

 

'[Gets drawing file name from assembly/part filename
FullFileName = oAssyDoc.FullFileName
'strips path
FileName = Right(FullFileName, Len(FullFileName) -InStrRev(FullFileName, "\"))
'strips extension
Name = Left(FileName, Len(FileName) -4)
'adds drawing path and extension
DrawingFileName = DrawingPath & Name & ".idw"
']