Exporting object data to SDF/SHP

@j.boonen I’m not sure why it’s like that, it doesn’t do that on my end. Anyway, here is the code, it’s just a few lines to send a string to the command line.

import System
from System import *

output = "Error"
inputList = IN[0]

app = System.Runtime.InteropServices.Marshal.GetActiveObject("Autocad.Application")
adoc = app.ActiveDocument
for i in inputList:
	adoc.SendCommand(i)

OUT = "Success"
2 Likes