Select to view content in your preferred language

ArcGIS Pro's Select tool should respect Current Workspace environment setting

932
6
03-22-2018 09:34 PM
Status: Implemented
Labels (1)
6 Comments
MargaretCrawford
Status changed to: Under Consideration

The Select tool does support the current workspace environment. The documentation will be added in an upcoming release.

For example, you can set the workspace to a geodatabase, then use short input and output names that refer to datasets within that geodatabase, and Select works fine.

import arcpy
arcpy.env.workspace = r"C:\...Data.gdb"
arcpy.analysis.Select(
    in_features="Streets_City",
    out_feature_class=r"Select_Tool",
    where_clause="STREET = 'ACADEMY '"
)

 

 

BBicking1

@GraemeBrowning, thanks for your note.

All geoprocessing tools that generate output have always honored the Current Workspace, whether that environment is listed in a tool's doc or not. An exception is when the tool developer coded the tool to behave differently.


To verify that Select honors the Current Workspace, display its Output's full path [a GP Option] and open the Environments window [from the Analysis tab] and expand Workspace.


929167.jpg

I'm investigating a related, yet separate issue, that your request laid open and needs clarifying -- a good thing.

BBicking1

Hello again@GraemeBrowning,

thanks again for giving us documentation feedback.
For future submissions of that nature please use the Feedback link on bottom right of the respective documentation page.

HelpFeedback2024-02-16_08-52-47.jpg

Prior to submitting an idea, please review the Idea sites guidelines to ensure you're actually submitting an idea, not posing a question, or giving feedback for which another channel exists.
Thank you for your understanding and cooperation.

MargaretCrawford

Hi, since the Select tool does support the current workspace environment, we updated the documentation topic to reflect that. You should see the updated documentation in Pro 3.3

MargaretCrawford
Status changed to: In Product Plan
 
KoryKramer
Status changed to: Implemented

This is implemented in ArcGIS Pro 3.3. See Your Ideas in ArcGIS Pro 3.3 for a full list of all user ideas you can look forward to! And be sure to check out the release blog and what’s new help topic and video to learn more about all the new features and functionality in the release.