
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the
rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
| Author |
Topic Search Topic Options
|
w64bit
Groupie
Joined: 16.Sep.2009
Location: United Kingdom
Using: AutoCAD 2024
Status: Offline
Points: 17
|
Topic: SelHatch0 Posted: 15.Aug.2024 at 13:37 |
Hello, Is it possible, please, to make a change in SelHatch0 in order to eliminate manual selection from the code? Entering SelHatch0 command + Enter to select the hatches and closing the command. Thank you
|
 |
Vladimir Michl
Moderator Group
Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2196
|
Posted: 15.Aug.2024 at 13:40 |
|
You don't need to select the hatches menually. Just <Enter> and all hatches will be selected automatically.
|
|
|
 |
w64bit
Groupie
Joined: 16.Sep.2009
Location: United Kingdom
Using: AutoCAD 2024
Status: Offline
Points: 17
|
Posted: 15.Aug.2024 at 13:48 |
I want to use it in a script to automate deleting these hatches:
SELHATCH0 ERASE but if there are no hatches the code does not work.
|
 |
Kent Cooper
Senior Member
Joined: 12.Mar.2013
Location: United States
Using: AutoCAD2020, 2023
Status: Offline
Points: 687
|
Posted: 15.Aug.2024 at 16:22 |
w64bit wrote:
I want to use it in a script to automate deleting these hatches:
SELHATCH0 ERASE but if there are no hatches the code does not work. |
What would you expect it to do if there are no Hatches? If it's part of something larger, and no Hatches interferes with its continuing, does it work if you use an actual Enter instead of a space in the Script, for the select-all option?
SELHATCH0
ERASE
Edited by Kent Cooper - 15.Aug.2024 at 16:24
|
 |
w64bit
Groupie
Joined: 16.Sep.2009
Location: United Kingdom
Using: AutoCAD 2024
Status: Offline
Points: 17
|
Posted: 15.Aug.2024 at 16:24 |
I ended up using SELHATCH0 (if (ssget "I") (command "ERASE"))
|
 |
w64bit
Groupie
Joined: 16.Sep.2009
Location: United Kingdom
Using: AutoCAD 2024
Status: Offline
Points: 17
|
Posted: 15.Aug.2024 at 20:24 |
I found a problem. VLX is selecting also the hatches with non zero area. I attached a file for testing.
|
 |
Vladimir Michl
Moderator Group
Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2196
|
Posted: 16.Aug.2024 at 14:34 |
|
No, this example is a typical object with a zero/undefined area (at least in AutoCAD 2025.1). Try the Properties palette or the AREA Object command.
|
|
|
 |
kriperflag
Groupie
Joined: 30.May.2024
Location: Germany
Using: Revit2021
Status: Offline
Points: 11
|
Posted: 05.Jan.2025 at 00:45 |
|
I completely understand your point—it would be much more efficient if SelHatch0 could automate the selection process without requiring manual input. Streamlining this step would save time and make the command more user-friendly, especially for repetitive tasks.
|
 |
Vladimir Michl
Moderator Group
Joined: 26.Jul.2007
Location: Czech Republic
Using: Autodesk software
Status: Offline
Points: 2196
|
Posted: 05.Jan.2025 at 10:05 |
|
We have added the command DelHatch0 to the new version of this utility (V1.2, see Download). The prompts are the same, but any complaining hatches will be deleted automatically.
|
|
|
 |