New CADforum look launched.
Over 1.080.000 registered users (EN+CZ). New 1D nesting and 3D nesting tools, updated Color converter. New AutoCAD 2025 commands and variables. Learn about twiGIS.
Over 1.080.000 registered users (EN+CZ). New 1D nesting and 3D nesting tools, updated Color converter. New AutoCAD 2025 commands and variables. Learn about twiGIS.
Discussion forum
?CAD discussions, advices, exchange of experience
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.
SelHatch0 |
Post Reply |
Author | |
w64bit
Newbie Joined: 16.Sep.2009 Location: United Kingdom Using: AutoCAD 2024 Status: Offline Points: 14 |
Post Options
Thanks(0)
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 Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2062 |
Post Options
Thanks(0)
|
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 - Autodesk Platinum Partner |
|
w64bit
Newbie Joined: 16.Sep.2009 Location: United Kingdom Using: AutoCAD 2024 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
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: 683 |
Post Options
Thanks(0)
|
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
Newbie Joined: 16.Sep.2009 Location: United Kingdom Using: AutoCAD 2024 Status: Offline Points: 14 |
Post Options
Thanks(1)
|
I ended up using SELHATCH0 (if (ssget "I") (command "ERASE")) |
|
w64bit
Newbie Joined: 16.Sep.2009 Location: United Kingdom Using: AutoCAD 2024 Status: Offline Points: 14 |
Post Options
Thanks(0)
|
I found a problem. VLX is selecting also the hatches with non zero area. I attached a file for testing. |
|
Vladimir Michl
Moderator Group Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2062 |
Post Options
Thanks(0)
|
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 - Autodesk Platinum Partner |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,371 seconds.