SKILL Qn: How to get the user select only a particular obj t
CADForums.net Forum Index CADForums.net
Discussion of AutoCAD and other CAD software.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web cadforums.net
SKILL Qn: How to get the user select only a particular obj t

 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence
Author Message
Suresh Jeevanandam
Guest





Posted: Tue Sep 27, 2005 12:10 pm    Post subject: SKILL Qn: How to get the user select only a particular obj t Reply with quote

Hi everyone,
In SKILL, I want to tell the user "Select the net" and wait for the
user to click on a net ( wire ). I have implemented this by,

schSelectPoint(cw enterPoint(?prompts '("Click on the net")) nil nil 0)

However, It would like to force the tool to select only the wire and
not any other object type if there are something nearby.
Any idea how this could be accomplished?

Thanks in advance,

regards,
Suresh J

Back to top
Bernd Fischer
Guest





Posted: Wed Sep 28, 2005 12:10 pm    Post subject: Re: SKILL Qn: How to get the user select only a particular o Reply with quote

Maybe this will do the job > BFselectNet( )


procedure( BFhilightSelNet( w done pts )
when( done
geDeselectAll( )
geDeleteAllProbe( )
geAddNetProbe(
hiGetCurrentWindow( )
list( "y0" "drawing" )
car( pts )
)
)
)

procedure( BFselectNet( )
enterPoint( ?prompts
list( "Click on a net")
?doneProc "BFhilightSelNet"
)
)

Bernd

Suresh Jeevanandam wrote:
Quote:
Hi everyone,
In SKILL, I want to tell the user "Select the net" and wait for the
user to click on a net ( wire ). I have implemented this by,

schSelectPoint(cw enterPoint(?prompts '("Click on the net")) nil
nil 0)

However, It would like to force the tool to select only the wire
and not any other object type if there are something nearby.
Any idea how this could be accomplished?

Thanks in advance,

regards,
Suresh J
Back to top
Bernd Fischer
Guest





Posted: Wed Sep 28, 2005 4:10 pm    Post subject: Re: SKILL Qn: How to get the user select only a particular o Reply with quote

I forgot this is already implemented in the schematic composer
"Design -> Probe -> Add Net ..."
So if you don't want to use the SKILL way of doing it somehow
embedded in other SKILL just use the schematic menu option!

Bernd


Suresh Jeevanandam wrote:
Quote:
Hi everyone,
In SKILL, I want to tell the user "Select the net" and wait for the
user to click on a net ( wire ). I have implemented this by,

schSelectPoint(cw enterPoint(?prompts '("Click on the net")) nil
nil 0)

However, It would like to force the tool to select only the wire
and not any other object type if there are something nearby.
Any idea how this could be accomplished?

Thanks in advance,

regards,
Suresh J


Back to top
satya
Guest





Posted: Wed Sep 28, 2005 8:10 pm    Post subject: Re: SKILL Qn: How to get the user select only a particular o Reply with quote

If you want to select the net to show in a form you could use
(asiSelectNet 'fieldName ?prompt "Select Net")
Back to top
Suresh Jeevanandam
Guest





Posted: Mon Oct 03, 2005 8:10 am    Post subject: Re: SKILL Qn: How to get the user select only a particular o Reply with quote

Thanks satya this is what I wanted.

regards,
Suresh
satya wrote:
Quote:
If you want to select the net to show in a form you could use
(asiSelectNet 'fieldName ?prompt "Select Net")
Back to top
 
Post new topic   Reply to topic    CADForums.net Forum Index -> Cadence All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Windows Server DSP VoIP Electronics New Topics
Contact Us
Powered by phpBB