Not able to get the list of local installed printer via dynamo node

Hi All

I have installed multiple printers, as shown in the attached image, but I cannot find the list of all local printers with the dynamo node.

Please refer to the attached image.

Thanks in advance
Ravi

You’re going to have to show us what that node is doing. It’s not an out of the box node and we don’t even know what package it’s from. Copy out the contents of the node and paste them back into the graph to run there. Deal with any warnings or errors and see what you get. Share the outputs (and any python code) with us here and we might be able to help.

Hi @Nick_Boyts
This node is from ArchiLab.
I copied the Python code from the node, and after running, it is showing this warning
Please refer to the attached image.

What’s on and around line 48?

Be sure you’re using the right version of Archi-Lab. Follw the link for more info, but you need to match the last two digits of the package version number to your Revit version.

Hi @jacob.small

Thanks for the suggestion , Do I need to install Archi-lab Version as selected below

Please take a look at the custom node code at line number 48

Thanks in advance
Ravi

It is based on the Revit version, not Dynamo.

Hi @jacob.small

I have installed the following version for Revit 2022.1 ,

Even I am getting same error

You’re a good bit out of date on the archi-lab. Latest is 2023.213.1722, so two versions behind for 2022 builds.

This should give you list of Printers.

import clr
clr.AddReference('System.Drawing')

import System
from System import Drawing

OUT = list(Drawing.Printing.PrinterSettings.InstalledPrinters)
3 Likes

Hi @jacob.small
I also tried this version but get same error

Hi @Sujan

Thanks it work
image