Index » PageStream Support » Windows » GetSelectedObjects |
Sign in to add a comment. | Pages: 1 |
2006-08-10 18:59:51 CT | #1 |
---|---|
andremonerau From: Unknown Registered: 2004-11-18 Posts: 7 |
La fonction "GetSelectedObjects" ne fonctionne plus dans la version 5.0.3.3 Le script ci dessous fonctionne très bien en 5.0.2.1 mais pas en 5.0.3.3 This is a machine translation by Internet. Excuse me, but I do not speak André MONERAU. Windows XP, pentium4 and PAGESTREAM, c'est le pouvoir! # 2 segments perpendiculaires à 2 droites sélectionnée from math import * # CHECK FOR LINE OBJECT */ Objets = GetSelectedObjects("idlist", "maliste") D1 = Objets['maliste']['0'] if Ligne1['.error'] == 0 or Ligne2['.error'] == 0: CursposPoint = GetCoord("stem","message","cliquer au point de passage") x1p1 = Ligne1['bouts']['top'] Num1 = (xp-x1p1)*(x1p2-x1p1)+(yp-y1p1)*(y1p2-y1p1) x1h = x1p1+lembda1 * (x1p2-x1p1) SetToolMode("LINE") x2p1 = Ligne2['bouts']['top'] Num2 = (xp-x2p1)*(x2p2-x2p1)+(yp-y2p1)*(y2p2-y2p1) x2h = x2p1+lembda2 * (x2p2-x2p1) SetToolMode("LINE") DrawLine(y2h, x2h, yp, xp) SetToolMode("OBJECT")
|
2006-08-10 18:12:42 CT | #2 |
---|---|
Danny Boy From: United States Registered: 2006-03-21 Posts: 290 |
Well, I am no expert, but the output I got was: D1 = Objets['maliste']['0'] Which tells me that >D1 = Objets['maliste']['0'] should be: D1 = Objets['maliste'][0] Does that work for you? Dan >La fonction "GetSelectedObjects" ne fonctionne plus dans la version 5.0.3.3
Dan Kilroy - Sales <sales@pagestream.org> Grasshopper LLC |
2006-08-11 14:07:13 CT | #3 |
---|---|
andremonerau From: Unknown Registered: 2004-11-18 Posts: 7 |
Well, I am no expert, but the output I got was: D1 = Objets['maliste']['0'] Which tells me that >D1 = Objets['maliste']['0'] should be: D1 = Objets['maliste'][0] Does that work for you? Dan Cela marche parfaitement. Bravo encore a Pagestream et aux gens comme vous qui aident tous les André MONERAU. Windows XP, pentium4 and PAGESTREAM 5 pro, c'est le pouvoir!
|
Sign in to add a comment. | Pages: 1 |
Index » PageStream Support » Windows » GetSelectedObjects |