Loading ...
Sorry, an error occurred while loading the content.

Re: Marking shapes like in autocad drawings

Expand Messages
  • th_w@ymail.com
    The stroke-dasharray attribute could be an easy solution here:
    Message 1 of 5 , Apr 17, 2011
    • 0 Attachment
      The stroke-dasharray attribute could be an easy solution here:

      <?xml version="1.0" standalone="no"?>
      <svg width="100%" height="100%" viewBox="0 0 600 800" version="1.1"
      xmlns="http://www.w3.org/2000/svg">
      <rect x="0" y="0" width="150" height="450" stroke-width="2" stroke="black"
      fill="none" stroke-dasharray="280 50 2000" />
      <text x="130" y="160">D</text>
      </svg>

      Works in Firefox, Opera, Chromium, IE9, Batik, SVGSalamander and Inkscape. librsvg is doing strange things (like so often).

      Thomas W.


      --- In svg-developers@yahoogroups.com, "samydagan" <dagan@...> wrote:
      >
      > Hi Pranav,
      > How about:
      >
      > <?xml version="1.0" standalone="no"?>
      > <svg width="100%" height="100%" viewBox="0 0 600 800" version="1.1"
      > xmlns="http://www.w3.org/2000/svg">
      > <rect x="0" y="0" width="150" height="450" stroke-width="2" stroke="black" fill="none"/>
      > <text x="130" y="160">D</text>
      > </svg>
      >
      > Welcome to the club. Cheers, Samy
      >
      > --- In svg-developers@yahoogroups.com, "Pranav Lal" <pranav.lal@> wrote:
      > >
      > > Hi all,
      > >
      > > I am trying to draw the plan of my house in SVG. I want to draw the plan
      > > like it is drawn in autocad. So, if I start with a rectangle for the
      > > boundary of the house, I want to show a door in the boundary. I can write
      > > the letter "d" for door inside the rectangle but in Autocad, that bit of the
      > > outline is erased. How do I do this in SVG?
      > >
      > > My current diagram looks like this.
      > >
      > > <?xml version="1.0" standalone="no"?>
      > > <svg width="100%" height="100%" viewBox="0 0 600 800" version="1.1"
      > > xmlns="http://www.w3.org/2000/svg">
      > > <rect width="150" height="450"/>
      > > <text x="155" y="160">D</text>
      > > </svg>
      > >
      > > Pranav
      > >
      >
    • Pranav Lal
      Hi G. Wade and all, I like approach number 3. It gives me the maximum control. I will play with this approach and see what happens. I could have tried the
      Message 2 of 5 , Apr 20, 2011
      • 0 Attachment
        Hi G. Wade and all,

        I like approach number 3. It gives me the maximum control. I will play with
        this approach and see what happens.

        I could have tried the filled rectangles etc but I am starting with a fresh
        drawing. More over, I am drawing by hand so it is easier to keep images
        uncluttered.

        Pranav
      Your message has been successfully submitted and would be delivered to recipients shortly.