-
1. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
John Hawkinson Nov 6, 2011 11:14 PM (in response to Green4ever)Green:
The Data Browser is not reliably. In particular, if you have not accessed myFrame's properties, The ESTK does not have access to the DOM object details unless you access some properties of myFrame. So this behavior of the data browser is not surprising, and I am not sure that it is releant to your problem.
What happens if you use "0" rather than "0pt"? Or, for that matter, 0 (not a string)? Or the strings "0p0" or "p0"?
-
2. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Green4ever Nov 7, 2011 12:09 AM (in response to John Hawkinson)Hi John,
What happens if you use "0" rather than "0pt"? Or, for that matter, 0 (not a string)? Or the strings "0p0" or "p0"?
Note: I have set the preferences to pt
I've tried using both string representation "0" and "0pt" and also tried 0 (not a string). None of them is not worked for me...
---
Green4ever
-
3. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Marc Autret Nov 7, 2011 12:42 AM (in response to Green4ever)Hi Green4ever,
[Sorry, it's not the right code. I can't test now]
I guess that {strokeColor:'none'} supersedes {strokeWeight:0}. Try this:
myFrame = myDoc.pages[1].textFrames.add({strokeColor:'None'});@+
Marc
-
4. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
liedzeit Nov 7, 2011 5:34 AM (in response to Green4ever)I had the same problem.
Try this:
app.documents.item(0).pageItemDefaults.strokeWeight=0;
And check that you do not have a default objectstyle with strokeWeight 0
Ralf
-
5. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Laubender Nov 7, 2011 11:46 PM (in response to Green4ever)Green4ever:
Use strokeColor and strokeWeight together.myFrame = myDoc.pages[1].textFrames.add({ strokeColor:"None", strokeWeight:0 });I think your problem stems from the default object style [Basic Text Frame] automatically applied to every new text frame. So check the properties there.
Uwe
-
6. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Green4ever Nov 8, 2011 3:09 AM (in response to liedzeit)Hi liedzeit,
I tried your suggestion it didnot work.
And check that you do not have a default objectstyle with strokeWeight 0
Yeah I checked in the default object style stroke weight is set to zero.
-
7. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Green4ever Nov 8, 2011 3:13 AM (in response to Laubender)Hi Laubender,
The default object style [Basic Text Frame]'s stroke weight is set to zero. Eventhough your sugestion worked for me. Thank U....
-Green4ever
-
8. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Green4ever Nov 8, 2011 3:24 AM (in response to Marc Autret)Hi Marc Autret,
May be You are right....
myFrame = myDoc.pages[1].textFrames.add({strokeColor:"None",strokeWeight:0});This Code worked for me...
---
Green4ever
-
9. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Laubender Nov 8, 2011 4:24 AM (in response to Green4ever)Hi Green4ever,
If it's not [Basic Text Frame], I wonder why that will happen…
Do you have an idea?Uwe
-
10. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
pkahrel Nov 8, 2011 6:36 AM (in response to Green4ever)But with Marc's code:
myFrame = myDoc.pages[1].textFrames.add({strokeColor:"None",strokeWeight:0})the stroke weight is still the standard 1 pt (or whatever it is). For Marc's solution to work well, you should set the stroke weight to 0.00000001 pts, which is as thin as you can get it.
Peter
-
11. Re: textFrames.add({strokeweight:0}) is not working properly in indesign CS5 Win Xp
Green4ever Nov 8, 2011 8:02 PM (in response to pkahrel)Hi Peter and Laubender,
the stroke weight is still the standard 1 pt (or whatever it is). For Marc's solution to work well, you should set the stroke weight to 0.00000001 pts, which is as thin as you can get it.
If you give stroke color and stroke weight together it works fine.
As Marc Autret said, beacuse of stroke color value it takes a deafult strokeweight value. (I think this may be a cause)....
I guess that {strokeColor:'none'} supersedes {strokeWeight:0}.
Thanks,
Green4ever



