Vector Graphic / HPGL file processing VI ???

Hi all,
Is there a VI out there that will load AND interpret any common type
of vector file format, producing an array of line start and end point
coordinates (I only need to read lines, not shapes) ???
I have some "motorised" hardware to control via Labview with a NI
6025E i/o board. Now, I have routines in dev. to x/y drive the device
but would like to do some fancy movements with it like "draw" pictures
output from Windows graphic software. I don't need to do this
directly, just accept a common file type.
Obvious candidates are WMF and HPGL (used for x/y plotters). I was
under the impression that HPGL was an ASCI "readable" language, but my
attempts to print to file from a HP DesignJet printer driver produces
a heade
r mentioning HPGL*2* with some readable pen colour settings and
the rest of the data in binary format.
Any suggestions for a HPGL (V. 1 or 2) printer driver that produces
"readable" ASCI would be useful as I could probably write my own
interpret.
Many thanks,
Peter

Lab Viewer wrote in message news:<[email protected]>...
> Hi Peter,
>
> Try this
> href="http://www.hamiltondesign-consulting.com/Utils.htm">HPGL to
> Array and and
> href="http://www.info-labview.org/the-archives/vi/lv3.1/hpglplot.zip">Array
> to HPGL kind of libraries.
> I didn't have the opportunity to test them, so I'm not sure about
> related file versions.
>
> Hope this helps
Thanks, I came accross this library after my post.
I also came up with a solutions to getting vector files into Labview
if anyone is interested:
GhostView (the shareware viewer / front-end for Ghostscript) will
export/conver .PS and .EPS files to the HPGL-level-1 language. This
means I can get most vector softw
are to print to a PS printer or
export an EPS file and generate a HPGL-level-1 file.
I had no luck getting the above library to work, but fortunatly the
HPGL output of Ghostview is in a very readable ASCI format so writting
my own interpretor with string funtions was quite stright forward.
Many thanks,
Peter

