The RFI module

Examples :

# Runs Create RFI.
from RFI import CreateRFI
CreateRFI()

# Runs Create RFI, creates file named file_name.pdf.
from RFI import CreateRFI
CreateRFI("file_name.pdf")

# Runs Create RFI, prints keys = values and members.
from RFI import CreateRFI
dict = CreateRFI("file_name.pdf")
for key in dict:
    print(key, "=", dict[key])
print("Members in the picture =", dict["Members"])

Functions :

CreateRFI("arg") runs Create RFI and can return a dictionary. "arg" is optional, and can be a file name or a file path. When "arg" is a file name, the file is placed in the data files folder for your current version of the SDS2 program in which the parametric is Run .

The CreateRFI() dictionary :

(see the third example )

The dictionary keys are: ['Customer', 'Date', 'Description', 'Fi.e. 'From Company', 'Fabricator Job #', 'From Fax', 'From Person', 'From Phone', 'GUID' , 'Members', 'Project', 'Respond by', 'RFI #', 'Subject' , 'To Company', 'To Fax' 'To Person', 'To Phone']

Most of the dictionary keys return values the user has entered to the Create RFI window. These keys grab their values from other locations:

The dict["Members"] key returns the member numbers of the members that the user selected for inclusion in the picture.

The dict["GUID"] key returns the GUID (Global Unique Identifier) of the RFI, which is used when the user chooses to export to XML.

The dict["File"] key returns the complete file path to the PDF file that Create RFI generates.