Change stroke width of frames

Hi Friends,
How to change stroke width of all frames eg:rectangle frame, ellipse frame, polygon frame.
Regards,
Balaji

Okay, it does not work. So what doesn't work?
(After trying) oh, it says this
Error Number: 55
Error String: Object does not support the property or method 'PageItem'
Your selection already is a page item (or it should be, when you selected just "objects"). Use this instead:
var change = app.selection;
for(var idt=0;idt<change.length;idt++)
  change[idt].strokeColor = "None";
  change[idt].strokeWeight = 0;
There is a slight over-kill here, because setting the stroke color to [None] will automatically set the weight to 0, but that's nothing dramatic.

Similar Messages

  • A way to change stroke width on form boxes?

    Although I'm aiming to have people digitally use these forms, there exists a good chance that some will be filled out by hand. When I print these forms out the form field boxes are rather small and surrounded by a thick border.
    Is there a way to change the form field box size?
    Is there a way to chance the stroke width surrounding these boxes?
    Thanks!

    I am guessing that the form filled by hand will be done via printing the PDF form. Is this correct?
    You can resize the field box in the Design tab in FormsCentral by drag and drop of the bottom right corner of the field editable box (true for multi-line text field). To increase the height of single line text field then you need to use a bigger font by selecting the form element on the form and chaging the font size in toolbar.
    You can not change the border color or thickness for the HTML web form but you can do some post-editing of the form in Acrobat if you want to modify the borders in the PDF file.
    Gen

  • Change Stroke Width percentally for selected object

    The user needs to be able to change the stroke width of their selection. Make all strokes twice as thick, for example, regardless of whether the selected strokes have different widths. This needs to be an effect as well, so it can be applied to symbols.

    I see the next..
    1. first point, x=306 px
    2. second point, x= 305.5 px ! (
    Set to - No Fill and No stroke only two point and X is changed (
    Align stroke to Center ? From image we have see align to Outside ?

  • Change stroke width with AS3?

    So, I have a movie clip which consists of a filled vector circle with a stroke. Is it possible to increase/decrease the stroke to a specific thickness in pixels with actionscript whilst the swf is playing?
    Thanks
    T

    If you draw a circle dynamically using graphics API then its possible to chage the stroke by using lineStyle method.
    But if that circle has already been drawn and placed in the stage, I don't think you can change it's stroke.
    Can I ask, why don't you draw it dynamically using actionscript. It's so easy.
    //make sure you import relavent apis
    import flash.display.LineScaleMode;
    import flash.display.CapsStyle;
    import flash.display.JointStyle;
    public var _cricleObj            :Sprite;
    public var _lineSize            :Number    = 1;
    //Now draw your circle
    _cricleObj = new Sprite();
    _cricleObj.graphics.lineStyle(_lineSize, 0xFFFF00, 1, false, LineScaleMode.VERTICAL, CapsStyle.NONE, JointStyle.MITER, 3);
    _cricleObj.graphics.beginFill(0xFF,1);
    _cricleObj.graphics.drawCircle(0,0,50);
    _cricleObj.graphics.endFill();
    _cricleObj.addEventListener(Event.ENTER_FRAME, reDrawCircle);
    public function reDrawCircle(e:Event):void
                _lineSize +=1;
                _cricleObj.graphics.clear();
                _cricleObj.graphics.lineStyle(_lineSize, 0xFFFF00, 1, false, LineScaleMode.VERTICAL, CapsStyle.NONE, JointStyle.MITER, 3);
                _cricleObj.graphics.beginFill(0xFF,1);
                _cricleObj.graphics.drawCircle(0,0,50);
                _cricleObj.graphics.endFill();
    thats all.

  • After use AffineTransform change also width of stroke

    Hi, may be you can help me. After use AffineTransform change also width of stroke. I want to paint a function graph and calculate that values but tje width of pen is also changed. May be, do I something incorrectly.
    import javax.swing.*;
    import java.awt.*;
    import java.awt.geom.Rectangle2D;
    import java.awt.geom.AffineTransform;
    import java.awt.geom.Point2D;
    import java.awt.event.ActionListener;
    import java.awt.event.ActionEvent;
    import java.awt.print.*;
    public class MyFrame extends JFrame {
         public static final double MM_TO_PAPER_UNITS = 1 / 25.4 * 72;
         public static double widthA4 = 210 * MM_TO_PAPER_UNITS;
         public static double heightA4 = 297 * MM_TO_PAPER_UNITS;
         public static double leftMargin = 4.0 * MM_TO_PAPER_UNITS;
         public static double topMargin = 4.0 * MM_TO_PAPER_UNITS;
         JButton button;
         MyPanel panel;
         GridBagConstraints gridBagConstraints;
         public void init() {
              panel = new MyPanel();
              button = new JButton("Print");
              getContentPane().setLayout(new GridBagLayout());
              setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
              gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.fill = GridBagConstraints.BOTH;
              gridBagConstraints.weightx = 1.0;
              gridBagConstraints.weighty = 1.0;
              add(panel, gridBagConstraints);
              gridBagConstraints = new GridBagConstraints();
              gridBagConstraints.gridx = 0;
              gridBagConstraints.gridy = 1;
              add(button, gridBagConstraints);
              setSize(500, 500);
              button.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        PrinterJob printJob = PrinterJob.getPrinterJob();
                        PageFormat pf = printJob.defaultPage();
                        pf.setOrientation(PageFormat.LANDSCAPE);
                        Paper paper = pf.getPaper();
                        paper.setSize(widthA4, heightA4);
                        paper.setImageableArea(leftMargin, topMargin, widthA4 - 2
                                  * leftMargin, heightA4 - 2 * topMargin);
                        pf.setPaper(paper);
                        printJob.setCopies(1);
                        Book book = new Book();
                        book.append(panel, pf, 1);
                        printJob.setPageable(book);
                        if (printJob.printDialog()) {
                             try {
                                  printJob.print();
                             } catch (Exception PrinterExeption) {
                                  PrinterExeption.printStackTrace();
              setVisible(true);
         public static void main(String[] args) {
              MyFrame myFrame = new MyFrame();
              myFrame.init();
         class MyPanel extends JPanel implements Printable {
              final int leftPadding = 20;
         final int rightPadding = 10;
         final int topPadding = 10;
         final int bottomPadding = 20;
              protected void paintComponent(Graphics g) {
                   super.paintComponent(g);
                   Graphics2D g2 = (Graphics2D) g;
                   paingMyGrafik(g2);
              public int print(Graphics graphics, PageFormat pageFormat, int pageIndex) {
                   Graphics2D g2 = (Graphics2D) graphics;
                   // affine transformation for grip of the panel`s content to the size
                   // A4
                   double W = pageFormat.getImageableWidth();
                   double H = pageFormat.getImageableHeight();
                   double minX = pageFormat.getImageableX();
                   double minY = pageFormat.getImageableY();
                   g2.transform(new AffineTransform((W) / this.getWidth(), 0, 0, (H)
                             / this.getHeight(), minX, minY));
                   paingMyGrafik(g2);
                   return 0;
              private void paingMyGrafik(Graphics2D g2) {
                   // here paint i my grafik
                   AffineTransform old = g2.getTransform();
                   g2.transform(toEndCoordinate());
                   BasicStroke stroke = new BasicStroke(0.2f, BasicStroke.CAP_BUTT,BasicStroke.JOIN_MITER);
         g2.setStroke(stroke);
                   g2.drawLine(1899, 20, 1901, 20);
         g2.drawLine(1901, 20, 1901, 25);
         g2.drawLine(1901, 25, 1905, 26);
                   g2.setTransform(old);
              private AffineTransform toUsualyCoordinate(){
    AffineTransform at = new AffineTransform();
    //mirror reflection relative to ox
    at.concatenate(new AffineTransform(1,0,0,-1,0,0));
    //parallel shift (x,y) -> (x, y-h)
    at.concatenate(AffineTransform.getTranslateInstance(0,-this.getHeight()));
    return at;
    private AffineTransform toEndCoordinate(){
    AffineTransform at = new AffineTransform();
    at.concatenate(toUsualyCoordinate());
    at.concatenate((new AffineTransform((double)(this.getWidth()-leftPadding-rightPadding)/this.getWidth(),0,0,(double)(this.getHeight()-topPadding-bottomPadding )/this.getHeight(),leftPadding,bottomPadding)));
    at.concatenate(new AffineTransform(-this.getWidth()/(getMinX()-getMaxX()-2),0,0,this.getHeight()/(getMaxY()-getMinY()+10),this.getWidth()*(getMinX()-1)/(getMinX()-getMaxX()-2),-this.getHeight()*(getMinY()-5)/(getMaxY()-getMinY()+10)));
    return at;
              private int min(int a, int b) {
                   return (a < b) ? a : b;
              private double getMinX(){
                   return 1900;
              private double getMaxX(){
                   return 2000;
              private double getMinY(){
                   return 20;
              private double getMaxY(){
                   return 30;
    }

    The right answer is here ( http://www.javable.com/forum/thread.jspa?messageID=100080&#100080)
    It is necessary to apply BasicStroke before use AffineTransform.
    GeneralPath gp = new GeneralPath();
    g2.setStroke(stroke);
    gp.lineTo((float) xval, (float) yval);
    g2.draw(gp.createTransformedShape(transform));--------

  • Change Automatic Stroke Width?

    Doing very complicated work that needs me to constantly switch an object from stroke to fill, except the stroke width of 1 is way too huge at the scale I work at so every time I change it I also have to specify the stroke as 0.1 so I can see what I'm doing. 
    Has anyone heard of a way I can set the stroke width it automatically goes to?

    Well yes in that circumstance, yes it does seem to work that way But I do not actually recall myself ever using that function.
    I t would not be a bug since the weight appearance is sticky and you have swap it to 0 an it is no longer .1 so it defaults back to 1.
    As I wrote if you don't change the line weight then you are fine and so if you have to do tis for some reason you would have to change the stroke weight back to .1 as I indicated.
    It makes sense to me the OP indicated they want to keep the stroke weight consistent throughout the whole art creation procedure for that document so I do not see how this could possibly interfere with that scenario?

  • Cell border stroke width is STUCK.

    Sometimes, after selecting a range of cells and attempting to put a thick border around the whole set, when change the stroke width from the default of .25 (after selecting "Thick" [the heavy line] for type of stroke), it will not change -- it is stuck on .25, no matter what I do. I pull down to, say, 1.5 and it just pops back to .25.
    This is a seemingly random problem -- often I have no problem changing the stoke width and creating exactly the sort of border I want.
    Anyone got an idea of what I am doing wrong?
    --JT

    Unknown behavior and, as it behave on a random basis it will be difficult to identify it.
    Assuming that something may be corrupted in the document, may you apply this scheme :
    save as Numbers '08 document
    Close the original document
    From Numbers '09, open the Numbers '08 version.
    If some features were dropped( functions unavailable in Numbers '08), restore them.
    With a bit of luck, the oddity will be gone.
    A more drastic cleaning would rely upon an export as Excel or as CSV.
    Of course, you may send the file to my mailbox but there is no guarantee that the problem surface here.
    In case, click my blue name to get my address.
    Yvan KOENIG (VALLAURIS, France) vendredi 27 mai 2011 09:08:59
    iMac 21”5, i7, 2.8 GHz, 4 Gbytes, 1 Tbytes, mac OS X 10.6.7
    Please : Search for questions similar to your own before submitting them to the community
    To be the AW6 successor, iWork MUST integrate a TRUE DB, not a list organizer !

  • How to change line width runtime?

    Hi,
    I want to change line width dynamically or runtime depending on certain conditions.
    I had written format trigger on line and used SRW.SET_BORDER_WIDTH but it does not work. so what is other possible solution for this?
    Thanks in advance.

    In your variable vertical elasticity frame put several fixed vertical elesticity objects (lines, frames, etc.) of different heights. In the runtime, suppress all the objects in their format triggers, but one with the height you need. The objects need to be made invisible by setting their color to white.

  • Scale path without affecting stroke width

    Hi all,
    This seems like it should be simple to do but I'm not having any luck here. Basically I have a path parented to a null that controls several things, scaling them down, rotating and moving across the composition. One of those items is a path with a stroke of 32 px.  I want to be able to scale the path itself down, but leave the stroke the same.
    I thought I could key the stroke width manually but that has no effect- scaling it up as the path scales down doesn't seem to change the stroke width at all at the end keyframe, only at the beginning keyframe. I see the px count start at 32 and increase up to as it moves along the timeline, even though the stroke width on screen is still getting smaller as if there were no change at all to the width.
    Thanks!

    You generally don't want to scale the layer that contains the stroke, you want add keyframes to the mask path and animate the size of the path. This is easy. You just start by double-clicking one of the vertices and using the transform box.
    If this technique does not work for you then you have two other options, both involving expressions. Both of these options use exactly the same expression to look at the scale of your null layer and both assume that the null is at 100% scale at the start of the animation. The option that I would choose would be to replace the mask path on a layer with stroke applied with shape layer path with stroke applied. You have so many more options and you're dealing with vector information. With either solution this is the expression.
    sf = thisComp.layer("Control Null 1").transform.scale[0]/100;
    ov = value;
    nv = ov / sf
    sf (scale factor) is the x scale value of the controlling null that is the parent of the stroke layer or the layer with the stroke effect applied to a mask divided by 100. If you intend to scale X and Y of the parent you'll have to modify the expression and then combine the scale factors and this solution will not work as well.  The original scale value is divided by 100 to turn it into a decimal value
    ov (original value)  is the original set value of the stroke.
    nv (new value) is calculated by dividing the original value by the scale factor.
    This is just basic algebra from the 7th grade. If your controlling parent is scaled below 0 then the stroke will go away because the value will change to a negative number. If this is necessary in your composition you can write an if statement that will change the nv back to a positive number if the scale factor becomes less than or equal to zero and solves the divide by zero error you would get with a scale factor of zero.
    One last point, and this is important. This expression will produce accurate results if applied to the brush size of a mask path when using the Effects>Generate>Stroke effect to create your line but when scaled over 100% the line will begin to fall apart and anti aliasing will not be able to keep up with pixilation caused by the scale. Over about 120% the line will start to look thinner and over 140% it will look bad even though the stroke width is numerically accurate.
    I'll let you take it from here.

  • How to edit stroke width after line is drawn?

    In Flash CS4, I'm trying to change the stroke width of my line or shape, with it selected, but the stroke width slider is greyed out (thus, unadjustable). Is it possible to edit a stroke width after something has been created? If so, how can this be done? I've tried selecting the line in all kinds of crazy ways, but still can't edit it.

    I don't have CS4, but in CS3, as long as you're selecting the raw drawn object, you can use either the slider or enter a new value in the box.  When you select the shape and line, does it appear all cross-hatched/speckled or is it a blue line surrounding it all?  If it's the blue line, then you're not down to the raw graphic yet.  You might also want to check to be sure the layer isn't locked.

  • Importing svg's stroke-width not scaled up

      I am trying to import an svg in the illustrator, and it has stroke-width of 30px  but its wasn't scaled up, its showing 1px of the stroke-width always, In preferences i have checked the option ' scale and transform the stroke-width ' and i have changed all the units into pixels. Still i am not getting that.
    Thanks.

    Thanks, Larry. On Mac and Win, double-clicking on the scale tool should also get you that dialog and the checkbox.

  • Stroke width not correct

    Hello.
    I am laying out a catalog with indesign and I am running into a problem.  I am trying to add a 1pt stroke to all of my images, and I notice that the stroke width is not consistent.  Some images appear to have more of a 4pt stroke while others appear to have 1pt.  They are all set to 1pt, but this setting does not seem to work on some images.
    What is going on?  or what am I doing wrong?

    The stoke is acquiring the scaling of the image frame.
    Select each image frame and then select Redefine Scaling as 100% from the Transform Panel menu.
    You may need to reset the stroke weight after that, too.

  • InDesign CS4 Strokes Inconsistent on frames

    Okay…I did some searching and haven't found anything on this unless I missed it somewhere. I work for a catalog company and we have a ton of old catalogs we pull from and reuse elements from and what we've found is that the strokes on the frames for boxes are not accurate even though all the attributes say they're identical.
    It doesn't seem to matter which version of OS X or InDesign we open the files up in they're different visually and when printed out.

    I also never use the scale tool, opting for KB shorcut modifiers and the selection tool, so the behavior isn't restricted to using the scale tool. When ID behaves this way it actually shows the scaled percentage, instead of always showing 100%, in the horizontal and vertical scale fields when selecting an object with the selection tool, which can be extremely helpful in some cases. Consider this frame:
    My daughter's cat is scaled evenly inside a frame that was scaled unevenly to create a border that's wider on the vertical legs than the horizontals, and while the stroke is listed at 5 pts, you can see in the scale fields that this was the value assigned when the stroke was created, but that the frame was modified. Looks a bit like a 35mm film clip.
    Changing the preference back to apply scaling to content makes it impossible to even create this frame. Whether that's good or bad would be a matter of opinion and whether your workflow should allow unbalanced strokes.
    Now that I've discovered it, I kind of like what it does with ellipses and freeform shapes drawn with the pen tool -- kind of a low-rent version of what you can do in Illustrator by applying a brush stroke. Thanks to you I've learned a new technique.

  • When drawing with the shape tool in Flash how can I vary the stroke width?

    I created an oval shape and I'd like to vary the stroke width so it's not all just one uniform thickness. However in the Properties window I can only find the uniform stroke width and style options (solid, dotted, hashed, etc...). How can I add some tapering?
    Thank you for your help.
    Sarah

    You probably need to convert the line to a fill and then change the shape of it. .. Modify -> Shape -> Convert Lines to Fills

  • Stroke width

    I don't seem to be able to change my stroke in brush or pencil. It keeps resetting back to basic stroke 1pt/basic/uniform. The only way I seem to be able to go around this problem is to first paint something and then select the stroke and choose the stroke width, etc., but that's too time consuming and very difficult to work. I am using CS 5. "New Art Has Basic Appearance" is unchecked.

    yisu,
    If you create a brush and use that, or just use a preexisting one, through the Brushes palette, you can have the paths look right while you draw with the Paintbrush Tool.
    You can do the same with the Pencil Tool, or just set the Stroke Weight before you draw the first path.
    Unless something has changed for the worse in the latest version(s).

Maybe you are looking for

  • Need info on who to call or write in order to receive reading of text messages

    I have heard from SEVERAL people that it is possible to get a reading of your text messages from Verizon if you are the account holder.  I have also heard that it may take some persistance in order to get this information & it is available w/o a cour

  • Starting Virtual Machine will not start from hibernate mode.

    Hi.  I had a BSOD and upon rebooting my machine one of my virtual machines is stuck in "hibernate" mode and will not boot up.   I attempted to restore to previous versions of the vmc, but that did not work. The error i receive is. "Could not enable i

  • I want to make a java chatroom

    i need help with the code. I got a url from my web hosting to a chatroom, but i can't figure out what the code should be. it is a blank page with no html code on it yet and here is the url provided to me for the chatroom. http://bloodhouse.org/cgi-sy

  • Change material Item Category

    Hi, maybe this topic already discuss in this Forums. Can help me. I have some question. When i create Order IW31 ( Module PM ) i put material in component which this material Item Category L ( Stock Item ). when i click button PURCHASING can not crea

  • Firefox sometimes does not display my tabs along the menu bar when two or less are open - is this a bug?

    When I have less than three tabs open after having more open, Firefox does not display the tabs along the menu bar. This means I can't see tabs when I have two open. Is this a glitch? Note: I am aware that I can set Firefox to always show the tabs, b