Similar Messages

  • How to print a Proe .drw ( Vector Graphic ) file to a printer.

    I am having a drawing model (proe .drw file). I want to print this file to a .tif file using java.The print driver is "Informatik Image Driver 3.20".
    .Can some one help me out with the steps involved in this.
    I understand .drw file are of type Vector Graphic. How to print it.
    I also have a corresponding postscript file generated from the .drw file. Is there a way to print this post scritp file to the printer mentioned above to create .tif.
    Any quick help will be deeply appreciated.
    The postscript file content as below
    %!PS-Adobe-2.0
    %%BoundingBox: 0 0 1190 841
    %%Creator: Pro/ENGINEER
    %%Title: c:/temp/xx.plt
    %%CreateDate: 18-Mar-10 17:29:28
    %%DocumentFonts: Times-Roman
    %%EndComments
    %%EndProlog
    %%Page: ? 1
    %%BeginPageSetup
    systemdict /setpagedevice known
    <</PageSize[1190 841]>> setpagedevice
    } if
    %%EndPageSetup
    newpath
    %90 rotate 0 -11.6929 72 mul translate
    /m {moveto} def
    /l {lineto} def
    /rm {rmoveto} def
    /rl {rlineto} def
    /slw {setlinewidth} def
    /srgb {setrgbcolor} def
    /sd {setdash} def
    /gs {gsave} def
    /f {fill} def
    /gr {grestore} def
    /s {stroke} def
    /np {newpath} def
    0 setlinecap
    2 setlinejoin
    0 0 0 srgb
    72 72 scale
    s
    [] 0 sd
    s
    [] 0 sd
    s
    0.02 slw
    1.21121 0.393701 m
    1.21121 11.2992 l
    1.21121 0.393701 m
    15.3242 0.393701 l
    15.3242 11.2992 l
    1.21121 11.2992 m
    15.3242 11.2992 l
    8.01388 7.69355 m
    5.49708 7.69355 2.5168 0 360 arc
    14.2189 7.69355 m
    10.8812 7.69355 3.33771 0 360 arc
    8.03498 5.85547 m
    7.69023 5.85547 0.344747 0 360 arc
    11.1515 5.53362 m
    7.81378 5.53362 3.33771 0 360 arc
    3.33558 4.07796 m
    7.52551 5.0152 4.29347 192.609 398.596 arc
    7.44242 10.0908 m
    4.1278 2.50717 8.2764 66.3911 106.456 arc
    s
    0 0 0 srgb
    0 rotate
    showpage
    ---------------------------------------------

    I did try google. But could not get a solution. Any idea what is the doc flavor for .drw file.?
    Edited by: ekuriakose on Mar 22, 2010 11:47 PM

  • Reduce file size vector graphics

    When it comes to imported vector graphics are there any methods to decrease the swf's file size as much as possible?
    So far I have:
    - imported an illustrator ai file (strokes 'expanded' in illustrator and unneeded swatches/brushes etc. deleted and with no raster images embedded)
    - exported the file in illustrator as swf and imported that swf into flash
    - imported ai file and breaking it down to flash shapes
    - optimized those shapes as much as possible
    I rather use vector as much as possible. For a banner for examle, I've imported vector images of trees. I couldn't get it below 40 kb so I exported all illustrator files to png files which helped. Can detailed vector images be optimized just as much? Or is it better to use bitmap files when it comes to more detailed graphics? Does it matter if it is a vector images made in flash or a imported vector file even if both have the same number of paths?
    Any other ideas I might try besides the things I've already tried?

    There is a certain threshold when a bitmap can actually be smaller than a detailed vector graphic. Especially when working on small image sizes, bitmaps can often be quite smaller.
    For a vector graphic, you can't do more than reducing the number of vertexes which may result in a poorer graphic.
    With bitmaps, you can do a lot more:
    Keep in mind that bitmaps with an alpha channel use up much more memory than bitmaps without alpha information. So try to reach your goal without using transparent bitmaps - which seems hard in the beginning, but as Flash provides different blending modes, you can, for example use the blending mode "multiply" for a black logo on a white background with just a grayscale bitmap instead of a bitmap with alpha channel information.
    The same is valid for a white logo on a black background: Use the "add" blending mode instead, then.
    I have also written some Photoshop Plugins to reduce the alpha-channel bit-resolution which sometimes gives me the extra 3-4kb I needed. Instead of using 256 shades of alpha, it reduces them to maybe 8 or 16. Alpha-Channels are comressed like GIF/PNG images inside of flash, so having as few different shades of alpha as possible will make images smaller. I even use dithering sometimes for softer alpha areas.
    In some rare cases, you can also gain some bytes if you convert text to vector graphics (pressing CTRL-B twice), but this only works when there's not much text at all. That's because the metric information for text glyphs take up a bit more space then just the shapes. So you can imagine that this may only work if there is just one text element with all different letters. So you won't get much size reduction by converting "abracadabra". But you will get some reduction if you convert "the quick brown fox jumps" into shapes.
    This all can help if you have restrictions like 30kb or even 20kb to create a full animated flash banner.

  • Tracing a .gif file to convert to a Vector graphic in Photoshop CS5 Extended

    I have been on Photoshop CS3 for a couple of years, and now at work they upgraded to CS5 Extended. I am having some small problem finding some things I used to do a lot. I really need to take a bitmap, JPEG, or .gif file and "trace" it and make it into a scalable vector graphic. This used to be easy with Live Trace in CS3. But now on CS5, Live Trace seems to be nowhere to be found.
    What gives?

    I think Live trace is in Illustrator, not Photoshop.
    (I still use Freehand.  )
    Edit: Snap!

  • JHeadstart & (Scalable Vector) Graphics - From the AMIS JHeadstart Cookbook

    A picture can tell more than a thousand words. Adding meaningful graphics to our web-application can enhance the visual attractiveness s well as the functional effectiveness. Simple, data-drive graphics such as progress indicators, status ‘traffic lights’, gauge and speedometer like indicators can all represent data-values in a explicit, obvious way. Charts such as line-graphs, bar-charts and pie-charts facilitate quick interpretation of multiple values and trends.
    Using SVG in JHeadstart Applications - Scalable Vector Graphics are a technology for describing graphics in a structured, XML-based definition that can be rendered in browsers using a (free) plugin. Because of their XML-foundation, SVG objects can be generated by XML/XSL-T Transformations from dynamic datasources. That in turn makes it quite straightforward to generate graphics that are data-driven: the overall layout of the graphic is defined in an XSLT file while the dynamic data is fed into the SVG generation process in an XML document.
    In this recipe, we look at the use of SVG technology together with the JHeadstart architecture for incorporating data-driven graphics in our web-application. See: http://www.amis.nl/technology/Cookbook/Recipe%20for%20GeneratingSVGObjects.htm
    The Dutch Oracle partner AMIS has a 10-person JHeadstart team, currently involved in 4 JHeadstart-projects in The Netherlands. Their experiences and ideas are compiled in the AMIS JHeadstart Cookbook that is published on the internetsite (http://www.amis.nl) for other JHeadstart developers to share.
    I hope the recipes are of use to you.
    best regards,
    Lucas Jellema

    As a result of reorganizing (and re-providing) our website, some of the URLs stopped working. I apologize for any inconvencience.
    The JHeadstart Cookbook can now be found at: http://www.amis.nl/files/technology/Cookbook/AMISJHeadstartCookbook.htm and the Recipe on Generating SVG is located at: http://www.amis.nl/files/technology/Cookbook/RecipeforGeneratingSVGObjects.htm.
    Note that the AMIS Demo Application (AMIS Library System) created along with our Cookbook is now shipped as part of JHeadstart 9.0.5.1 to demonstrate the use of Oracle Toplink. This will make it easier for you all to apply our recipes - since you have the ALS application already available when using JHeadstart 9.0.5.1.
    best regards,
    Lucas Jellema, AMIS JHeadstart team

  • Animate Stroke Weight of a vector graphic

    Hi. I'm new to adobe's programs and digital art as a whole, so bare with me. I've watched all of the tutorials on adobe's website to learn my way around and am excited to utilize these new tools. I'm trying to create an idea, but am having trouble figuring out how to do is this. I would like to create an animation of a vector graphic I created, but I would like the stroke weight to increase from .001 to about .3 or so. So It would be 300 frames. I imported my AI file to AE but there was no option to adjust the stroke weight in there. Is there an easy way to go about what I'm trying to do rather than save out 300 different files and organize them into a video? It's also composed of a complex pattern brush so I think the program is working pretty hard. It takes like 10 seconds or so for a big increase in stroke weight to load, but there is lots of detail so it makes sense I guess. Thanks for your time.

    Thank you. I made a simple vector to test your method. This is exactly what I was trying to do. However, I think my image is too complex for the program to handle. I waited 53 minutes for after effects to try and load the shapes before force quitting.. Do you think I need to just be more patient and give it a few hours? My other concern with that though is if it manages to load all the shapes if I'm going to be experiencing ultra lag trying to do any editing to the image once it's fully loaded. My image is metatron's cube composed of very tiny metatron cubes. I'd upload the file for someone else to experiment with but it doesn't look like these forums have attachment options. Any advice on this issue? I'm running a 2011 iMac with 16gb ram. The activity monitor only shows about 1-4gb of ram being used during this process.

  • How do you prevent Acrobat PDFMaker from rasterizing vector graphics?

    I am using the "Create PDF" button (provided by the Acrobat PDFMaker in Acrobat X) to create a PDF from a Microsoft Word 2010 document.
    This works fine, except that vector graphics in the Word document appear in the resulting PDF as raster graphics. (That is, when I zoom in, document text outside the graphics appears smooth, but the graphics are blocky; and text inside the graphics that should be retained as text - it's not converted to curves - is just pixels.)
    The original artwork for the vector graphics is in CorelDRAW X6 (sorry, Adobe!).
    I have exported the following files from the original vector drawing in CorelDRAW:
    - EPS (with TIFF preview)
    - Windows metafile (.wmf)
    - Enhanced metafile (.emf)
    I can insert any of these files into Word okay (Insert > Picture), but the resulting PDF always contains a rasterized (bitmapped) version of the vector graphic ("line art").
    From memory, this didn't use to happen in my previous working environment (Acrobat 8 Pro with Word 2003, using artwork exported from CorelDRAW 12).
    How do you prevent Acrobat X PDFMaker from rasterizing vector graphics? Or is Word 2010 (or CorelDRAW X6) somehow to "blame" here?

    Transparency Flattening is being invoked.
    From the Create PDF button, select Properties, what is your setting for Default Settings? Select High Quality Print

  • Loading vector graphics at runtime

    Hi,
    I'd like to know if there is any way or any vector graphic file format that i can load dynamically at runtime on a web-based flash application.
    I have some files in pdf that i want to load in and i can convert them to jpgs at runtime and load the jpgs but then i lose vector graphics so when i zoom in and out they become pixelated.
    I had a look a look at flashpaper to convert pdf to swf and load them in but i can't see anywhere in the documentation about converting the pdf's at runtime rather than manually dragging and dropping them in.
    So far i've looked at pdf, svg and .ai but none of these can be loaded at run time just imported into the .FLA
    So can this be done? Or alternatively is there an application that can do the pdf -> swf conversion from the commandline then i could trigger php to do the conversion at runtime.
    thanks in advance.
    Greg

    Hi All,
    I have a task to save running SWF file to be saved as vector graphics file format and get the same back in the Flex application. Request you to tell me what can be the vector graphics file extension and help me out how to achieve this task.
    Thanks & Regards
    Santosh Kumar G

  • Vector graphics with Photoshop Elements 13

    How can I maintain the vector graphics that are saved for Illustrator (AI or EPS) in Photoshop Element 13.   There are a lot of free typography graphics for Illustrator that I would love to use in Photoshop Elements 13
    Mireille

    if you downloaded both the exe and 7z files to the same directory, double click the exe.

  • How to copy and paste vector graphics

    I have a program that draws curves and I would like to copy and paste them as a path into Adobe Photoshop.
    I am using the Clipboard class (Clipboard clipboard = Toolkit.getDefaultToolkit().getSystemClipboard()), but I
    do not know what string I should use for the StringSelection argument in the setContents method. I tried the
    string that describes my curves in PostScript.
    But that didn't even work for pasting into Adobe Illustrator, although Illustrator is capable of opening
    a PostScript file. (However Photoshop only opens a PostScript file as a bitmap, not as a path.)
    With Illustrator, instead of pasting the curves, it just pasted the PostScript text.
    Please help.
    Thanks.

    For me, freehep is the fifth hit when googling "java vector graphics library". But of course I don't get to "[Access hidden information|http://www.copernic.com/en/products/agent/index.html]" without paying up :).
    For a simpler way: since you already say you can save to postscript, make a temporary ps file and export it in a file list (keywords "java drag and drop files"). Perhaps Illustrator then opens the file and the user can copy/paste it there. Otherwise you have to figure out what Illustrator expects on the clipboard and put it there in the same format.
    Another option might be to use some com wrapper to talk to Illustrator directly (but probably need a commercial com wrapper for that).

  • Replacing bitmap text with vector graphic text

    In a layout for an ebook I have some important black and white bitmap illustrations in tiff., 300 dpi. These have appeared ok on print, but on screen, reading the same pdf-file, they´re unacceptable, especially some texts in fontsize 5-6 pt are unclear. People tell me I have to convert the drawings, or at least the texts, to vector graphics.
    Question: Can I open these tiff.s in Photoshop, change only the texts to vector graphics and then save in a format, that can be inserted in the Word2010 layout? (You might wonder why I use Word, but it was a question of economy, when the project was started up). Or are there other ways? Thanks for any answers!

    You are right, there are no layers, some geometric shapes with texts in and around. It´s possible to mark or lassoe the bits of text, since spaces were made in the figures for the texts. And then delete them, and then insert new ones. That will be in another layer, I guess, but from that point I don´t know what to do :-)

  • Jagged vector graphics from Illustrator in Indesign

    Using CS3, Leopard, have all updates.
    I'm having problems with vector graphics created in Illustrator getting jagged when dragged from Illustrator to Indesign (or copied and pasted or placed as Illustrator file). They look jagged (stair stepped) in InDesign, also in Acrobat after exporting a pdf, and after printing. The vector image in question is a rectangle with rounded corners with an "Envelope Distort - make with warp" applied to it. Is the problem that I'm trying to drag an envelope distorted graphic into InDesign? Are there settings to make this work?

    "They look jagged (stair stepped) in InDesign, also in Acrobat after exporting a pdf, and after printing."
    Doesn't sound like a screen preview issue to me.
    If a placed AI file has jagged edges on print and in PDF, but looks good in Illy, then something is amiss. Your transparency settings could be set to rasterize the line art. Make sure you're using one of the canned flattener presets (high, med, low) if there is any transparency in your page (little checkered icon by the page icon in the page palette).
    J

  • Using a vector graphic for a button

    Adobe Photoshop, Illustrator, and Encore CS5, everything is patched, Windows 7 64-bit
    I have been reading various posts, and either not seeing or not understanding something about using a vector graphic as a button on a menu.
    I drew a one-color shape in Illustrator, saved it as EPS and PNG and used it in a menu designed in Photoshop. When I preview it in Encore or burn a DVD, the graphic looks awful. And I'd like to use highlighting with it so it changes color when selected but that is another problem....
    To start the menu, I used the Photoshop preset NTSC DV Widescreen which has a pixel aspect ratio of 1.21. Then I added background graphics and so on. Each button is contained in a layer group named (+)PlayAll, etc. In each layer group is a text layer that doesn't have a prefix (e.g., Play All) and another layer with the vector or PNG named (=1)kv, which is the name of the EPS or PNG file.
    The behavior is fine. The graphic moves to indicate which menu item is selected, the text is constant, never changes.
    In Photoshop, the graphic looks fine but when I preview it in Encore it looks crappy and pixelated. What do I do?

    Part of the problem is I have no idea what some of these terms mean ... "2-bit indexed", ... The first one might mean an object that has one color,
    It is not the same as one color, and yes, it probably means more than any of us intend.  See  Encore help regarding button subpictures, in particular the part regarding using Photoshop to create button subpictures.
    The latter includes "(Technically, the subpicture overlay is a two‑bit indexed image.)," but you don't need to understand the technical meaning (they don't explain it anyway).  You do need to understand the liimitations they explain there,  For example, under "solid colors only," they say "Elements on these layers must use solid colors and sharp edges. Use one solid color per layer. Do not use gradients, feathering, or anti-aliasing on the subpicture layers. Color gradations are not possible in subpictures."
    "sub-picture highlight" ... the second one is probably made up.
    Heh, heh.  Searching that in Encore help (which I often find lacking) finds the page on Button Subpictures.  I agree that some of the terms, whether they are from the DVD specs or Sonic's applications (on which Encore is based), can make it difficult to look things up.
    "vector layer".... I searched Photoshop help for "vector layer" and got nothing. There is such a thing as a vector mask on a layer but I have no clue what a vector layer is.
    You're correct - vector mask.  Within a button group, the vector mask will be part of a layer, so I think of it as the button group "vector mask" layer.  That's part of why I pointed to using a library menu and editing in photoshop so you could compare what you have to what a template looks like.
    Please suggest which Encore library menu I can try. I opened a couple and couldn't figure out how they worked.
    In the General set, pick the Sunset menu.  Edit in Photoshop.  Expand the "(+) play movie" layer.  The "button vector mask" (the dark area) is in the layer called "button."  Notice that it does not have a (=1) or other indicator that it is a highlight.  In other words, it will just sit there, in whatever color is defined, and will not be a highlight.  If you put it in a layer that has one of the highlight indicators (the =1, =2 etc), it will then be subject to the subpicture highlight limitations.
    You might try your graphic in such a non-subpicture layer, and compare its appearance to putting it in a subpicture layer.
    Jeff Bellune's book (he's a moderator here) is still very applicable.  While some things have change, the basics haven't.
    But, hey, Jeff.  Why haven't you updated your book yet?  Inquiring minds want to know!

  • Bringing vector graphics from illustrator photoshop final cut express.

    I'm having a heck of a time getting my logo from illustrator to photoshop to final cut express. It is squishing it. It looks jagged in photoshop. I am cutting and pasting from an eps file to a photoshop doc that is for film and video. I'm not sure what I'm doing wrong.
    Thanks to anyone who has answers.

    If you have a problem with working with Photoshop you probably want to go to the Adobe forums.
    If you're placing the vector graphic in a Photoshop file make it whatever size you need it to be. You're video image is the square pixel equivalent of 720x540. If you need the logo to fill the frame from edge to edge then make it that size. If you need it smaller, make the PSD smaller.

  • Can Flash do true vector graphics?

    I created a drawing in Flash with the pen tool and paint
    bucket. Some of the drawing I may have used the line segment tool
    and connected the points. Other parts of the drawing I may have
    started with a circle, added points, and strecthed parts to make my
    desired shape. I exported the file to an .eps format.
    I want a drawing to be transcribed to a T-shirt.
    Unfortunately the two shops I've worked with know CorelDraw
    and not Flash. One lady knows Illustrator and I have also
    exported to an .ai format for Illustrator. However when
    they open those formats of my drawings come as individual
    vectors with outlines around each piece. They said they would have
    redraw the artwork in CorelDraw at a major expense. Can Flash do
    true vector graphics such that a drawing of a figure, for example,
    with many different colors so that the exported .eps or .ai file is
    a true vector graphic and not all in pieces? Or should I go with
    Illustrator CS3? I have used both programs and most of the drawing
    tools and methods seem to be the same, does Illustrator create true
    vector graphics?

    While your code might be correctly written, a 1009 error is not about incorrect code.  The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is declared but not instantiated
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

Maybe you are looking for

  • New server and/or CA certificate for connection from custom authentication

    We are running Access Manager version 72005Q4 in the Sun ONE Web Server 6.1SP5 B06/23/2005 container with java build 1.5.0_07-b03. I run a custom authentication module which checks sessions against our university single sign on system which is CAS (f

  • Problems using Aperture

    Hello, I have a MacBookPro and use Aperture on it. Have been using this for 6 months quite happily. Recently I purchased a 27" Thunderbolt display and have noticed a problem with Aperture. When I'm trying to look at an image (any image, I have 100s)

  • Why is the Robohelp webhelp search so slow?

    Hello, I currently use Robohelp 9 and produce merged Webhelp using Zoomsearch v6 as the search engine. My sites has around 2500 topics and 26 merged projects. Zoomsearch produces search results in under half a second. I decided to use zoomseach (afte

  • Inbound deliveries with scheduling agreement

    Hi   Can anybody send me the configuration setting need to do for inbound deliveries for scheduling agreement. -Prabu

  • Using the Web Cam on Mac

    Hi, I am using Flash CS4 on Mac Os X 10.5.3. I want to display the video captured by the built-in camera on the SWF. i have written the following code: But during runtime it just gives me a warning asking for access to camera. No video is displayed.