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.
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.