Home > Community > Forums > Custom IC SKILL > How to know how many objects are going to stretch ?

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 How to know how many objects are going to stretch ? 

Last post Tue, Aug 27 2013 8:12 PM by Andrew Beckett. 7 replies.
Started by Charley Chen 27 Aug 2013 06:08 PM. Topic has 7 replies and 407 views
Page 1 of 1 (8 items)
Sort Posts:
  • Tue, Aug 27 2013 6:08 PM

    How to know how many objects are going to stretch ? Reply

     Hi All ,

    I want to know how many objects(and cellname...) are going to stretch(bindkey: S)  before stretch command action.

    Thank you,

    Charley

     

    • Post Points: 20
  • Tue, Aug 27 2013 7:26 PM

    Re: How to know how many objects are going to stretch ? Reply

    Charley,

    If you're using pre-selection, isn't this just length(geGetSelSet()) ? If you're using post-selection, it can't know because you've not selected them yet...

    Regards,

    Andrew.

    • Post Points: 20
  • Tue, Aug 27 2013 7:31 PM

    Re: How to know how many objects are going to stretch ? Reply

     Andrew ,

    I ony use the stretch command , I don't know the pre-selection how the stretch command  does.

    Or how can i add pre-selection in stretch command ?

     

    Thank you,

    Charley

    • Post Points: 20
  • Tue, Aug 27 2013 7:38 PM

    Re: How to know how many objects are going to stretch ? Reply

     Charley,

    Many of the editing commands in Virtuoso (e.g. copy, move, stretch etc) allow both pre- and post-selection. The idea is that if you have anything selected before you start the command, it will operate on what is selected. If nothing was selected, it will prompt you to select the items to operate on.

    You can also partially select objects in advance (hit the F4 key to toggle between partial and full selection modes).

    So there's nothing special you need to do in the command to use either pre- or post-selection; it's purely dependent upon whether anything was selected when you start the command.

    Kind Regards,

    Andrew.

    • Post Points: 20
  • Tue, Aug 27 2013 7:40 PM

    Re: How to know how many objects are going to stretch ? Reply

     Andrew ,

    How can i add pre-selection in stretch command ?

    Thank you,

    Charley

    • Post Points: 20
  • Tue, Aug 27 2013 7:43 PM

    Re: How to know how many objects are going to stretch ? Reply

    As I said, just select (or partially select) the objects you want to stretch before you start the stretch command. That's all.

    Andrew.

    • Post Points: 20
  • Tue, Aug 27 2013 8:05 PM

    Re: How to know how many objects are going to stretch ? Reply

     Andrew ,

    Sorry , but user will forget to check the objects and do stretch command , can it be like a wrapper ? 

    Filter selected objects and do something and the ... before stretch command .

     

    Charley

     

    • Post Points: 20
  • Tue, Aug 27 2013 8:12 PM

    Re: How to know how many objects are going to stretch ? Reply

    Perhaps it would help if you explained precisely what you are trying to do (and why)?

    Of course, you could write a function which did some operation on the selected set, and then called leHiStretch(). But that's fairly obvious, so I'm guessing I still don't understand your objective?

    Regards,

    Andrew.

    • Post Points: 5
Page 1 of 1 (8 items)
Sort Posts:
Started by Charley Chen at 27 Aug 2013 06:08 PM. Topic has 7 replies.