Message 1 of 11
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi all!
Can I use ssget to create a selection set that goes through a single point?
Thank you.
Saitoib
Solved! Go to Solution.
Solved! Go to Solution.
Try to be more specific. What you want to select at that single point?
For a start read this ssget guide from Lee Mac, part about logical filters.
Miljenko Hatlak
I typically calculate a small rectangle and use crossing selection.
(ssget "_C" '(99 -1) '(101 1))
Edited: Kent, thx for the heads up.
@saitoib wrote:
.... in the following figure, how can I select the three lines that pass through the point (100 0 0)?
According to the description in Help for (ssget), this ought to do that:
(setq ss (ssget "_:E" '(100.0 0.0 0.0)))
but for some reason I haven't figured out, it gives me a "bad point argument" error message.
EDIT: It seems that the :E mode only works with User pick of a point -- see >this< and >here<.
But you can use a Crossing selection without building a larger box, but just use the same point for both corners:
(setq pt '(100.0 0.0 0.0))
(setq ss (ssget "_C" pt pt))
@saitoib wrote:
I'm sorry. I didn't explain it well enough.
For example, in the following figure, how can I select the three lines that pass through the point (100 0 0)?
line 0,0 110,0
line 90,0 200,0
line 100,0 100,100
You didn't read the text at link that I provided. There is actually a sample for similar case.
Miljenko Hatlak
@saitoib wrote:
I'm sorry. I didn't explain it well enough.
For example, in the following figure, how can I select the three lines that pass through the point (100 0 0)?
line 0,0 110,0
line 90,0 200,0
line 100,0 100,100
Command: (setq ss (ssget "c" '(100 0 0) '(100 0 0)))
<Selection set: 10>
Command: M
MOVE
Select objects: !ss
<Selection set: 10>
3 found
Miljenko Hatlak