Hi,
We are developing a customized tool using ArcGIS Pro SDK (v2.8) and .NET Framework. The problem statement is that we need to create a line parallel to the existing line segment (similar to Parallel context menu item) as shown below
Any inputs/ideas are most appreciated
Solved! Go to Solution.
Hi,
How would you like this to work from the users perspective? You mention 'similar to the parallel constraint' in the UI, are you looking to set an angular and or distance constraint on the sketch feedback or just create the next sketch segment from some geometry?
Unfortunately the sketch constraints aren't exposed in the SDK on the sketchtool currently but its 'on the list'. The alternative, which isn't quite the same, is to add a geometry that you calculate onto the existing sketch via GetCurrentSketchAsync and SetCurrentSketchAsync.
Hi,
You can try to use GeometryEngine Move functionality
https://pro.arcgis.com/en/pro-app/latest/sdk/api-reference/#topic8262.html
But you need to calculate x, y for your moving
Hi,
How would you like this to work from the users perspective? You mention 'similar to the parallel constraint' in the UI, are you looking to set an angular and or distance constraint on the sketch feedback or just create the next sketch segment from some geometry?
Unfortunately the sketch constraints aren't exposed in the SDK on the sketchtool currently but its 'on the list'. The alternative, which isn't quite the same, is to add a geometry that you calculate onto the existing sketch via GetCurrentSketchAsync and SetCurrentSketchAsync.
Hi @Anonymous User ,
I'm looking to get an angular constraint from the sketch feedback when the user selected Parallel Context Menu. Thanks for confirming that it is on the list.
Since the sketch constraints are not available in the SDK, I am trying to create a line parallel to the existing line segment, where the direction of line (right/ left side) depends on cursor point relative to the first point. (Or) Is there any possibility to determine the selected context menu item?
This post is a year old, has there been any progress with sketch constraints being available in the SDK? Could come in super handy!