[Save Document in the folder]

This is a script I made to save each saved object in path1.
But I’m getting an error, please tell me why, please ㅠㅠ

Can you share what error you are getting?

image
thank you

image

Okay so the problem is most likely in Line 16 and 18. You are trying to Add “\” as a string but Python cannot handle the backslash in quotes.

A nicer way is to use the Path.Combine Function.

This way you avoid the “\”

Also. if you want to do this for more then 1 file you need to use a for-loop

See the example below for multiple files

3 Likes

ㅠ but i got a error

Warning: IronPythonEvaluator.EvaluateIronPythonScript operation failed.
Traceback (most recent call last):
File “”, line 13, in
NameError: name ‘IsFamilyDocument’ is not defined

@Joelmick

Yeah I have only provided “example code”. Study how it works and tailor it to your graph.

The error is saying you are missing a variable called “IsFamilyDocument” I put that in my sample code because you already had that in you question code.

Never just copy code

1 Like