Select to view content in your preferred language

[BUG/PSA] Missing Definition in the CIM module?

41
0
yesterday
HaydenWelch
MVP Regular Contributor

I'm going through the arcpy.cim module right now and trying to disambiguate and re-map some of the relationships to make linting cim scripts easier. I also want to be able to more easily use a builder pattern to update components in layer and layout definitions. To do this, I write a simple script that loads an initialized all CIM classes in the module to extract their types and string type references. However there seems to be one definition that is totally busted!

class CIMKGTimeWindow():
    """
      Defines a window of time.
    """
    def __init__(self, *args, **Kwargs):
        self.minTime = TimestampOffset
        self.maxTime = TimestampOffset

 This class is part of the CIMKnowledgeGraph module and is documented once here: 

https://github.com/Esri/arcgis-pro-sdk/wiki/ProConcepts-Knowledge-Graph

But the `TimestampOffset` default values for the min and max times are undefined. 

HaydenWelch_0-1767108554307.png

This is the only place in the CIM module that `TimestampOffset` appears. I'm assuming it's meant to be an int? 

0 Kudos
0 Replies