Selecting Revisited

Selecting Revisited

Anonymous
Not applicable
456 Views
8 Replies
Message 1 of 9

Selecting Revisited

Anonymous
Not applicable
I am still having a hard time getting my head around the selection methods.

I have taken the clsSelect from the Isolate_Constrained_Parts_V01 that Brian posted.

I have a form that when I choose the select button, I hide that form, and bring up a
much smaller form that has a done button.

In the clsSelect Class module, I removed the OnSelect sub, and added a Public sub
that is called when a button on my small form is pressed. All this sub does is set
bStillSelecting to False.

That much appears to work OK, but

I have made a Public OselectSet and call it from the above form Select Button as
such

Set oSelectset = oSelect.Pick(15884)

When the selection rountine is finished I check oSelectset and it always shows it
as being nothing.

Is it because I am brining up the second form or what am I doing wrong.




--
Kent Keller
http://kwik-mcad.scriptmania.com/
0 Likes
457 Views
8 Replies
Replies (8)
Message 2 of 9

Anonymous
Not applicable
I think this area has the possiblity of causing Insanity!
I have canned all projects requiring numbers to be returned.
One could only guess at why it is more complex than anything else!
Cheers for the Suppressor as well!
Simon
0 Likes
Message 3 of 9

Anonymous
Not applicable
Kent,

I'm a little confused on what your trying to select. Are you trying to select a face and list that face? Or just selecting items in general? By the way you or anyone else going to AU? Mike@RTSWright.
0 Likes
Message 4 of 9

Anonymous
Not applicable
Hi Mike

I explained it that badly huh 8^)

I am actually trying to make a selection set of Features. But at other points in the
program I want to make a selection set of other things. Once I get the selection
set I want to change some properties on them.

No AU for me this year. Business has slowed way down, so I didn't even ask. 8^/

--
Kent Keller
http://kwik-mcad.scriptmania.com/

"MDB" wrote in message
news:f098b61.1@WebX.maYIadrTaRb...
> Kent,
> I'm a little confused on what your trying to select. Are you trying to select a
face and list that face? Or just selecting items in general? By the way you or
anyone else going to AU? Mike@RTSWright.
>
>
0 Likes
Message 5 of 9

Anonymous
Not applicable
Mike or anyone willing to help 8^)

I have placed a ivb file in customer files that might show a little better what I
am attempting to do.

bring up a part drawing. Run or step thru the program, and choose the select
button. Select a couple of part features, and then select the End Selection button
(I am also interested in a cleaner method of ending the selection) Anyhow at that
point I would like my oSelect selection set to contain the Features so I can
manipulate them. The way I am trying it always comes back with a error that
oSelect variable is not set.

--
Kent Keller
http://kwik-mcad.scriptmania.com/

"MDB" wrote in message
news:f098b61.1@WebX.maYIadrTaRb...
> Kent,
> I'm a little confused on what your trying to select. Are you trying to select a
face and list that face? Or just selecting items in general? By the way you or
anyone else going to AU? Mike@RTSWright.
>
>
0 Likes
Message 6 of 9

Anonymous
Not applicable
Kent,

The main problem is that the clsSelect Pick function returns a single Object
and this is probably not what you want.

I've changed the code (posted under the original message) to return a
Collection of the selected features and combined the Select and Done button
to one instead of two.

Hope this will bring you a step further.

PS. did Brian really post the Isolate_Constrained_Parts_V01 example? maybe
some of my earlier statements are true anyway!!

-Patrick
0 Likes
Message 7 of 9

Anonymous
Not applicable
Sorry Patrick Did I get yours and Brians Mixed up? I know both of you posted
versions and at the time I was to busy, so I put them away to look at later. Sounds
like I got the two mixed up somehow. Sorry. I feel like I have had 15 projects
half done for so long now, that I am getting all of them mixed up.

Guess that just goes to prove that I am a airhead .8^)

Off to grab your post .... Thanks....hoping I can get a little closer to finishing
up a project. 8^)


--
Kent Keller
http://kwik-mcad.scriptmania.com/

"Patrick de Stobbeleir" wrote in message
news:23476B63949504FD698E5D21E67643B0@in.WebX.maYIadrTaRb...
> Kent,
>
> The main problem is that the clsSelect Pick function returns a single Object
> and this is probably not what you want.
>
> I've changed the code (posted under the original message) to return a
> Collection of the selected features and combined the Select and Done button
> to one instead of two.
>
> Hope this will bring you a step further.
>
> PS. did Brian really post the Isolate_Constrained_Parts_V01 example? maybe
> some of my earlier statements are true anyway!!
>
> -Patrick
>
>
0 Likes
Message 8 of 9

Anonymous
Not applicable
Kent, you are welcome to ask again if you have some more problems and I'll
try to solve them.

PS. I would never consider you as a airhead, I know how things are in the
rush hours.


"Kent Keller" wrote in message
news:ABCBE8FC6E104F20D50ADE454A797AC2@in.WebX.maYIadrTaRb...
| Sorry Patrick Did I get yours and Brians Mixed up? I know both of you
posted
| versions and at the time I was to busy, so I put them away to look at
later. Sounds
| like I got the two mixed up somehow. Sorry. I feel like I have had 15
projects
| half done for so long now, that I am getting all of them mixed up.
|
| Guess that just goes to prove that I am a airhead .8^)
|
| Off to grab your post .... Thanks....hoping I can get a little closer to
finishing
| up a project. 8^)
|
|
| --
| Kent Keller
| http://kwik-mcad.scriptmania.com/
|
| "Patrick de Stobbeleir" wrote in message
| news:23476B63949504FD698E5D21E67643B0@in.WebX.maYIadrTaRb...
| > Kent,
| >
| > The main problem is that the clsSelect Pick function returns a single
Object
| > and this is probably not what you want.
| >
| > I've changed the code (posted under the original message) to return a
| > Collection of the selected features and combined the Select and Done
button
| > to one instead of two.
| >
| > Hope this will bring you a step further.
| >
| > PS. did Brian really post the Isolate_Constrained_Parts_V01 example?
maybe
| > some of my earlier statements are true anyway!!
| >
| > -Patrick
| >
| >
|
|
0 Likes
Message 9 of 9

Anonymous
Not applicable
Patrick

Thanks It works like a charm. 8^)

Now I wish I fully understood it all 8^/

--
Kent Keller
http://kwikmcad.topcities.com/
0 Likes