View Single Post
  #2  
Old 26-05-2006, 15:07
wOxxOm's Avatar
wOxxOm wOxxOm is offline
Senior Member
 
Join Date: Mar 2005
Posts: 836
Default

just fast tips, going home now:

Code:
dim sh as shape, n as node, x as double, y as double, shift&
if activedocument.getuserclick (x,y,0,true,cdrCursorNodeEdit)=0 then
  set sh=activepage.selectshapesAtPoint(x,y,true)
  if sh.shapes.count>0 then
    set sh=sh.shapes(1)
    set n=sh.Curve.FindNodeAtPoint(x,y)
    if not n is nothing then
      n.breakapart
      sh.curve.nodes.last.joinWith sh.curve.nodes.first
    end if
  end if
end if
this code was written just in two minutes here, in browser, I didn't test it


by the way I do this operation manually (very rarely) - here is a tip: assign j to node-join, Shift-J to node-break-apart, then double click you node - you will enter node-edit with this node selected, press Alt-J, draw a marqee around two resulting nodes, press J

Last edited by wOxxOm; 26-05-2006 at 15:10.
Reply With Quote