Select to view content in your preferred language

Automatically generate points at the endpoints of a line features during the line is created or updated

446
6
Jump to solution
10-05-2024 11:02 PM
MohamedIsmael
Occasional Contributor

Hi,

Is there a way I can do the following? automatically generate points at the endpoints of a line features when the line is created or updated using attribute rules (when i create a line automatically generate a point at the end line feature)

0 Kudos
1 Solution

Accepted Solutions
TedHoward2
Esri Contributor

Have a look at this example which can be modified for this purpose.

This is how you get the endpoint:

var endpoint = Point(Geometry(line)["paths"][-1][-1])

 

View solution in original post

6 Replies
TedHoward2
Esri Contributor

Have a look at this example which can be modified for this purpose.

This is how you get the endpoint:

var endpoint = Point(Geometry(line)["paths"][-1][-1])

 

MohamedIsmael
Occasional Contributor

Thank you, very helpful

0 Kudos
Bud
by
Esteemed Contributor

FYI - The link appears to be dead.

0 Kudos
TedHoward2
Esri Contributor

Ah some stuff got moved around. Try here 

0 Kudos
MohamedIsmael
Occasional Contributor

If I assign a subtype to the point feature, can I define a specific value to be edited؟

like this image:

WhatsApp Image 2024-10-09 at 2.22.35 PM.jpeg

0 Kudos
TedHoward2
Esri Contributor

You can include attributes in the newly created points. Please see attribute rules doc.

https://pro.arcgis.com/en/pro-app/latest/help/data/geodatabases/overview/attribute-rule-dictionary-k...

0 Kudos