# Spot coordinates

**URL:** <https://forum.dynamobim.com/t/spot-coordinates/27910>\
**Category:** Revit\
**Created:** [November 1, 2018, 5:34am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910 "2018-11-01T05:34:04Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![abhijeetraje](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@abhijeetraje](https://forum.dynamobim.com/u/abhijeetraje)\
**Post date:** [November 1, 2018, 5:34am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/1 "2018-11-01T05:34:04Z")

</div>

Hi  
I want to create a script where spot coordinates are created all the structural columns in a view automatically. The script I tried is not working. Nothing is happening. Can someone point out what I am doing wrong?  
 ![01-11-2018%201059](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/6/8/687aad2bb91ee7705951b9aadf47f440cc09a3df.png)

 ![SPOT%20COORDINATES](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/3/5/35c2c97cb3c05628de0b426df456ac85d7d67022.png)

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [November 1, 2018, 5:42am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/2 "2018-11-01T05:42:23Z")

</div>

I don’t think annotation tag works for spot elevations.  
Clockwork package has a node called SpotElevation ByPoint. You should try that.

---

<div class="post-metadata">

**Author:** ![abhijeetraje](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@abhijeetraje](https://forum.dynamobim.com/u/abhijeetraje)\
**Post date:** [November 1, 2018, 8:07am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/3 "2018-11-01T08:07:18Z")

</div>

Hi. But that is spot elevations. What I am looking for is spot coordinates.

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [November 1, 2018, 8:13am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/4 "2018-11-01T08:13:18Z")

</div>

Ah sorry, I misread. But you can actually edit the clockwork node SpotElevation ByPoint, open the python, and at line 33, change  
`doc.Create.NewSpotElevation`  
to  
`doc.Create.NewSpotCoordinate`  
and then save as a new node. They take the same inputs so it should behave the same.

Maybe @Andreas_Dieckmann can make a SpotCoordinate node in addition to his SpotElevation?

---

<div class="post-metadata">

**Author:** ![abhijeetraje](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@abhijeetraje](https://forum.dynamobim.com/u/abhijeetraje)\
**Post date:** [November 1, 2018, 12:21pm UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/5 "2018-11-01T12:21:02Z")

</div>

Hey Thanks. That is simple enough.😀. I did the changes and saved it as new custom node. Now how do i insert in diagram? It is not showing anywhere?

---

<div class="post-metadata">

**Author:** ![Andreas\_Dieckmann](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/andreas_dieckmann/32/365_2.png) [@Andreas\_Dieckmann](https://forum.dynamobim.com/u/Andreas_Dieckmann)\
**Post date:** [November 1, 2018, 2:51pm UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/6 "2018-11-01T14:51:47Z")

</div>

@kennyb6 Sure, will add it to next Clockwork version.

> <https://github.com/andydandy74/ClockworkForDynamo/issues/233>

---

<div class="post-metadata">

**Author:** ![abhijeetraje](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@abhijeetraje](https://forum.dynamobim.com/u/abhijeetraje)\
**Post date:** [November 2, 2018, 4:04am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/7 "2018-11-02T04:04:28Z")

</div>

@kennyb6 Tried doing it but nothing happening. Obviously I am not doing something correctly. Can you check and guide?[Auto dimensioning of columns.dyn](https://forum.dynamobim.com/uploads/short-url/cisv63knp8ociGSzdFLGxexnD4A.dyn) (9.4 KB)

---

<div class="post-metadata">

**Author:** ![abhijeetraje](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@abhijeetraje](https://forum.dynamobim.com/u/abhijeetraje)\
**Post date:** [November 12, 2018, 8:58am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/8 "2018-11-12T08:58:55Z")

</div>

@Kulkul  
Could you look in to this by any chance?

---

<div class="post-metadata">

**Author:** ![fluffyhugger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fluffyhugger/32/54396_2.png) [@fluffyhugger](https://forum.dynamobim.com/u/fluffyhugger)\
**Post date:** [August 14, 2019, 1:05pm UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/9 "2019-08-14T13:05:13Z")

</div>

Maybe like this? Worked for me.

 ![Aantekening%202019-08-14%20150349](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/b/ab1e330f585dc4fbfc5f7183163d52594241bd13.png)

```
import clr
clr.AddReference('RevitAPI')
from Autodesk.Revit.DB import *

clr.AddReference("RevitNodes")
import Revit
clr.ImportExtensions(Revit.GeometryConversion)

clr.AddReference("RevitServices")
import RevitServices
from RevitServices.Persistence import DocumentManager
from RevitServices.Transactions import TransactionManager

doc = DocumentManager.Instance.CurrentDBDocument

v = UnwrapElement(IN[2])
r = UnwrapElement(IN[0])
p = UnwrapElement(IN[1]).ToXyz()
o = UnwrapElement(IN[3]).ToXyz()
n = UnwrapElement(IN[4]).ToXyz()

TransactionManager.Instance.EnsureInTransaction(doc)

e = []

e.append(doc.Create.NewSpotCoordinate(v, FamilyInstance.GetReferenceByName(r,"Center (Left/Right)"), p, o, n, p, True))

TransactionManager.Instance.TransactionTaskDone()

OUT = e
```

---

<div class="post-metadata">

**Author:** ![fluffyhugger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/fluffyhugger/32/54396_2.png) [@fluffyhugger](https://forum.dynamobim.com/u/fluffyhugger)\
**Post date:** [August 14, 2019, 1:47pm UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/10 "2019-08-14T13:47:00Z")

</div>

To use it on multiple elements just wrap it in een custom node and set input to `var` (singular input) and manage your input lists outside the node. So 1 view, 1 element, 1 point etc. Alternatively mange it in the python self but then you have to provide specific input for the node to work. Which means that you need to manage your input outside the node what you would do anyway so why bother with complex solutions in python?

---

<div class="post-metadata">

**Author:** ![GarryMitchell](https://avatars.discourse-cdn.com/v4/letter/g/ad7895/32.png) [@GarryMitchell](https://forum.dynamobim.com/u/GarryMitchell)\
**Post date:** [July 14, 2020, 8:00am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/11 "2020-07-14T08:00:29Z")

</div>

Where do you get Bend and End Point from?

---

<div class="post-metadata">

**Author:** ![Vikram\_Subbaiah](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/vikram_subbaiah/32/50797_2.png) [@Vikram\_Subbaiah](https://forum.dynamobim.com/u/Vikram_Subbaiah)\
**Post date:** [July 14, 2020, 8:06am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/12 "2020-07-14T08:06:44Z")

</div>

Those are renamed _Point.Add_ nodes  
 ![pointAdd](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/5/c5e1b027123e6461503cce03464e4eb7664d5e47.png)

---

<div class="post-metadata">

**Author:** ![GarryMitchell](https://avatars.discourse-cdn.com/v4/letter/g/ad7895/32.png) [@GarryMitchell](https://forum.dynamobim.com/u/GarryMitchell)\
**Post date:** [July 14, 2020, 8:27am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/13 "2020-07-14T08:27:35Z")

</div>

Yes thanks I just realized that. Still cant get the damn script to work though. Trying to Spot Elevation pipes

---

<div class="post-metadata">

**Author:** ![basavarajpatil6](https://avatars.discourse-cdn.com/v4/letter/b/cc9497/32.png) [@basavarajpatil6](https://forum.dynamobim.com/u/basavarajpatil6)\
**Post date:** [October 23, 2020, 8:16am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/14 "2020-10-23T08:16:55Z")

</div>

Is there any script to take out spot coordinates (YXZ) schedule using dynamo?

---

<div class="post-metadata">

**Author:** ![alesiot87at](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@alesiot87at](https://forum.dynamobim.com/u/alesiot87at)\
**Post date:** [August 30, 2023, 10:17am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/15 "2023-08-30T10:17:13Z")

</div>

Im trying to tag in a 3D view my Survey point, following this code:

```auto
svp = BasePoint.GetSurveyPoint(doc)
			
survey_point_inch = XYZ(
		svp.get_Parameter(BuiltInParameter.BASEPOINT_EASTWEST_PARAM).AsDouble(),
		svp.get_Parameter(BuiltInParameter.BASEPOINT_NORTHSOUTH_PARAM).AsDouble(),
		svp.get_Parameter(BuiltInParameter.BASEPOINT_ELEVATION_PARAM).AsDouble()
		)

								
view = doc.ActiveView
point = survey_point_inch
element = svp

def Create_SpotCoordinate_Tag(view, reference, XYZ_origin):
	view = view
	reference = Reference(reference)
	XYZ_origin = XYZ_origin
	XYZ_bend = XYZ(XYZ_origin.X + 1, XYZ_origin.Y + 1, XYZ_origin.Z)
	XYZ_end = XYZ(XYZ_bend.X + 2, XYZ_bend.Y, XYZ_origin.Z)
	XYZ_refPt = XYZ_origin
	hasLeader_bool = True
	
	spot_coordinate = doc.Create.NewSpotCoordinate(view, reference, XYZ_origin, XYZ_bend, XYZ_end, XYZ_refPt, hasLeader_bool)
	return spot_coordinate

OUT = Create_SpotCoordinate_Tag(view, element, point)

```

But im not willing to create that SpotCoordinate. Any help with it?

---

<div class="post-metadata">

**Author:** ![abhijeetraje](https://avatars.discourse-cdn.com/v4/letter/a/a183cd/32.png) [@abhijeetraje](https://forum.dynamobim.com/u/abhijeetraje)\
**Post date:** [May 21, 2024, 3:29am UTC](https://forum.dynamobim.com/t/spot-coordinates/27910/16 "2024-05-21T03:29:30Z")

</div>

Hello. Have been out of touch for some time. Catching up on this again. There is a node for spot coordinates by points by clockwork. I am trying to use the same. For some reason the coordinates are not getting created. Request some guidance on this. Also I want it to annotate the structural columns in linked file also.

 ![SPOT COORDINATES BY POINT](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/894b2d86d13da36d7d678a589770b404f5220f2c.png)  
[New Auto Spot Dimensions for Structural Columns 2.0.1.dyn](https://forum.dynamobim.com/uploads/short-url/kAoJbUrHdruoKuDxuwbF6iPTUlP.dyn) (14.3 KB)
