Mathematical formula for even dashed lines?

Is there a mathmatical formula for getting evenly distributed dashed lines in Illustrator? Something involving Pi, I assume.
I usually get double dashes next to each other or unevenly distributed dashes.
For example, I have a stroked circle with a width/diameter of 100 pixels. If I want 4 dashes with a dash of 0.5, I would need a gap of ???. If I wanted 64 dashes with 1 pixel dash, I'd need a gap of ???.

Navarro,
The perimeter, or path length, equals PI * diameter (3.141593 * W).
A Blend with one step less than the number of dashes applied to a circle with a cut where you wish to start/stop may be your friend, as may a rotation, by 360 degrees divided by the dash number, of the first dash along with a large enough concentric circle (this may be done as an Effect and possibly expanded).

Similar Messages

  • Essbase Error(1200329): Error compiling formula for [Asset Description] (li

    Hi,
    I am having some problem in debugging one error
    Detail:Cannot calculate. Essbase Error(1200329): Error compiling formula for [Asset Description] (line 37): invalid assignment
    I am just creating a Add asset script as my client does not have license to CapEx module.
    Script Below- please let me know what can be an issue
    VAR numAsset = [NumAsset];
    VAR usFulLife=[UsefulLife];
    FIX(@CHILDREN("Total New"), [Scenario], [Version], [Entity], [Department], [AssetClass],[Year],"BegBalance","Local", "HSP_InputValue")
    "Asset Description" (
    IF (numAsset > 0 AND @MAXS(SKIPMISSING, @CHILDREN("Asset Properties")) == #MISSING )
    numAsset = numAsset - 1;
              "Asset Status" = 0; /* flag to know this is a new asset*/
              "Asset ID" = [AssetID];
    "Asset Description" = [AssetDesc];
              "CAR No." = [AssetCAR];
              "Purchase Units" = [AssetUnits];
              "Purchase Amount(per unit)" = [AssetRate];
              "In Service Date" = [InserviceDate];
         /*     "Total Cost" = "Purchase Units" *"Purchase Amount(per unit)";*/
    IF(usFulLife > 0)
              "Useful Life (in Years)" = usFulLife;
    ELSE
                   "Useful Life (in Years)" = "No Scenario"->"No Version"->"No Entity"->"No Department"->"No LineItem"->"Useful Life (in Years)";
    ENDIF
    ENDIF
    ENDFIX
    FIX([Scenario], [Version], [Entity], [Department], "Local", "HSP_InputValue")
    CALC DIM ("TimePeriod");
    @IANCESTORS("Line Item 1");
    @ANCESTORS([AssetClass]);
    ENDFIX
    Note- "Asset Description" is a member of Text type and in this script [AssetDesc] is a global variable of StringAsNumber
    Regards,
    -KP

    Thanks for responding but my issue resolved, it was a Space in the member name.
    -KP

  • Dashed lines in illustrator cs5

    Hi,
    Is it possible to make lines dashed and dotted like you can in indesign cs5 where it is so simple?
    i can't figure it out.
    thanks

    Yes and if you read about strokes and the appearance panels and experiment with adding strokes and different settings for creating dash lines you can accomplish a lot.
    Look at the Stroke Panel a little more carefully and you will see the option to create dash lines.
    The help probably has changed for CS5 since there is an additiona option for CS5 as to the way the dash lines are spaced
    in relationship to the corners and paths the other keeps the exact measurements of the dash and gaps not considering the ends or corners

  • Disappeared dashed lines options

    very often when I want to adjust the spacing for the dashed lines in Indesign cs6, the options disappear in the stroke flyout panel.
    Strangely, it remains disappeared for the specified file forever. The workaround that I do for this is that I open a new file, make the dashed lines as desired, (yeah, the options come in a new file), then copy paste it. What exactly is causing this weird behaviour?

    arjun2 wrote:
    Here's my screenshot with everything selected. I have yet to trash my preferences. currently learning to backup my shortcuts . Does this problem occur in the latest version of indesign which is CC?
    I'm always beware of new versions, often they are heavier and take longer time to process, e.g. photoshop cs6 i found slower than cs5
    You haven't select the Dashed Line at the bottom of the Type options.
    You have 2 different stroke weights selected, that's why weight shows as nothing.
    Bold part: That's just not true for everyone, in fact I find each version of all the Adobe suites to run perfectly fine - there may be something you need to change on your system to get the programs to work better. But I never notice any difference from version to version regarding longer times to process.

  • How to create a dashed line for cell border

    Hi,
    Is anyone know How to apply the style for cell border to get the dotted line in WinRT 
    In WPF i will get the dotted line for cell border using this way.
    <DrawingBrush Viewport="0,0,20,20" ViewportUnits="Absolute" TileMode="Tile">
    <DrawingBrush.Drawing>
    <DrawingGroup>
    <GeometryDrawing Brush="Black">
    <GeometryDrawing.Geometry>
    <GeometryGroup>
    <RectangleGeometry Rect="0,0,50,50" />
    <RectangleGeometry Rect="50,50,50,50" />
    </GeometryGroup>
    </GeometryDrawing.Geometry>
    </GeometryDrawing>
    </DrawingGroup>
    </DrawingBrush.Drawing>
    </DrawingBrush>
    Thanks in Advance,

    check this thread: 
    http://stackoverflow.com/questions/14673643/windows-store-apps-how-to-draw-a-dashed-line
    Fouad Roumieh

  • Dashed lines in Flash CS3

    Hi all, Is there a way to make the end caps of an imported
    dashed line (say from Illustrator or Canvas) straight? They seem to
    always come out round.
    I have tried making them straight lines instead of dashed
    both before and after importing them to Flash but the end caps
    still come out rounded. Flash does not let me change the end caps
    of dashed lines at all. So even if I set it correctly when it's
    still a straight line, as soon as I turn it into a dashed line, it
    turns round and I can't change it.
    Very frustrating.
    Thanks for your help,
    Aryeh

    Seems like an oversight from Adobe to me. Submit a bug report
    at the following address, and maybe they will add that
    functionality.
    http://www.adobe.com/cfusion/mmform/index.cfm?name=wishform

  • Can not draw a solid line after drawing a dashed line

    I have been using a Graphics2D object in order to paint onto a buffered image and then transition that to a panel for viewing. The way the program works requires me to create the dashed line first through BasicStroke. After doing this I have tried to reset the setStroke with multiple new pens including BasicStroke(), BasicStroke(1.0f), and BasicStroke(1.0f, BasicStroke.CAP_BUTT, BasicStroke.JOIN_BEVEL, 0.0f, new float[] {1,0}, 0.0f).
    Any ideas as to why I am still incapiable of drawing a solid line?

    Any ideas as to why I am still incapiable of drawing
    a solid line?Without seeing any code, I could guess, but my guess and a quarter won�t even buy you a newspaper around here now a days.
    Seriously though, you need to create a short, self contained, compilable example. Look here for an explanation on how to create this:
    http://www.physci.org/codes/sscce/

  • Can Flash create dashed line with blunt not rounded dashes ?

    Hi,
    using Flash8
    I can select line tool and dashed line in properties and draw a dashed line and get a line of sausages. How do I get a line of dashes without rounded ends to each dash ?
    Line option has end caps option with None (gives straight or blunt tip to line, round gives rounded tip .
    Draw a line with None and its got blunt ends, select it and choose dashed line option and it gets round ends to the dashes, the end cap option is greyed out !
    Are dashed lines with blunt dashes now possible again with CS4, a forum poster also found that CS3 no longer gave blunt dashes ?
    Why do I ask:-
    I am trying to bring a map into Flash8 from Illustrator (Illus version 10 as it allows blunt tip lines to remain blunt it was said on the forum)... which has blunt ends to roads and has blunt type dashed lines. The roads remain blunt..GOOD !..but the dashed lines become what looks like a solid line. BAD !
    I do a right click - break apart,  then double click one of those now solid lines that should be dashed, and I am able to select a portion of the line, it is no longer a continual line as drawn in Illustrator. Properties shows it as solid line. Flash8 obviously having a problem with supporting Illustrator 10 dashed line then !
    Select dashed in properties box and I get a portion of the line as sausage dashes, but working my way along the line doing each bit sees a far from correct dashed line result as sausages dont start stop evenly as each line is a separate entity and ignores the previous line.
    Looks like I shall have to try and draw the line as one long line again in flash but unless I can give it blunt dashes when done, there is no point even trying that method, hence my question.
    Would the latest Illustrator and Flash versions (CS4) allow blunt type dashed lines to appear in Flash ?
    This is crucial for bringing maps into Flash.
    Envirographics

    I noticed one problem with my solution.
    If you look, very carefully, at the end of the stream, it's flat. Not rounded like it should be. After a bit of trial and error, I tried a different brush:
    Note that, in addition to the rounded rectangle (done with the new corner controls in the latest version of Illustrator CC that just came out) and the three circles, there is also a rectangle, with no stroke and no fill, to provide a space at the end of the three dots. Here is the result:

  • DESIGN VIEW in blocks, dashed lines

    I'm using DW CS5.5.  Up until today, design view was working.  Now I'm getting everything in blocks with dashed lines surrounding it.  I have no idea how this happened or how to get it to go back to a usable design view.  Live View is working, but I really need Design View to also work.
    I've tried finding an answer in the Adobe manuals, but that was fruitless.  No "troubleshooting".  DW CS5.5 seems to be a very glitchy application -- I've searched the web and there seems to be a lot of people out there who are having problems with DW that just pop-up out of no where and then fixing them takes hours and lots of researach.  I've tried posting on this forum before, but never got a reply and there's no Adobe support that seems to be available where someone can ask a question.  So, I guess this is it.  Can anyone out there tell me why they think this happened all of a sudden and on it's own?  Thank you.

    Hi Nancy,
    Well, you know that old saying, "can't see the forest for the trees".  I didn't reboot, but I did shut down DW and restarted it, and to my great surprise, Design View was back in WYSIWYG.  I hadn't really been doing anything before this happened, just had switched to Live View and then back to Design View.  My computer is 1.5 months old and it's a dual processor, top of the line Toshiba, so I don't think that was the issue.  Who knows with this software, I'm finding this version of DW CS5.5 to be very glitchy.
    If you would, could you please look at my other post I just put out there regarding why my Footer won't clear the buttom of the above div's.  I've tried everything, but nothing is working except giving it a Position:Absolute.  I want to give it a Position:relative and then just have it clear the div's above it.  The content background div also won't go all the way down.  I think I must have SOMETHING in there that's causing these div's to stop, but I've looked and looked and used the "comments" code to disable and then turn back on one by one and still can't find a solution.  It's very frustrating, especially since it's also now affecting my template since I made everything editable for my new pages I need to prepare.
    Btw, nice to hear from someone, I've posted before and never seem to get an answer or even response.  Trying to contact Adobe seems to be of little use. Again, thank you.

  • Dashed Line Problem in CS

    I am using Illustrator CS and I draw a lot of origami diagrams.
    I have set up a little library of Graphic Styles for the various lines I need to use.
    I would like to be able to start and end a line of whatever length and angle on a dash.
    see link below;
    http://www.itsjustabitofpaper.com/Dotted%20Line%20Problem.htm
    Step 1 is what is actually happening and Step 2 is what I want (Step 2 only works because I stretched the background rectangle to fit.)
    Any advice/help would be greatly appreciated.
    Rikki

    Yes, that would be useful when you have a dashed line joining itself to form an enclosed area and keeping all the dashes and gaps evenly spaced. But in Rikki's case having only a straight line across a specific distance, my method would be more expedient, time wise that is.

  • Line Tool- Other Arrows, Dashed Lines

    CS3 PC:
    Using the line tool in my tools pallet yields an arrow. Are there other arrow typesbesides the default? I would like a double ended arrow for indicating measurements on a technical drawing.
    Also, using the Pencil tool, I'd like to be able to draw in dashed or dotted lines.
    Any ideas?
    Thanks,
    BTW, u8sing the word "line" in the search function yielded zero responses. Not sure how this could be. Must be doing something wrong there too.

    Suggest you try Adobe Illustrator, alone, or together with Ps.
    In Ai there are similar line ends (arrows etc.) AND easy dashed lines AND perfect dashed line ends and corners if desired.
    All better for a "technical" drawing.
    Often even better, with dimensioning, is Visio.
    They all "play" well together.

  • How to removed dashed lines from "Page Break View"?

    Hi,
    In Excel 2010, I found that once “Page Break View” is selected, there will be dashed lines across the view even after returning to “Normal” view. These dashed lines can be distracting.
    Is there a way to remove them?
    Bob

    Yes use
    File -> Options -> Advanced
    Scroll down to Display options for this worksheet and remove the tick in Show Page breaks.
    Unfortunately it's sheet specific so you'll have to do it everytime it happens until you've done all the sheets.
    Unless you develope some VB to do it for you,
    G North MCT

  • How to change draw dashed line with arrowhead (not straight)?

    Hi friends,
    The following code sinept draws an arrowed line from a given point to the other point. I want to know how it can changed to be dashed line as well? I would appreciate it if anybody help me for doing such changes.
    Thanks in advance,
    Reza_mp
    import javax.swing.*;
    import java.awt.*;
    import java.util.ArrayList;
    public class ArrowExample extends JFrame
        enum ArrowHead {
            HEIGHT(10), WIDTH(10);
            int n;
            ArrowHead(int n) {this.n = n;}
            public int value() {return n;}
        java.util.List<Arrow> arrows;
        BasicStroke stroke;
        private class Arrow {
            Point start;
            Point end;
            Polygon arrowHead;
            public Arrow(Point start, Point end) {
                this.start = start;
                this.end = end;
                double direction = Math.atan2(end.y - start.y, end.x - start.x);
                System.out.println(direction * 180/Math.PI);
                arrowHead = new Polygon();
                arrowHead.addPoint(0, 0);
                Point p1 = rotate(ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p1.x, p1.y);
                Point p2 = rotate(-ArrowHead.WIDTH.value()/2, ArrowHead.HEIGHT.value(), direction);
                arrowHead.addPoint(p2.x, p2.y);
                arrowHead.addPoint(0, 0);
                arrowHead.translate(end.x, end.y);
            public Point rotate(int x, int y, double dir) {
                Point p = new Point();
                double r = Math.sqrt(x*x + y*y);
                double theta = Math.atan2(y, x);
                p.setLocation(Math.round(r*Math.cos(theta + dir + Math.PI/2)),
                              Math.round(r*Math.sin(theta + dir + Math.PI/2)));
                return p;
            public void draw(Graphics2D g) {
                g.drawLine(start.x, start.y, end.x, end.y);
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
        public ArrowExample() {
            super("Arrows");
            setDefaultCloseOperation(EXIT_ON_CLOSE);
            JPanel p = new JPanel() {
                protected void paintComponent(Graphics g) {
                    super.paintComponent(g);
                    Graphics2D g2d = (Graphics2D)g;
                    Stroke oldStroke = g2d.getStroke();
                    Color oldColor = g2d.getColor();
                    g2d.setStroke(stroke);
                    g2d.setColor(Color.black);
                    for (Arrow a : arrows)
                        a.draw(g2d);
                    g2d.setStroke(oldStroke);
                    g2d.setColor(oldColor);
            p.setBackground(Color.white);
            add(p, BorderLayout.CENTER);
            stroke = new BasicStroke(3);
            arrows = new ArrayList<Arrow>();
            arrows.add(new Arrow(new Point(10,10), new Point(100,100)));
            arrows.add(new Arrow(new Point(300,10), new Point(300,100)));
            arrows.add(new Arrow(new Point(450,450), new Point(400,100)));
            pack();
            setSize(500, 500);
        public static void main(String[] args) {
            setDefaultLookAndFeelDecorated(true);
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    new ArrowExample().setVisible(true);
    }

    Change the draw method as follows:
            public void draw(Graphics2D g) {
                Stroke s = g.getStroke();
                g.setStroke( new BasicStroke( 3.0f, BasicStroke.CAP_BUTT,
                   BasicStroke.JOIN_MITER, 1.0f, new float[] { 10.0f, 10.0f }, 0.0f ) );
                g.drawLine(start.x, start.y, end.x, end.y);
                g.setStroke( s );
                g.drawPolygon(arrowHead);
                g.fillPolygon(arrowHead);
            }

  • Problem with dashed line spacing when printing to pdf

    Hi all,
    this may be a problem with my pdf program (I use bluebeam), but maybe someone will have an idea how to fix it whether in indesign or bluebeam.
    so I made a dashed line using the stroke command in indesign. I need to have the spacing set to 3pt dash and 2pt space. I also need to keep the lineweight to 0.5...this all works fine and appears correctly in indesign when I preview
    the problem is that some of the dashed lines, but not all of them, change size and spacing in the pdf when I view it. it seems to change when I zoom in and out as well. I thought maybe this was just some odd feature with bluebeam and it would still print to the correct size, but it does not, it prints the lines as different sizes. does anyone have an idea why this happens and how to fix? ive viewed and printed from adobe reader and it seems to be okay there but this file will be accessed by multiple other people and they may not be opening and printing in adobe reader..
    thanks guys

    When you export a PDF you will notice that you are exporting to Adobe PDF. Using any reader beyond Acrobat Pro or Reader is a crapshoot.
    For issues with Bluebeam I suggest you contact the developer.

  • Illustrator CS2 adds mysterious white dashed line thru my linked Photoshop file

    Im using Windows XP, Illustrator & Photoshop CS2, Acrobat 7.0 Professional.
    I have an illustrator file with a linked PSD file that has this mysterious thin white dashed line going through the entire image & I have no idea what it's from or how to repair it.
    My trouble shooting thus far includes:
    - In illustrator - I hide all the layers to see if there was an odd graphic on another layer that was causing the line, nothing. I tried to select the dashed line, not possible. I've created a PDF of the file, and the dashed line is in the PDF too (to verify it wasn't just Illustrator). Oddly in both Acrobat & Illustrator when I zoom in & zoom out, the dashes maintain their on-screen viewing proportions (like the dash spaces recalculate to the same tiny thin dashed line no matter what zoom Im at)
    - In Photoshop - I zoomed in until I couldn't zoom no more and there is not the slightest dashed line in the graphic.
    Lastly, I have this exact linked setup repeated throughout several different files (basically its the same ad but laid out to different dimensions for each)... and none of the others have this mysterious white dashed line.
    here's a screen capture from Acrobat... zoomed into 6400%
    argh - can someone help? Thanks!
    kristin

    Hi guys (and sorry for the tremendous delayed response).
    No the line doesn't print on my local b/w laser printer. However I have seen the lines print in 1 newspaper publications... (this is out of 50 different publications)
    Yes, the image is rotated slightly in illustrator, and I always flatten prior to making the PDF (cuz of the transparency/drop shadow).
    It's really making me nervous that ALL our ads have these lines appearing during onscreen viewing... Im making a new batch of ads for our campaign & there are more lines than before!
    Any tips theories remedies my friends?

Maybe you are looking for

  • Problem while printing from SAP GUI for HTML

    Hello, We are trying to print a delivery confirmation from the portal using SAP GUI for HTML. We have followed note 771683 to do this. However we are facing the following problems: 1) The print action(PDF creation) is not triggered until the user per

  • Using Rule 168, SWX_GET_MANAGER and Chief Position

    We have enabled standard SAP Travel Workflow WS20000040 - Approve Trip.   We are not currently using OM relationships A002 (Reports Line to) or B002 (Is Line Supervisor of).   We currently identify the Line Manager of the employee using the Chief Pos

  • OBIEE presentation layer agregate values are not acurate

    hi, i have a simple BMM where for the given fact year wise i want to show summation of values and %. here is the query generated by the OBIEE WITH SAWITH0 AS (select sum(T5779.SLA_NOT_MET) as c1, sum(T5779.SLA_MET) as c2, count(T5779.APP_ID) as c3, T

  • Critique my JAXB object wrapper.

    Hello Ladies and Gents, I have a question on wrapping a jaxb created class and would really like to hear your inputs. My xsd looks a bit like: <ComplexService> <ComplexObject1> <Element1></Element1> <Parameter></Parameter> </ComplexObject1> <ComplexO

  • IPhone's and Public Certificates

    Hello, My question is specific to using PEAP (EAP-MSCHAP v2) with 3rd party certificates on iPhones. I have read that despite having a public certificate, iPhones will continue to prompt to accept the cert every time. Can anyone confirm if this is tr