3D annotation: Draw line like 3D measurement tool

Hello ,
          Can somebody tell me how can i draw temporary line in 3D annotation canvas using java script like "3D Measurement tool" ?   or same llike shown in "Zoom " tool right clicked and mouse drag event ..
Thanks,

I'm sorry I missed this request. :-(
To accomplish your goal, you could use a MouseEventHandler, which would report back mouse positions in the 3D window (known as the canvas). You can get momentary positions on events such as MouseDown or MouseUp, or if you really need it, you can obtain real-time mouse positions using MouseMove.
Here's a hunk of example code:
//===================================================
myMouseHandler = new MouseEventHandler();
myMouseHandler.onMouseDown = true; //this prop is true by default
myMouseHandler.reportAllTargets = false;
myMouseHandler.onEvent = function(event)
console.println("canvasPixelHeight = " + event.canvasPixelHeight );
console.println("canvasPixelWidth = " + event.canvasPixelWidth );
console.println("mouseX = " + event.mouseX );
console.println("mouseY = " + event.mouseY );
console.println("currentTool = " + event.currentTool );
console.println("isMouseDown = " + event.isMouseDown );
console.println("isMouseOut = " + event.isMouseOut );
console.println("isMouseOver = " + event.isMouseOver );
//Register the handler and turn the mule on
runtime.addEventHandler(myMouseHandler);
//===================================================

