Home > Community > Forums > Custom IC SKILL > Adjust rubberbandding path

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: *

 Adjust rubberbandding path 

Last post Mon, Jan 28 2013 12:34 AM by RVERP. 5 replies.
Started by RVERP 09 Jan 2013 05:29 AM. Topic has 5 replies and 891 views
Page 1 of 1 (6 items)
Sort Posts:
  • Wed, Jan 9 2013 5:29 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Sun, Oct 23 2011
    • Posts 27
    • Points 465
    Adjust rubberbandding path Reply

    Hi,

    I have created several skill procedures that draw cutom paths.  The problem is that I don't see a preview while drawing the path, only a rubberbanding path with always has a with of 1.

    Idealy, I would see a preview while adding points to the path (like in the Create Path and create Multipart path functions).

    I hear you think, why don't you just make a multipart path template, but I want to use an options form to set different parrameters instead of having a huge list with template flavors.

     

    Thx

    Rik

    • Post Points: 20
  • Wed, Jan 9 2013 7:29 AM

    • dmay
    • Top 25 Contributor
    • Joined on Thu, Jul 17 2008
    • Allen, TX
    • Posts 393
    • Points 7,415
    Re: Adjust rubberbandding path Reply

    If you are using enterPath to draw your rubber banding path, then you can use changeEnterFun to change the width value on this enter function. By default, the changeEnterFun will cancel the current enter function and start the new one, but if you store off your points using an addPointProc, then you can have the changeEnterFun pick up the points that have already been entered.

    The first argument would be 'enterPath, the rest of the arguments would be the same as those you gave to the original enterPath call, except of course you would change the width and pass in some points if you want.

    Derek

    • Post Points: 20
  • Tue, Jan 15 2013 5:03 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Sun, Oct 23 2011
    • Posts 27
    • Points 465
    Re: Adjust rubberbandding path Reply

     Thanks for the info, but that doesn't really do what i want it to do.

     Maybe using a rubberbandingpath isn't the best way.

     

    Any idea how I can get a preview of what I'm drawing, like when creating a path or a mp path?

    • Post Points: 35
  • Tue, Jan 15 2013 7:13 AM

    Re: Adjust rubberbandding path Reply

    You don't have quite as much control when using the public API (some things are only possible from the C level too). You should contact customer support to request the ability to do this with justification as to what is different about what you're trying to do from the built-in capability.

    Kind Regards,

    Andrew.

    • Post Points: 5
  • Mon, Jan 21 2013 8:20 AM

    • lrlsk
    • Not Ranked
    • Joined on Fri, Nov 30 2012
    • Posts 9
    • Points 90
    Re: Adjust rubberbandding path Reply

    Hi Rik,

     I think Derek is right. if you are using enterPath then you should be able to update the rubberband preview as you like. below is an example

    procedure( createBuschangeStat()
     changeEnterFun(
         'enterPath ?prompts list("Enter Points","Enter next Point")
                ?form BusForm
         ?points prevPoints
         ?addPointProc "ListPrevPts"
         ?delPointProc "ListPrevPts"
               ?doneProc "DlgLayCreateBus"
         ?pathWidth BusForm~>busWidth~>value
         ?cmdName "bbbb"
                      )
        t
        )

     this is just the callback procedure in a createBus skill. the rubberband width is defined by the ?pathWidth which is kept updated everytime a user changes one of the input (for example width of wire or spacing between wires of a bus channel).

    The cmdName "bbbb" I have used to avoid nesting of enterfunction, in-case user hits the assigned bindkey several times.

     I hope this helps.

    BR ~lrlsk

     

    • Post Points: 20
  • Mon, Jan 28 2013 12:34 AM

    • RVERP
    • Top 500 Contributor
    • Joined on Sun, Oct 23 2011
    • Posts 27
    • Points 465
    Re: Adjust rubberbandding path Reply

     Ok, I think I will use this one.

     thanks

    • Post Points: 5
Page 1 of 1 (6 items)
Sort Posts:
Started by RVERP at 09 Jan 2013 05:29 AM. Topic has 5 replies.