Next question is how to add the points into an existing point group?
I only found the node to create a new point group which will replace the old one if input a same point group name.
Next question is how to add the points into an existing point group?
I only found the node to create a new point group which will replace the old one if input a same point group name.
You can create the COGO points using the CogoPoint.ByGeometry
node, then put them in a new group using the CogoPointGroup.ByCogoPoints
node.
Here’s an example of working with COGO points that might help:
Is there a way to put cogo points into an existing point group?
Use case: I have a 10 year old survey with the trees which I have added as cogo points to a point group called ‘my trees’. This year I got a new survey which added new trees which need to be appended to the existing group. I can use the same graph as last time to create them in a new group, but if writing to the same group the previous are lost (or that is how I read the workflow above). Is it ‘gather the existing points into the list of new points and recreate the point group with the complete collection? If so could that break any existing downstream documentation or data while an append would just layer in new (and unused) data to the set?
Generally no, the current node maintains full ownership of all points in the group. Delving into specific types of point group queries starts to get a little complex, so we started with the simplest one of just matching point numbers
The flexibility to build up various queries would certainly be a nice addition.
Maybe it’s possible to write a script to combine the points in an existing point group and the new points into a new point group?
Definitely! You can get the points from the existing group using CogoPointGroup.CogoPoints
, merge them with the new points using List.Create
and List.Flatten
, and then create the new group with that combined list.