Setting stroke weight of adiacent cell

Hello,
I would like to know if there's a way to do this:
I have a series of tables which have to be formatted in a specific way. Unfortunately, with the table formatting options I'm able to do only a part of these formattings; so the question is: how can I set the stroke weight of a cell border based on an adiacent cell?
See attached image for explanation
Hope someone can help me!
Thanks in advance

Hi,
since nobody gave me answer, I answered myself with this JavaScript:
var myDoc = app.activeDocument;
var totTxtFrames = myDoc.textFrames;
for(i=0; i<totTxtFrames.length; i++){
    myTxtFrame = totTxtFrames[i];
    totTables = myTxtFrame.tables;
    for(j=0; j<totTables.length; j++){
        myTable = totTables[j];
        totRows = myTable.rows;       
        for(k=0; k<totRows.length; k++){
            myRow = totRows[k];
            myRowIndex = myRow.index;
            totCells = myRow.cells;
            for(n=0; n<totCells.length; n++){
                    myCell = totCells[n];
                    if(myCell.rowSpan > 1){
                        myCellSpan = myCell.rowSpan;
                        if(myCell.bottomEdgeStrokeWeight == 0.5){
                                totRows.item(myRowIndex + myCellSpan - 1).bottomEdgeStrokeWeight = 0.5;
                    else{
                        myCellSpan = myCell.rowSpan;
                        if(myCell.bottomEdgeStrokeWeight == 0.5){
                                totRows.item(myRowIndex + myCellSpan - 1).bottomEdgeStrokeWeight = 0.5;
Hope might help someone with the same problem
Cheers!

Similar Messages

  • Set Stroke weight for a frame not working in CS4.

    Hi All,
    How to set Stroke weight for a frame.
    I tried using CreateStrokeWeightCommand of IGraphicAttributeUtils, but its not working in CS4.
    Regards,
    Jasmine
    Message was edited by: Jasmine_Shaikh

    Hi All,
    CreateStrokeWeightCommand of IGraphicAttributeUtils works only when if the frame has some stroke weight already applied to it.
    So do i need to set something else before using CreateStrokeWeightCommand to make it work programatically on a frame with no stroke weight.
    Jasmine

  • How do I auto set stroke weight, stroke colors & fill color?

    Hi,
    I'd like to make it easier for our 100,000 designers to use AI to make custom products using a laser cutter.
    Current Practice
    Designers open our AI laser cutting design templates, add their designs using the AI settings our online pricing system can read, then upload their designs to our website for instant pricing, making and shipping.
    The Problem
    Designers have to manually setup AI with settings that can be read by our online pricing system. If they get these settings wrong, our system can not read their designs. So they are rejected and can not be priced or made. This happens more often that you'd imagine.
    The Solution
    Designers do not like design rejections. So I'd like to eradicate them by providing our designers with a version of AI that provides the following settings only:
    * Set document to RGB
    * Stroke weight = 0.01mm
    * Stroke colors = RGB 0, 0, 255 and 255, 0, 0
    * Fill color = RGB 0, 0, 0
    This will mean designers have a very limited number of AI choices, with nothing to distract them or to get wrong. Which will result in less (or zero?) design rejections. And products made faster than before. Rejoice!
    Question
    How do we program our AI laser cutting design templates so that when they are opened in AI, they auto set AI settings as defined above?
    Thanks so much.
    Derek

    Ponoko wrote:
    Your first point - yes, that's what our system does currently. As a result designers get lots of 'how to fix' messages as a result of design rejections. We wish to reduce these rejections and resulting 'how to fix' messages by limiting their choices in AI - because this is where the problems are created.
    Ok, yeah gotcha, so customers/designers think they do it right (cough/laugh) upload, then get surprised to find out they didn't by your upload system. That's kind of what I thought. I feel your pain. ;-) I sense you want to reduce this aspect to keep the customers/designers happy and thinking they do nothing but work magic all day right? ;-) So you don't want to lose customers in the midst of frustration of file rejection thinking there files are right and your system is certainly wrong, when in fact it's the opposite. Good luck explaining that to a designer however, right? ;-)
    Ponoko wrote:
    Your second point - You go on to talk about using a complex "action" we could distribute within the design templates. Although I suspect this is different, the path we're thinking is to include something in the templates that, when imported into AI, sets AI with the color palette we need, line weight we need. Possible?
    As Monika hinted at you can't rigidly restrict or control what a user is allowed to do and use in Illustrator. You can try to reduce the parameters by saving the file as a Template.ait file, but even then they can muck about all day until they mess things up again, plus you have no control whatsoever even then as to whether they use fills, the stroke weights, etc. That is why I mentioned various things to manipulate the file once they deem it completed and ready to submit/upload. Basically a method to fix what they messed up or did incorrectly and instead set things as they should be for submission as I previously mentioned. I mentioned you may be able to create a complex Illustrator "action" action.aia that they run to process these requirements. I am not sure if such an action could be accomplished as all inclusive (perhaps though) otherwise you could as stated do it through scripting and a script they run: script.jsx to prepare the requirements, or an actual standalone helper app you create and provide like I mentioned above as well.
    I see for CorelDRAW & Inkscape you require SVG, why not change that for Illustrator also so all your 2D app submissions are SVG based? Then manipulate the SVG server side, point out the changes and why and have the customer approve the new modified SVG Preview of the needed changes and move along with the process from there? Make all the requirement changes on the server by manipulating the SVG. You should have access to all of the requirements: RGB color model, stroke weight, stroke colors, fill colors, create font outlines, image tracing? I am just tossing out ideas here, get your programmers busy, tell them to stop playing video games and "make it so". ;-)
    But even so, this then begs the question: What are you doing to circumvent the same issues for inept CorelDraw and Inkscape users?
    Since, they have the same freedom to do things incorrectly and misaligned with the requirements, just as Illustrator users do.
    Regardless though of the approach customers/designers may not like seeing certain things changed even minutely in trivial amounts and thusly be just as upset or up in arms with the changes to their pretty design files that they think were not needed in the first place, how dare you undermine them ;-). Same as seeing the file rejection from your system upon upload. Again I feel your pain. You have your Application/File requirements requirements stated nicely and plainly, it should be pretty easy for most, but sadly I guess not.

  • Need some help in finding a specific stroke weight...

    My preflight program is flagging illustrations with less than a .2 stroke weight and finding these instances can be a reall bugger. The preflight will give the >.2 value so I tried going back to the illustration and creating a line with the offending pt value and selecting same stroke weight but it won't select them. Once I have manually found the small stroke weight I've compared the two strokes for any differences but it won't select even when the color is the same and stroke=default appearance. Once I select the original line and do the select same stroke than it finds the other instances just fine. Anyone know whats going on? I'm using Illustration CS4 and the files are all .ai.
    Any help would be much appreciated!

    For anyone looking at thread I found a quick solution on the forum...
    17. Jan 6, 2009 10:26 AM in response to: (Alesclandre)
    Re: Thousands of paths take a huge time to treat !
    > So what I wanted to do is to force all the paths that were thinner than 0.25 to 0.25. I think I can't do it inside Illustrator. But maybe I'm wrong ?  1. Line Tool: Draw a line. Give it a stroke of .01 pt.
    2. Magic Wand Palette: Set Stroke Weight Tolerance to ".24 pt"
    3. Magic Wand Tool: Click the line you drew in step 1.  Paths with stroke weight of .25 pt or less should be selected.  JET

  • Setting the default object style or stroke weight of a document

    i can select items and apply created object styles, but i want to change a documents defaults BEFORE i create something?
    backgorund - i need to add my logo to the bleed area of my document but i find that if a document has a default of say 5pt stroke weight then it fails when trying to draw my logo before I have a chance to change it saying
    "Adobe InDesign CS2 got an error: Requested operation would cause one or more objects to be too small.
    Please check whether the stroke weight is too large."

    Could you be please more precise ?
    If I got the idea, you want to place everytime your logo in the bleed area.
    I will first set the bleed area with these instructions :
    app.activeDocument.documentPreferences.documentBleedUniformSize = true;
    app.activeDocument.documentPreferences.documentBleedTopOffset = 5;
    then i will create a rectangle at the point -5,-5
    var myframe = app.activeDocument.rectangles .add({geometricBounds:["-5","-5","0","25"]});
    //dimensions are what you want
    then place the logo.
    var myfile = File("logo");
    //logo is a filepath "/c/..."
    myframe.place(myfile);
    Here you are,
    A+ Loic

  • Line shifts when I increase stroke weight

    Hi,
    I'm using strokes in a document. I have a series of lines that are centered on grid lines; however, when I increase the stroke weight, the line moves as if the top edge of the stroke is anchored and not the center of the line.
    I am unable to find any setting to change this, but it is really making my work difficult. Can anyone help with this?
    Thanks!

    gleake,
    In cases like this, the first guess is Align to Pixel Grid.
    You may select everything and then untick Align to Pixel Grid in the Transform palette, and also untick Align New Objects to Pixel Grid in the flyout options.
    You may avoid document types with that as default (RGB for web and the like) or change the default for such documents.

  • CS6, setting line weight/style

    How can I set a stroke weight and style as a default so that once set I can continue to draw in that weight and style? For example, in order to draw blades of grass I'd like to set my stroke to a certain thickness and also a predifined color and taper. I don't want to create a bunch of lines, select them all and THEN make the change. I want to draw in "real time", not have to go back later to make changes by either changing the properties or applying a style or brush.
    Setting a default is what I am looking for here.
    Thanks

    Appearance panel: see in the panel menu the setting "New object has basic appearance". This has to be OFF. Then set your appearances and draw on.

  • Illustrator CS5 stroke weight problem

    Hi,
    I have a problem with my new illustrator cs5. So for example, if I make a box and I want to change the stroke weight to .25 (anything less than 1) it keeps changing back to 1pt, and I cannot reduce the size of the weight. I tried to reinstall it and the problem still there. What should I do? or how to reset all the setting to the original setting? I'm so frustrated right now.
    Thank you very much for your help, I really appreciate it

    This recent discussion might be helpful:
    http://forums.adobe.com/message/2961586#2961586
    If not, let us know. And please identify your OS.

  • Stroke weight on table doesn't match non-table strokes?

    Hi,
    I've experienced this anomoly in CS2 and CS3.
    If I set a table stroke to 0.25, and place a "non-table" stroke (eg. a line or paragraph rule) close to this table for comparison, also set to 0.25, then export to PDF and print the result, the table stroke is noticeably heavier than the other strokes. On screen (both in Indesign and Acrobat) the lines appear identical - the difference is only apparent in the print. The effect is more noticeable on strokes set to a colour other than 100% black (probably because a dot pattern is used to print rather than solid toner).
    To compensate for this, I find setting the other strokes to about 0.35 gives the same appearance as a table stroke set to 0.25.
    This is quite odd, isn't it?
    It could be an issue with the printer (Fuji-Xerox DocuColor 5065), but I'd appreciate it if someone could check and see if they get the same result.
    Thanks,
    Pete.

    Thanks for the reply, Scott.
    This is a universal problem - all table strokes are slightly heavier than they should be.
    It doesn't matter what the stroke weight is set to - it's just most noticeable with a fine stroke such as 0.25.
    After some more tests, I've found that PDFs coming out of Indesign (all flavours), prints directly from Indesign, and artwork printed to Postscript from Indesign and then run through Distiller display this problem. However, PDFs opened and then resaved from Illustrator print with the table strokes at the correct weight.
    So I'm concluding that the problem is with the Indesign PDF/printing engine.
    Can anyone add anything further? Is this bug documented?

  • Stroke Weights when resizing

    I have made a logo design which uses both filled sections and a 1pt weighted line.
    But when I resize the logo the stroke weight doesnt shrink accordingly with the design so I have a massive fat line in the design.
    I know theres a setting to choose to fix strokes to shrink or expand inkeeping with the design... How???

    Thanks very much, you've just saved me a night of looking through Illustrator for Dummies :)
    How appropriate :)

  • Stroke weight

    I am new to Illustrator CS4 (win XP)
    When I draw/select a line I see the stroke weight im MM
    however when I click in the weght box to change the line thickness they are all in points.
    I have set the defaults to be mm in edit preferences, yet I cannot see that in the weight window.
    How do I see mm in the weight window of stroke please?
    Thanks

    Thanks fir your reply Wade,
    I was hoping that there was some way to display mm in the drop down menu,
    but obviously there is not.
    Do you know if there is a relationship between points and mm?
    Regards
    Eddie Frankel
    Technical Officer
    Department of Primary Industries
    55 Collins Street
    Melbourne
    GPO Box 4440
    Melbourne
    Vic. 3001
    Phone: 03 9 658 4539
    Fax: 03 9 658 4555
    Email: [email protected]
    This e-mail and any attachments may contain information that is
    confidential, legally
    privileged and/or copyright. If you are not the intended recipient, any
    use, disclosure
    distribution or reliance on the information contained in this e-mail is
    unauthorised.
    You should only re-transmit or distribute the information if you are
    authorised to do so.
    If you have received this e-mail in error please notify the Department of
    Primary Industries
    by return e-mail and destroy all copies printed or held on any computer.
    DPI does not warranty that this e-mail and any attachments are free of
    viruses.
    Wade_Zimmerman <[email protected]>
    15/05/2009 04:22 PM
    Please respond to
    [email protected]
    To
    eddie frankel <[email protected]>
    cc
    Subject
    Stroke weight
    If you go to the preferences there is a settig for units and display
    performance and you set the weight to mm there.
    In the stroke weight field you manually input the weight measurement in
    order t see mm. If you use the drop down that remains for some
    mysterious reason in pts and there is nothing you can do about it  that I
    know of.

  • Stroke weight trigger in adjusment tool

    I cannot figure out how to trigger the 'stroke weight' tool for  text. I stumbled on it accidentally once,but cannot repeat. It remains grayed out and I cannot adjust. thanks.

    PCNoviceMesa
    Thanks for the reply. The details were from me personally, the Adobe document, and my blog post that is all my work and original thinking on these matters. I have not read any of SG's books.
    Styles
    http://www.atr935.blogspot.com/2013/07/pe-titler-part-2-styles.html
    In this blog post, also see OBSERVATIONS/"Creating and Saving User Created Style and Setting it as Default Style" where I reference the Adobe document http://help.adobe.com/en_US/premiereelements/using/WS4B05EC56-1783-4c58-ACE5-F4D9657DF46B. html
    Text Animations
    http://www.atr935.blogspot.com/2013/07/pe-titler-part-1-text-animations.html
    I do not write or sell books and am not affiliated with Adobe in any way. Please let us know if you have further questions or need clarification on anything written.
    Thanks.
    ATR

  • "Save as PDF" stroke weight

    When I save an Illustrator file as a PDF, the stroke weights often look substantially heavier than the original when the document is viewed in Acrobat or Reader. It almost looks like all strokes less than 1pt. are displaying at 1pt no matter how small they actually are. If I open the PDF in Illus. stroke weights are correct. Is there a way to fix this, possibly something having to do with transparency and/or flattening?
    I often have files in which the same artwork is used both at full scale and substantially reduced, and the heavier stroke weights distort the appearance. Turning the strokes to outlines fixes the PDF display problem but screws up the source file.
    Thanks, Susan

    Found another related discussion thread (the phrasing was different enough it didn't show up when I searched the forum initially) which has this solution for the viewer:
    "over on the indesign forum, someone suggested turning off the "enhance  thin lines" option (in reader), and that does the trick.  Unfortunately,  other viewers won't know to do this without some instruction---  I  wonder if there is some line weight threshold where the "enhance" effect  kicks in?"
    So I did a little test, looks like the threshold is 1pt. Made a test file with line weights of 0.1pt, .25pt, .5pt, 1pt, 2pt. At 100% zoom 1pt and everything smaller looked the same. At 400% zoom line weights looked proportional down to .25pt.
    I wish there was a way to turn off the enhance thin lines option in the file itself.

  • How to set exponential format for a cell?

    Hello! Can someone advise how to set exponential format for a cell in Numbers?

    Hi Alejandro,
    If you mean 1000 as 1E+03
    Format Panel > Cell > Data Format > Scientific
    Regards,
    Ian.

  • Problems with Illustrator CS6 not accepting stroke weights with decimal points

    So I have been using Illustrator for almost 10 years and have never run into this one. When enter a stroke weight on a line with a decimal point like .25 or 4.5 is keeps rounding the number up. For example I enter 0.75 and it makes it 1 point or I enter 5.5 and it makes it 6 point. Whether I enter the number manually or pick from the drop down (0.25, 0.5 or 0.75) it keeps rounding my strokes to even numbers. How did I do and how do I fix it?

    Thanks from me too! Was also very frustrated by this.

Maybe you are looking for

  • Response Time of a query in 2 different enviroment

    Hi guys Luca speaking, sorry for the bad written english the questions is: The same query on the same table, for definition, number of rows, defined on the same kind of tablespace, the tables are analized *) I have a query in Benchmark with good resu

  • Can I back-up my iPod Touch without syncing?

    I use my iPod mainly for podcasts, which I don't want to keep once I've listened to them. Now that I can download them via wifi and delete them right on the iPod, I see no reason to download the podcasts to iTunes. But I still would like to back-up m

  • How to kill the hanged JFrame in swing?

    How to kill the hanged frame in swing? I am opening multiple JFrame and working on them.These frames are plcaed in JDesktopPane. If one frame is hanged up then i could not work on others . I need to kill the hanged frame. Assist me.

  • Simplest way to support additional displays?

    I have a PowerMac G4 with dual 450MHz processors, and an ATY,Rage128 Pro graphics card that came with the system. I would like to support another VGA display. I have seen several questions on this forum with regards to specific graphics cards, and al

  • HT5165 Why I can't open my Facebook acount in my iPad ?

    Please help me, I don't know what I'm doing, suddenly I can't open my Facebook acount in my iPad....