Print Page | Close Window

SelHatch0

Printed From: CAD Forum
Category: EN
Forum Name: ARKANCE (CAD Studio) applications
Forum Description: Questions and discussion about applications by ARKANCE and Be.Smart - RevitTools (T4R), X-Tools (T4I), Civil Tools, DWGtext, GeoRefImg, XLSparam, FLAY, Furniture, LT Extension,...
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=14525
Printed Date: 10.May.2026 at 21:54


Topic: SelHatch0
Posted By: w64bit
Subject: SelHatch0
Date 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




Replies:
Posted By: Vladimir Michl
Date 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.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: w64bit
Date 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.


Posted By: Kent Cooper
Date Posted: 15.Aug.2024 at 16:22
Originally posted by w64bit 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


Posted By: w64bit
Date Posted: 15.Aug.2024 at 16:24
I ended up using
SELHATCH0
(if (ssget "I") (command "ERASE"))



Posted By: w64bit
Date 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.
https://www.cadforum.cz/forum_en/uploads/68738/Hatch.zip" rel="nofollow - uploads/68738/Hatch.zip



Posted By: Vladimir Michl
Date 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.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner


Posted By: kriperflag
Date 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. 


Posted By: Vladimir Michl
Date 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.

-------------
Vladimir Michl (moderator)
ARKANCE - https://arkance.world" rel="nofollow - https://arkance.world - Autodesk Platinum Partner



Print Page | Close Window