SKILL Qn: How to get the user select only a particular obj t

S

Suresh Jeevanandam

Guest
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
 
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:
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
 
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:
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
 
If you want to select the net to show in a form you could use
(asiSelectNet 'fieldName ?prompt "Select Net")
 
Thanks satya this is what I wanted.

regards,
Suresh
satya wrote:
If you want to select the net to show in a form you could use
(asiSelectNet 'fieldName ?prompt "Select Net")
 

Welcome to EDABoard.com

Sponsor

Back
Top