Similar Messages

  • I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    I would like to cut and paste information from a word file onto a pdf file, as well as draw lines onto the pdf file.  How can I accomplish that task?  Is there software I can purchase?

    Hi jgallu7382,
    The latter is easily accomplished using the Drawing Markup tools, which are available in both the free Adobe Reader, and in Acrobat. Copying/pasting text into the PDF is something that you could do using the editing tools that are available only in Acrobat. Note, however, that Acrobat isn't intended to be a text-editing application, so editing there won't be as robust as in an application designed specifically for that purpose. (It's also worth mentioning that you won't be able to alter a PDF if it has document permissions applied that would prevent you from doing so.)
    I hope that answers your questions.
    Best,
    Sara

  • Drawing a curved line using the pen tool, dragging the text cursor over the line but will only give me a small area to write in, in-between a circle and a circle with a cross in?

    Drawing a curved line using the pen tool, dragging the text cursor over the line but will only give me a small area to write in, in-between a circle and a circle with a cross in?

    If you change your tool to the "Direct Selection Tool" (A) then you should be able to adjust the area for you to type in...

  • Measure tool like photoshop

    HI e
    verybody,
    The measure tool does not seem to be like the one in photoshop.
    How can I measure an angle between two objects ( forms or else) ?
    You know in photoshop you drag the measure tool and then keeping the mouse pressed you alt and go on the othe way.
    Thank you,
    JPD

    Nope, the measuring tool does not do arbitrary angles.
    Mylenium

  • I would like to find a program to draw lines, shapes and words for my iMac.

    If anyone can help me find a program or App for my iMac that lets me draw lines, shapes and letters.
         Thank You
         Sandy

    http://www.sketchup.com/
    Try this it is a free download and it is a great program. I almost feel guilty not paying anything:)

  • Illustrator Measuring tool Question

    Hello to all my name is Ron. Can someone tell me If the measuring tool in Illustrator can be set at a particular length? In other words, Can I set the measuring tool to, let say, 3.5" with out It retracting, and move It around the document. I believe that I saw someone do this using an older version of Illustrator a few years back, but I could never figure out how do It. Thanks for any help. The version I have access to is prehistoric, It's Illustrator 10.
    Regards,
    Ron

    Can I set the measuring tool...and move It around the document.
    Don't waste time trying to get any practical use out of Illustrator's pathetic measure tool. (Fercryin'outloud, if any tool should provide proper and reliable snap-to feedback a measureing tool should!)
    Use the Line Tool instead.
    To create a fixed-length "ruler" Get the Line Tool, click (don't drag), set the desired length and direction, and click Okay.
    To use a "line" (a single-segment path) or any straight segment of a path as an adjustable measuring tool:
    1. Turn on SmartGuides (necessary in Illustrator whenever you need reliable snaps)
    2. Get (and keep) the under-informative Info Palette in front of you.
    3. Get (and keep) the redundant, should-be-unnecessary Document Info Palette in front of you. Everytime you start the stupid program, tediously reset this palette to Objects and Selection Only. Set that way, it displays the length of the selected path.
    4. Remember that any time a selection is active, you can doubleClick either the white pointer (for anchorPoints) or the black pointer (for objects) to invoke the Move dialog, to specify a movement in terms of distance and direction.
    Then proceed as follows:
    If you have a fixed measure of a particular direction that you need to repeatedly apply. DoubleClick the Line Tool to specify a single-segment path of desired length and direction. Use the path as a moveable "measuring stick". Just be sure to remember to always select the whole thing before moving it around by one of its ends (as you would do so as to snap the end to an existing coordinate). You have to always be mindful to consciously work around Illustrator's stupid insistence upon its hideous dual selection tools.
    Disregard the crap you often hear bantered about regarding how any self-respecting self-proclaimed "Illustrator expert" never uses the black pointer and always leaves Bouding box display off. ShiftDragging one of the two bounding box corners at the endpoints of a single-segment path is one of the few ways to maintain the angle of a segment while dragging its endpoint to snap to another path, guide, or other snapable coordinate. Granted, Illustrator should provide the means by which to constrain the drag of that endpoint to the segment's existing angle without resorting to a bounding box, but in Illustrator, everything is a workaround.
    When you need to set a length of a diagonal straight segment of an existing path, realize that you can drag the anchorPoint that you want to exend or shorten to a specific distance/angle and snap it right on top of the anchorPoint at the other end of the segment. Then doubleClick the whitePointer, and enter the desired length/angle into the Move dialog.
    Remember that you can convert paths to pathGuides, and that pathGuides including their anchorPoints are snapable. You can then lock/unlock Guides  and still snap to their anchorPoints. So, for example, if you need to snap to distance increments along diagonal construction axes, you can draw a straight path with anchorPoints distributed uniformly and convert that to a snap-to pathGuide. (Try to ignore the fact that better programs with SmartGuides-like features provide settings for incremental snaps along the pre-defined constraint angles, so such tedous setup is not necessary.)
    JET

  • Can't open PDF enabled for Measuring Tool

    Help please!! I need the measuring tool via Reader X. So per this forum, I had the creator of the PDF do the following in Acrobat...
    File>Save As>Reader Extended PDF>Enable Commenting and Measuring
    Then I tried opening the PDF, but I get this error...
    Adobe Reader could not open "XXXXXX.pdf" because it is either not a supported file type or because the file has been damaged (for example, it was sent as an email attachment and wasn't correctly decoded).
    The file IS a .pdf file type and I am accessing it via a shared drive (not email) and I don't know how you'd tell whether it was damaged. Do I need to change some other setting on Reader X? Is there a technical solution that is not obvious? Or do I need to go back to the drawing board and work with the creator?!
    Thank you!

    Hi SGckc,
    This document is almost certainly a dynamic XFA form. Unfortunately, our mobile Reader does not support displaying or filling such forms. The application that produces this form embeds this message into the document so that non-supportive viewers (like ours) will display this "error" page when the document opens. I do realize that this is confusing and I would like to add some additional detection to our Reader for this case. However, we've avoided doing this for fear of confusing users even further. Your feedback helps though. Hopefully we'll find a way to detect this case and present a better message to the user like: This form is not supported by the mobile version of the Adobe Reader. Please open and fill it on the non-mobile version of the Adobe Reader for Windows, Linux or Mac OSX.
    Thank you for contacting us!
    Pat

  • Using a javascript to change the font size used by the measurement tool

    A couple years ago I saw a javascript written that would allow me to chang the font size used by the measurement tool in Acrobat 9.  When the IT department deliverd my new laptop with Acrobat X Pro, they had wiped out the script and I am not expert enough to recreate it from scratch.  Any suggestions?  I believe it was in an older post by Dave Merchant, but I truly can't find the post or a way to recreate the script.  Thanks for any help.

    Executing this code from the JS console will change the font size of all the Measurement annotations to 20. You can change the value in the first line to use a different font size:
    var newTextSize = 20;
    this.syncAnnotScan();
    var annots = this.getAnnots();
    for (var i in annots) {
        var annot = annots[i];
        if (annots[i].type=="Line") {
            var richText = annot.richContents;
            for (var i in richText) {
                richText[i].textSize = newTextSize;
            annot.richContents = richText;

  • Changing the Measuring Tool Graphics size (arrows and leaders)

    I am measuring a drawing and I can't see what I need to click on because the measuring tool graphics are so large. Please see the images. Is there a way to make the graphics smaller, thinner, etc. so that I can actually measure something with a bit more accuracy?
    In the pictures below I am trying to measure a wall footing and in the second image the rectangular footing is covered by the arrows when using the measuring tool. In the third picture, you can see what I am measuring and how covered up the rectangular footing is in the previous image.
    I want to annotate the drawing with the measurements so I don't want to turn off the leaders and annotation. If someone has an answer, i would really appreciate the help. Thanks in advance.
    Mac OS 10.7.5
    Acrobat X Standard

    I am sorry if I have wasted anyone's time. I have actually now found a solution.
    Right clicked the page when the measuring tool was selected and chose 'change scale ratio'. However, I would have never thought that it was a ratio issue...
    Thanks a lot, anyway.

  • Adobe Elements 7 have a Measuring Tool?

    Just installed adobe elements 7 and am looking for the measuring tool that in previous versions was located with eyedropper.   We use it for making angular measurements between two intersecting lines.   While Elements has a straightening tool, this will automatically reposition my image depending on what line I draw, but will not allow me to make my measurements.   Does anyone know where measuring tool is now located?
    Thanks for your help.

    A workaround in Elements is to use the line tool with the info palette open. As you draw the line, the info palette will display the line's length and angle. (Make a note of the angle/line length before releasing the mouse button as this info disappears once you release the mouse button.) Edit: Alternately, you could drag out your line at the desired angle and use it as a guide.
    If you only need the length and height, drag out a rectangular marquee around the object to be measured. The info palette will display the marquee's width and height.

  • The measuring tool and scale ratios

    For mac users-
    I use Adobe to open and work with Architectural plans. The measure tool has been a valuable partner in working up bids and scaling things when no measurements exist. However, no one has addressed how to use the scale tool for these type of drawings. Here is what I have come up with. Hold the option key and click the drawing and the change scale ratio menu appears. If your drawing says 1/4=1' use .25 in the scale ratio / select inch = use 1 in the next window / and ft in the last.
    Any of these digits should get you an accurate scaling of your document providing it was scanned properly. I have been looking for a list like this for years. I hope it helps you.
    .50 for 1/2" = 1'
    .1250=1/8"=1'
    .25 for 1/4=1'
    .37 FOR 3/8=1'
    .75 FOR 3/4=1'
    0.09375 FOR 3/32 =1'
    .189 FOR 3/16 =1'
    0.0625=1/16 = 1'
    0.0425 =1/20 =1'

    Hi bigsumm,
    Please let us know, the Adobe product, you need assistance with.
    Regards,
    Anit Kumar

  • Neat infographic and how do you make lines like this?

    Here is the infographic:
    http://www.stevey.com/wp-content/uploads/2009/01/50-years-exploration-huge.jpg
    I can't figure out if these lines rendered by hand or done with some application -- anybody suggest an approach?

    I can't figure out if these lines rendered by hand or done with some application
    Probably both.
    You utilize whatever geometric automation is made available in the feature set of the drawing program you are using, and complete the rest with other features and/or manual path-specific manipulations.
    In general-purpose drawing programs like Illustrator, you could, for example, use features like Offset Path or the Polar Grid tool to draw the concentric ring portions of the paths, and use Blends or the Reshape Tool to draw the converging portions of the paths.
    If drawn in Corel Draw, for example, its Contour Tool might have been used for the concentric portions.
    Often, several different approaches can accomplish the final art (some more efficient than others).
    The general process is:
    Study the geometry needed for aspects that suggest they might be automated or at least semi-automated.
    Determine which aspects need to be numerically accurate (as opposed to merely aesthetically pleasing).
    Consider the automated features of the program you are using (requires, of course, proficiency in the program.)
    Based on that knowledge (of the requirements and the capabilities of the program), devise a procedure that meets the requirements, adding manual path drawing where you have to.
    On the other hand, it's entirely possible that the orbits are drawn entirely automatically by a program that interprets numerical data as curves. For example, a CAE program might have modeled the paths from numerical data and exported them as 2D paths that were then imported into an ordinary drawing program for artistic treatment and embellishment (in much the same way you might take a mathematically-correct 2D perspective drawing exported from a modeling program and then "make it pretty" it in a drawing program).
    Some ordinary drawing programs (Canvas, for example) include features that can plot curves from algebraic curve functions. Some ordinary drawing programs (Illustrator, Corel Draw, Canvas) can be scripted to draw paths from numerical data (although unlikely for the whole paths shown in your example, since the geometry would have to be tediously converted to control coordinates for Bezier curves).
    So there are several ways to skin the cat; but you first have to know which cat has to be skinned (i.e.; what the real requirements are). Are the orbits actually accurate flight paths, or are they just "artist conception" interpretations? That's not clear from just looking at your example.
    JET

  • Draw line(s)

    Hi,
    I am wondering how can I draw lines b/w two points. I assume there should be spatial function where I can pass lat,lon of first and second point.......
    any help is appreciated.
    Al

    You can use Luc's function, but it's quite easy to insert newly created geometry:
    INSERT INTO cola_markets VALUES(
    2,
    'cola_b',
    SDO_GEOMETRY(
    2002, -- two-dimensional line
    NULL, -- SRID - identifies coordinate system
    NULL, -- If it's a point, you can put that here
    SDO_ELEM_INFO_ARRAY(1,2,1), -- single line, points connected by straight lines
    SDO_ORDINATE_ARRAY(5,1, 8,1)
    and it's not that difficult to create a function that you call which takes 4 parameters (x1,y1,x2,y2) which calls something like the above statement.
    If you have WKT or WKB (Well Known Text or Well Known Binary info, you can use these:
    SDO_GEOMETRY(wkt CLOB, srid NUMBER DEFAULT NULL);
    SDO_GEOMETRY(wkt VARCHAR2, srid NUMBER DEFAULT NULL);
    SDO_GEOMETRY(wkb BLOB, srid NUMBER DEFAULT NULL);
    But there is no specific function to 'draw' a line (you can use third-party tools for that though, there's a lot of them out there that do offer graphical interfaces to Oracle Spatial Data).

  • SmartForms - draw line in template

    Hi!
      I am new to SF, so have a question on drawing line in a template. I use template as the data is only printed out once and is static. I have many columns in my template and I would like to draw lines on the columns so that it is tidy & looks nicer.
      I double click the template & in the "output options" tab, I checked the check box "line with..", but error prompt out to stop me, saying "Boxes/Shadings are not allowed within a table".
      Does anyone know how can I draw lines in a template?
      Kindly advise.
    best regards,
    Ginnie

    Hi,
             Click on the template under the template tab, and then click on the select pattern just under the template heading , there you use lines.
    regards,
    Santosh Thorat
    Edited by: santosh thorat on Dec 26, 2007 10:09 AM

  • Draw line in illustrator cs2

    hi,
    i am new to adobe illustrator cs2.
    is there any other method to draw line other than s
    setEntirePath().
    thanks in advance,

    Hello David,
    It sounds to me like you're witnessing the double edged sword of an incredibly sharp display. The contrast and clarity of LCD displays makes it very easy to see razor-thin lines with ultra fine definition, but this comes at a cost.
    Font smoothing (a.k.a. font aliasing) is one example of where most LCDs are so sharp that most people prefer to have their text "fuzzed" up a little bit.
    A one pixel wide diagonal line is another example that you've discovered - the display is so sharp that there is no blurring around the "steps" of the line. You can see every change in gradient, because as sharp as your CRT might've been, it was blurring the line just slightly - enough to enhance the illusion that your diagonal line was a line rather than a series of adjacent "steps". No software package that I know of has bothered to implement "line smoothing" yet, probably because you need the detail for accuracy when putting lines together.
    Sort of related to this, big screen HDTV plasma and LCD monitors look amazing in the store when tuned to an HD station, but most people would be floored if they say how grainy and pixelated a standard cable signal looks on the same display. It's literally like watching an old VHS tape, because the display is so sharp it resolves detail that is invisible on a "lesser" display.
    Neat human trick: get used to working with your LCD, and then go back to the CRT if you have a chance. How does the CRT look? I thought I needed glasses the first time I switched back!
    -Shawn

Maybe you are looking for