I am working on a tool that requires the use of additional property sets. I have made a graph that creates them automatically but they do not show until AECPSDAUTOATTACH has been turned to ON.
I want to make this process as automatic as possible, is there a way to turn AECPSDAUTOATTACH to ON using dynamo?
# Load the Python Standard and DesignScript Libraries
import clr
# Add Assemblies for AutoCAD and Civil3D
clr.AddReference('AcMgd')
clr.AddReference('AcCoreMgd')
clr.AddReference('AcDbMgd')
clr.AddReference('AecBaseMgd')
clr.AddReference('AecPropDataMgd')
clr.AddReference('AeccDbMgd')
# Import references from AutoCAD
from Autodesk.AutoCAD.Runtime import *
from Autodesk.AutoCAD.ApplicationServices import *
from Autodesk.AutoCAD.EditorInput import *
from Autodesk.AutoCAD.DatabaseServices import *
from Autodesk.AutoCAD.Geometry import *
# Import references from Civil3D
from Autodesk.Civil.ApplicationServices import *
from Autodesk.Civil.DatabaseServices import *
import System
from System import *
app = System.Runtime.InteropServices.Marshal.GetActiveObject("Autocad.Application")
adoc = app.ActiveDocument
adoc.SendCommand("AECPSDAUTOATTACH\nON\n")
OUT = str("AECPSDAUTOATTACH command sent")