How, can I create dimensions using arcpy
I was able to create polygons for example, but when it comes to dimensions I can't figure the right inputs to the class
Also, I found out that there is a class called arcpy. Dimension but it looks like it's empty compari g to polygon, polyline or point class
Geometry construction is found in the help topics
and there are links for Polygon, polyline etc.
What type of "dimension" are you referring to if it is no a spatial dimension? time?
I am referring to the dimension feature class, I have a dimension layer and I want to add more dimensions(aligned dimension for example) to my map using arcpy
I use the following code to add polygons to my feature dataset but I couldn't do the same to the dimension layer using arcpy.Dimension class:
import arcpy # Create a polygon geometry array = arcpy.Array([arcpy.Point(0, 0), arcpy.Point(0, 1000), arcpy.Point(20, 900) ]) polygon = arcpy.Polygon(array) # Open an InsertCursor and insert the new geometry cursor = arcpy.da.InsertCursor(r'C:\Users\kejla\Documents\ArcGIS\Projects\Gaza_Municapility\Default.gdb\test_polygon', ['SHAPE@']) cursor.insertRow([polygon]) # Delete cursor object del cursor