ArcFM and Python Scripting

المشرف العام

Administrator
طاقم الإدارة
I'm trying to add a feature class in ArcMap 10.2.1 that is an ArcFM Feature Class by using a python script.

I am working inside an ArcFM session which is required to edit the layer I am working with, however it is complaining about me not being in a session...

This is my script:

import arcpy # fc is a point feature class # fc = r"Database Connections\DATABASE.sde\ACE.Electric_Network_Features\ACE.Transformer" cursor = arcpy.da.InsertCursor(fc, ["SHAPE@XY"]) xy = (22000,99000) Here is my exception:

Runtime error Traceback (most recent call last): File "", line 9, in RuntimeError: Objects in this class cannot be updated outside an edit session [ACE.Transformer] Am I missing a step? I've tried looking up how to make an edit session for ArcFM in code but I have not been successful in finding this information...



أكثر...
 
أعلى