{
  "Uuid": "36a92089-7541-4c77-bb2d-4e1826974123",
  "IsCustomNode": false,
  "Description": null,
  "Name": "CoordenadasGEORef_lgh",
  "ElementResolver": {
    "ResolutionMap": {}
  },
  "Inputs": [
    {
      "Id": "604816149e744e12bdba22392ef1cbe7",
      "Name": "elevation",
      "Type": "number",
      "Value": "949.53",
      "NumberType": "Double",
      "Description": "Creates a number."
    },
    {
      "Id": "1b5c9020f0234d43871ccf1ffa36af2c",
      "Name": "norte/sur RefOrigen",
      "Type": "number",
      "Value": "-71.43",
      "MaximumValue": 500.0,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "NumberType": "Double",
      "Description": "A slider that produces numeric values."
    },
    {
      "Id": "fba703a4a7a54f6a86d26fdbb297acea",
      "Name": "este/oeste RefOrigen",
      "Type": "number",
      "Value": "-128.68",
      "MaximumValue": 500.0,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "NumberType": "Double",
      "Description": "A slider that produces numeric values."
    },
    {
      "Id": "7bb13897819f46fab1d175a8ab8ad64c",
      "Name": "norte/sur GEORef",
      "Type": "number",
      "Value": "885142.584",
      "MaximumValue": 885142.584,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "NumberType": "Double",
      "Description": "A slider that produces numeric values."
    },
    {
      "Id": "1c11a91d15314be7877dabae97ec5025",
      "Name": "este/oeste GEORef",
      "Type": "number",
      "Value": "1072573.578",
      "MaximumValue": 1072573.678,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "NumberType": "Double",
      "Description": "A slider that produces numeric values."
    }
  ],
  "Outputs": [],
  "Nodes": [
    {
      "ConcreteType": "PythonNodeModels.PythonNode, PythonNodeModels",
      "NodeType": "PythonScriptNode",
      "Code": "import clr\r\n\r\nclr.AddReference('RevitAPI')\r\nfrom Autodesk.Revit.DB import *\r\nfrom Autodesk.Revit.DB.Architecture import*\r\nfrom Autodesk.Revit.DB.Structure import *\r\n\r\nclr.AddReference('RevitAPIUI')\r\nfrom Autodesk.Revit.UI import *\r\n\r\nclr.AddReference('System')\r\nfrom System.Collections.Generic import List\r\n\r\nclr.AddReference('RevitNodes')\r\nimport Revit\r\nclr.ImportExtensions(Revit.GeometryConversion)\r\nclr.ImportExtensions(Revit.Elements)\r\n\r\nclr.AddReference('RevitServices')\r\nimport RevitServices\r\nfrom RevitServices.Persistence import DocumentManager\r\nfrom RevitServices.Transactions import TransactionManager\r\n\r\nclr.AddReference('ProtoGeometry')\r\nfrom Autodesk.DesignScript.Geometry import*\r\n\r\ndoc = DocumentManager.Instance.CurrentDBDocument\r\nuidoc=DocumentManager.Instance.CurrentUIApplication.ActiveUIDocument\r\n\r\n\r\n#Do some action in a Transaction, inicializa la transacción dynamo\r\nTransactionManager.Instance.EnsureInTransaction(doc)\r\n# entre estas dos declaraciones se modifica el documento revit (el modelo)\r\n\r\npuntoRecon = doc.SiteLocation\r\n\r\nif ProjectLocation.IsProjectLocationNameUnique(doc, \"001\", puntoRecon.Id):\r\n\tnuevoEmpla = ProjectLocation.Create(doc, puntoRecon.Id, \"001\")\r\nelse:\r\n\tpass\r\n\r\n#para establecer coordenadas de una localización de proyecto:\r\ndesfaseNorteSur = IN[0]\r\ndesfaseEsteOeste= IN[1]\r\nelevacion = IN[2]\r\n\r\n#punto de referencia en el plano según desfase con el origen interno\r\npuntoRefEOrg = IN[4]\r\npuntoRefNOrg = IN[3]\r\n\r\nunits = Document.GetUnits(doc)\r\nUIunit = Document.GetUnits(doc).GetFormatOptions(SpecTypeId.Length)\r\nUIunitType = UIunit.GetUnitTypeId()\r\n\r\npuntoRefE = UnitUtils.ConvertToInternalUnits(puntoRefEOrg, UIunitType)\r\npuntoRefN = UnitUtils.ConvertToInternalUnits(puntoRefNOrg, UIunitType)\r\ndesfaseE = UnitUtils.ConvertToInternalUnits(desfaseEsteOeste, UIunitType)\r\ndesfaseN = UnitUtils.ConvertToInternalUnits(desfaseNorteSur, UIunitType)\r\nelev = UnitUtils.ConvertToInternalUnits(elevacion, UIunitType)\r\n\r\nposicionProyecto = ProjectPosition(desfaseE, desfaseN, elev, 0)\r\nnuevoEmpla.SetProjectPosition(XYZ(puntoRefE, puntoRefN, 0), posicionProyecto)\r\n\r\n\r\n# le dice a Dynamo que se ha terminado de usar la transacción\r\nTransactionManager.Instance.TransactionTaskDone()\r\n\r\nOUT = puntoRecon",
      "VariableInputPorts": true,
      "Id": "6bf9ec1f80d742dc9d3778c49388e7cb",
      "Inputs": [
        {
          "Id": "36b246446dd34b7cbfa74fa8e12b804e",
          "Name": "IN[0]",
          "Description": "Input #0",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "0a19b95a96b24e68bd808996e5ab157f",
          "Name": "IN[1]",
          "Description": "Input #1",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "b3cec8e846534c648d6f1e38ab527367",
          "Name": "IN[2]",
          "Description": "Input #2",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "9a70e005de5f40769351be1aaa3b9e44",
          "Name": "IN[3]",
          "Description": "Input #3",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        },
        {
          "Id": "16d071d394dd44b584be7c590f3dec6b",
          "Name": "IN[4]",
          "Description": "Input #4",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Outputs": [
        {
          "Id": "a0dc16f02be44df39aebc6b280f13592",
          "Name": "OUT",
          "Description": "Result of the python script",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Runs an embedded IronPython script."
    },
    {
      "ConcreteType": "CoreNodeModels.Input.DoubleInput, CoreNodeModels",
      "NodeType": "NumberInputNode",
      "NumberType": "Double",
      "InputValue": 949.53,
      "Id": "604816149e744e12bdba22392ef1cbe7",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "4fae878658954376902134b0360ab61b",
          "Name": "",
          "Description": "Double",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "Creates a number."
    },
    {
      "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels",
      "NodeType": "NumberInputNode",
      "NumberType": "Double",
      "MaximumValue": 500.0,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "InputValue": -71.43,
      "Id": "1b5c9020f0234d43871ccf1ffa36af2c",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "75bb88be30c246af9c6a729136cb9161",
          "Name": "",
          "Description": "Double",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "A slider that produces numeric values."
    },
    {
      "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels",
      "NodeType": "NumberInputNode",
      "NumberType": "Double",
      "MaximumValue": 500.0,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "InputValue": -128.68,
      "Id": "fba703a4a7a54f6a86d26fdbb297acea",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "dd32eba57378467e94d4075c2e5b5af9",
          "Name": "",
          "Description": "Double",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "A slider that produces numeric values."
    },
    {
      "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels",
      "NodeType": "NumberInputNode",
      "NumberType": "Double",
      "MaximumValue": 885142.584,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "InputValue": 885142.584,
      "Id": "7bb13897819f46fab1d175a8ab8ad64c",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "8e98e430467d4a4c8cd3e26039c63caf",
          "Name": "",
          "Description": "Double",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "A slider that produces numeric values."
    },
    {
      "ConcreteType": "CoreNodeModels.Input.DoubleSlider, CoreNodeModels",
      "NodeType": "NumberInputNode",
      "NumberType": "Double",
      "MaximumValue": 1072573.678,
      "MinimumValue": -500.0,
      "StepValue": 0.0001,
      "InputValue": 1072573.578,
      "Id": "1c11a91d15314be7877dabae97ec5025",
      "Inputs": [],
      "Outputs": [
        {
          "Id": "268cb013b29643eba56198c80d544cd2",
          "Name": "",
          "Description": "Double",
          "UsingDefaultValue": false,
          "Level": 2,
          "UseLevels": false,
          "KeepListStructure": false
        }
      ],
      "Replication": "Disabled",
      "Description": "A slider that produces numeric values."
    }
  ],
  "Connectors": [
    {
      "Start": "4fae878658954376902134b0360ab61b",
      "End": "b3cec8e846534c648d6f1e38ab527367",
      "Id": "8826feccfea341be8ca8e10c3afb9d26"
    },
    {
      "Start": "75bb88be30c246af9c6a729136cb9161",
      "End": "9a70e005de5f40769351be1aaa3b9e44",
      "Id": "0ffd1a37580945d7ad4293d3728f74ae"
    },
    {
      "Start": "dd32eba57378467e94d4075c2e5b5af9",
      "End": "16d071d394dd44b584be7c590f3dec6b",
      "Id": "bf9054d9fdfe46a59e17bc5e95a84469"
    },
    {
      "Start": "8e98e430467d4a4c8cd3e26039c63caf",
      "End": "36b246446dd34b7cbfa74fa8e12b804e",
      "Id": "ee2f18a235564a1285fdec728142e887"
    },
    {
      "Start": "268cb013b29643eba56198c80d544cd2",
      "End": "0a19b95a96b24e68bd808996e5ab157f",
      "Id": "76beef5b2f4046f5a7ae7f70782d0275"
    }
  ],
  "Dependencies": [],
  "NodeLibraryDependencies": [],
  "Bindings": [],
  "View": {
    "Dynamo": {
      "ScaleFactor": 1.0,
      "HasRunWithoutCrash": true,
      "IsVisibleInDynamoLibrary": true,
      "Version": "2.6.1.8786",
      "RunType": "Manual",
      "RunPeriod": "1000"
    },
    "Camera": {
      "Name": "Background Preview",
      "EyeX": -175.2040355574523,
      "EyeY": 571.27261544050884,
      "EyeZ": 2499.6651056065766,
      "LookX": 505.09840158585,
      "LookY": -547.18993505133744,
      "LookZ": -2441.308940998274,
      "UpX": 0.0,
      "UpY": 1.0,
      "UpZ": 0.0
    },
    "NodeViews": [
      {
        "ShowGeometry": true,
        "Name": "PosicionamientoCoordenadasGeoReferenciadas",
        "Id": "6bf9ec1f80d742dc9d3778c49388e7cb",
        "IsSetAsInput": false,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": 144.61095314902627,
        "Y": -374.669634189639
      },
      {
        "ShowGeometry": true,
        "Name": "elevation",
        "Id": "604816149e744e12bdba22392ef1cbe7",
        "IsSetAsInput": true,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": -146.65936086097418,
        "Y": -347.67956922053855
      },
      {
        "ShowGeometry": true,
        "Name": "norte/sur RefOrigen",
        "Id": "1b5c9020f0234d43871ccf1ffa36af2c",
        "IsSetAsInput": true,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": -327.88528745146868,
        "Y": -202.46847180376341
      },
      {
        "ShowGeometry": true,
        "Name": "este/oeste RefOrigen",
        "Id": "fba703a4a7a54f6a86d26fdbb297acea",
        "IsSetAsInput": true,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": -328.75702350200254,
        "Y": -132.78224562985395
      },
      {
        "ShowGeometry": true,
        "Name": "norte/sur GEORef",
        "Id": "7bb13897819f46fab1d175a8ab8ad64c",
        "IsSetAsInput": true,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": -320.72442859473892,
        "Y": -483.59502595409884
      },
      {
        "ShowGeometry": true,
        "Name": "este/oeste GEORef",
        "Id": "1c11a91d15314be7877dabae97ec5025",
        "IsSetAsInput": true,
        "IsSetAsOutput": false,
        "Excluded": false,
        "X": -321.596164645273,
        "Y": -421.55564275858836
      }
    ],
    "Annotations": [
      {
        "Id": "ecbc05fbd42a4c9a8e2a4367e9a543ce",
        "Title": "georeferenciación - survey point",
        "Nodes": [
          "6bf9ec1f80d742dc9d3778c49388e7cb",
          "604816149e744e12bdba22392ef1cbe7",
          "1b5c9020f0234d43871ccf1ffa36af2c",
          "fba703a4a7a54f6a86d26fdbb297acea",
          "1c11a91d15314be7877dabae97ec5025",
          "7bb13897819f46fab1d175a8ab8ad64c"
        ],
        "Left": -338.75702350200254,
        "Top": -536.79502595409883,
        "Width": 851.76797665102879,
        "Height": 471.8127803242449,
        "FontSize": 36.0,
        "InitialTop": -483.59502595409884,
        "InitialHeight": 495.81278032424495,
        "TextblockHeight": 43.2,
        "Background": "#FFC1D676"
      }
    ],
    "X": 224.34539300982027,
    "Y": 422.06071986084771,
    "Zoom": 0.76119304744636307
  }
}