Batch PDF ignoring one file

Batch PDF ignoring one file

Dianna_Harding
Participant Participant
132 Views
2 Replies
Message 1 of 3

Batch PDF ignoring one file

Dianna_Harding
Participant
Participant

Been using the batch PDF code for years without issues, until today. It doesn't recognize one drawing even though I can pull it up and manually create a PDF. Says No top level assembly drawing found.

 

Would there be something else making this not recognize the .idw?

 

Files attached

0 Likes
Accepted solutions (1)
133 Views
2 Replies
Replies (2)
Message 2 of 3

A.Acheson
Mentor
Mentor
Accepted solution

Hi @Dianna_Harding 

Can you put a message box and determine if the filepath is correct? Sometimes it won't return the filepath your expecting. 

 

This is the line of code that brings up that specific message. You could put this directly into the assembly file/part file the drawing is attached too, run it and and see does it open the file. 

Try
		oAsmDrawingDoc = ThisApplication.Documents.Open(ThisDoc.ChangeExtension(".idw"), False)
	Catch
		MessageBox.Show("No top level assembly drawing found.", "Missing Drawing", MessageBoxButtons.OK)				
	End Try

 

If this solved a problem, please click (accept) as solution.‌‌‌‌
Or if this helped you, please, click (like)‌‌
Regards
Alan
Message 3 of 3

Dianna_Harding
Participant
Participant

The parent assy was referencing the wrong model. I should've thought of that, but long days happen. Thank you!