Python script CAD handle to ObjectByHandle

Hi … I am using Python Script to read a CAD object. I can get the Object Handle - but that’s an object not a string. The Dnamo Node ObjectByHandle needs a string. How do I get the string in the Python Script (from Database Transaction) for the ObjectByHandle node?

Hi,
have you tried the String from Object node or strhandle = str(handle)?

vp-client-biind.dwg (2.8 MB)
vpgtext.dyn (45.9 KB)

now I get error not set to instance of object … : ( … I am trying to run before I can walk … I found that the CIVIL3DTOOKIT node Layout.GetViewportByPoint does not support irregular boundary paper space viewports … so … I tried to be clever with script to get around the problem … and … no success so far …

Hi @kbzawork ,

Could you maybe explain further what you are trying to achieve with your script?