Can we remove a vertex in a SlabShapeEditor
Or we need to reset shape and re add the modified point list?
This thread seems to indicate that it went onto the wishlist but didnt progress further. I think youâre probably right that reset may be needed unless you can literally delete the vertices if they have an id.
Not sure that âremove pointâ is needed, as itâs not going to be much different than this:
- Getting all the slab shape vertices
- For each vertex, extract the point as an XYZ
- Remove the XYZ you want to take out from the list
- Reset the slab
- Use the AddPoints method to get the slab with the one point removed
The problem with a new API method is the same as the problem you likely see there - âwhat if my point isnât in the list of pointsâ. âNearestâ or âanything within distance of pointâ both work, but theyâre both quite a bit different.
I think in ideal world there would have been a method to remove at index or similar. I agree with the people in that thread that it is odd to have the ability to do nearly all but remove a nominated point when itâs possible in Revit itself. Iâve come to appreciate over the years that it is what it is, and itâs probably much more complex in practice to implement in an API sufficient manner than revit makes it appear.
Yeah - âremove point by user interface selectionâ certainly seems like it should be doable⌠but I believe the team is using something like the 5 steps above internally. Just like the split API took awhile to get added, when the ask is for âmake these six lines of code one line of code insteadâ it is usually less impactful than âbuild internal and external APIs so we have toposolidsâ, and so those big impact things that are user facing usually have to get prioritized. If a developer who knows that part of the code frees up for a sprint or two things like deleting a point can and do get added, but itâs somewhat rare that a big fish takes less time than you thought to fry up.