Welcome to TalkGraphics.com
Results 1 to 10 of 10

Thread: Xarascript?

  1. #1
    Join Date
    Dec 2002
    Location
    Eyre Heiss
    Posts
    364

    Default

    Another wishlist thing.

    I'm doing a map of my town by tracing the centreline of the streets. There is a motorway, two B-roads, several A-roads and about a zillion other roads, streets, and country lanes. Basically the centreline is copied onto at least two other layers per type of road, these being the outline and the interior colour, and the ordering of the layers ensures that the interior line (centreline copy thickened to, say, 10pt) is on top of the (say 12pt) outline line, which produces a very satisfactory representation of a road on a map. but each kind of road (A-roads, B-roads, &c) gets treated slightly differently so that they look different.

    This is all very well and looks jolly smashing - but as soon as I decide, later, that I want to extend the map to include a neighbouring village, I've got to go through the whole palaver again, for each kind of road.

    I'd like to be able to have some sort of scripting language in terms of which I could, for example, give all A-road centrelines an "A" attribute, all B-roads a "B" attribute, &c, and the script language would then take that skeleton and create the necessary latyers and thicken the lines, &c &c, thereby producing a Xara file of a roadmap. If I then chose to extend the map, all I would have to do would be to add the extra lines, with appropriate attributes, and feed that extended skeleton to the script, which would redraw the whole thing again, as a roadmap, as defined by the script file.

    Ok, so I could use a dedicated roadmapmaking drawing program. But I like Xara.

    Does anyone else feel Xarascript would be useful?

    Anton

    PS. Why am I doing a map of my town when I've got a p[erfectly good printed one? Because I enjoy it! http://www.talkgraphics.com/images/smilies/rolleyes.gif
    Anton

  2. #2
    Join Date
    Dec 2002
    Location
    Eyre Heiss
    Posts
    364

    Default

    Another wishlist thing.

    I'm doing a map of my town by tracing the centreline of the streets. There is a motorway, two B-roads, several A-roads and about a zillion other roads, streets, and country lanes. Basically the centreline is copied onto at least two other layers per type of road, these being the outline and the interior colour, and the ordering of the layers ensures that the interior line (centreline copy thickened to, say, 10pt) is on top of the (say 12pt) outline line, which produces a very satisfactory representation of a road on a map. but each kind of road (A-roads, B-roads, &c) gets treated slightly differently so that they look different.

    This is all very well and looks jolly smashing - but as soon as I decide, later, that I want to extend the map to include a neighbouring village, I've got to go through the whole palaver again, for each kind of road.

    I'd like to be able to have some sort of scripting language in terms of which I could, for example, give all A-road centrelines an "A" attribute, all B-roads a "B" attribute, &c, and the script language would then take that skeleton and create the necessary latyers and thicken the lines, &c &c, thereby producing a Xara file of a roadmap. If I then chose to extend the map, all I would have to do would be to add the extra lines, with appropriate attributes, and feed that extended skeleton to the script, which would redraw the whole thing again, as a roadmap, as defined by the script file.

    Ok, so I could use a dedicated roadmapmaking drawing program. But I like Xara.

    Does anyone else feel Xarascript would be useful?

    Anton

    PS. Why am I doing a map of my town when I've got a p[erfectly good printed one? Because I enjoy it! http://www.talkgraphics.com/images/smilies/rolleyes.gif
    Anton

  3. #3
    Join Date
    Dec 2000
    Location
    Out behind the henweigh...
    Posts
    5,115

    Default

    Hello Anton,

    If you have both lines for your roads on separtate layers, then it is easy enough.
    Just select the "master" road, copy it Cntrl-C, mack sure you are editing only 1 layer, press Cntl-A to select everything, then press Cntrl-Shift-A to paste the attributes for that tine to all the rest.

    Is that close enough to your xarascript you where asking about?

    PS.. Most programs that have scipting languages make you use 15 tools to do one simple task. Instead of having a logical UI. http://www.talkgraphics.com/images/smilies/wink.gif

  4. #4
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,932

    Default

    Anton
    Don't know if I could really make any use of scripting.
    What problems are you having extending the map? Why can't you just draw more lines on the required layer, copy an existing line and paste attributes, etc (or CtrlA and type in that layers line width) for each new extended road?
    Egg
    Whoops! John's beaten me to it.
    Attached Thumbnails Attached Thumbnails Click image for larger version. 

Name:	!1a_background_attribute2.gif 
Views:	350 
Size:	18.2 KB 
ID:	6468  
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  5. #5
    Join Date
    Dec 2000
    Location
    Out behind the henweigh...
    Posts
    5,115

    Default

    "Whoops! John's beaten me to it." - Egg

    But yours is so much prettier... Nice job.

  6. #6
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,932

    Default

    And yours is so much faster
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

  7. #7
    Join Date
    Dec 2000
    Location
    Out behind the henweigh...
    Posts
    5,115

    Default

    Don't have much time for making pretty pictures in the morning. It must have been late afternoon for you. I think you are about 7 hours ahead o me.

  8. #8
    Join Date
    Aug 2000
    Location
    Beaverton, OR
    Posts
    3,267

    Default

    Even faster, don't need to do the control-C, Control-V routine.

    Just select a layer in the Layer Gallery and click on the "Copy..." button in the Layer Gallery. AND it doesn't seem to cause crashes like the "Move..." button does.

  9. #9
    Join Date
    Aug 2000
    Location
    London UK
    Posts
    239

    Default

    You might be able to use something like macro express at (http://www.macroexpress.com/) but I've not tried it in Xara (it did work wll in Inspiration quite a while ago). There are other similar programs but ME does work
    Jon

  10. #10
    Join Date
    Aug 2000
    Location
    Harwich, Essex, England
    Posts
    21,932

    Default

    John
    I think the idea is that more roads can be added over time to the already existing roads. Copying a layer and changing the line width works fine when initially creating the drawing, but I can't see how it would help when revising the map?
    Egg
    Egg

    Minis Forum UM780XTX AMD Ryzen7 7840HS with AMD Radeon 780M Graphics + 32 GB Ram + MSI Optix Mag321 Curv monitor
    + 1Tb SSD + 232 GB SSD + 250 GB SSD portable drive + ISP = BT + Web Hosting = TSO Host

 

 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •