0

enter image description here

I have some AutoCAD layers (f.e. Cad1, Cad2) and I want to export them into feature class in a geodatabase (f.e. feature_class). Also I want to calculate field in "feature_class" for objects from CAD.

I have Feature class "GISLayer" with "Name" field in my geodatabase. I want to add to this feature objects from CAD. And populate field "Name" in feature class with identical value "CAD_line" for all new features,that have been added from CAD

I use:

arcpy.Append_management([Cad1,Cad2], feature_class, NO_TEST)

It's ok, but I have no idea, how to calculate the field for CAD objects using python. Any idea?

  • Please Edit the question to clarify what you are asking. If you're looking to add a field on the fly and populate it during Append with constants based on the source, I suggest you convert the CAD drawing to singleton feature classes, add the column, populate the column, and then append. – Vince Apr 26 at 17:51
  • Sorry for my English.I have Feature class "GISLayer" with "Name" field in my geodatabase. I want to add to this feature objects from CAD. And populate field "Name" in feature class with identical value "CAD_line" for all new features,that have been added from CAD – Lora Apr 26 at 19:15
  • @Vince, thank you very much, good idea ) – Lora Apr 29 at 8:21

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.