Create a line with arcs using new SdoApi (not liniear)

Hi
How we create a line with arcs using sdoapi (not liniear line)?
Philipp

Philipp,
You have to use the default constructor for JGeometry
to build lines with arcs:
public JGeometry(int gtype,
int srid, double x, double y, double z,
int[] elemInfo, double[] ordinates)
Currently, this is the only way to create lines with arcs.
siva

Similar Messages

  • Why r we allowed to create String objects with & without using new operator

    While creating any object, usage of the new operator is a must...but only for the string object we can create it with and also without new operator how is it possible to create an object without using new operator.

    Because Mr. (Dr.?) Gosling is a kindly soul who realizes that programmers have deadlines and, when he designed Java, was not so rigid or unbending as not to realize that from time to time, certain shortcuts are warranted, even in a relatively pure language such as Java. The direct String literal assignments are a shortcut over using the new operator making Java programming (and execution; there's also a performance benefit) more streamlined.
    So look not the gift horse in the mouth, but simply bask in the simplification and ease on the eyes and directly assign your little literals to your heart's content.

  • Join 2 lines with Arc

    Anyone could give me a example to join 3 lines with Arc?
    I´ve already tried to join using QuadCurveTo, but my lines were wrong.
    Thanks,
    André Rezende

    Oh, so it is much simpler than I thought... :)
    Here is a quick code to get you inspired:
    var scene: Scene;
    Stage
        title: "Forum Test"
        scene: scene = Scene
            width: 1000
            height: 100
            content:
                Button
                    text: "Show wave"
                    action: function (): Void
                        insert MakeWave() into scene.content;
    function MakeWave(): Path
        println("Making a wave");
        var wave = Path { stroke: Color.LIGHTBLUE, strokeWidth: 8 }
        def radius = scene.height / 5;
        def high = radius;
        def low = scene.height - high;
        def len = (scene.height - 2 * radius) * Math.sqrt(2);
        def arcLen = 2 * radius / Math.sqrt(2);
        var xPos = radius;
        var yPos = low;
        insert MoveTo { x: xPos, y: yPos } into wave.elements;
        println("{xPos} - {len} - {scene.width - len - arcLen}");
        while (xPos < scene.width - len - arcLen)
            xPos += len;
            yPos = if (yPos == low) high else low;
            print("{yPos} - {xPos} ... ");
            insert
                    LineTo { x: xPos, y: yPos }
                    ArcTo
                        x: xPos + arcLen
                        y: yPos
                        radiusX: radius
                        radiusY: radius
                        sweepFlag: yPos == high
            } into wave.elements;
            xPos += arcLen;
            println(xPos);
        return wave;
    }That's not a mathematical sinusoid but I think that's what you meant.

  • Error while creating sales order with ref using SD_SALESDOCUMENT_CREATE

    Hi
    I am creating sales order with reference using function module SD_SALESDOCUMENT_CREATE , while creating i am getting error
    Document doesn't have document category even thougth i am passing document category in header as well as item lavel.
    In VBUK table there is no value for VGTYP.
    Can you please help me how to resolve it.
    Thanks & regards
    kiran

    Problem resolved by passing   REFDOC_CAT in the FM along with  SD_DOC_CAT.
    Thanks

  • I am creating a slideshow with elements using photos and videos but the video sound doesnt play?

    I am creating a slideshow with elements using photos and videos but the video sound doesnt play?

     Hello jive
         I am playing it back in the slideshow editor/setting up part of
    programme where you determine photos/video to be included gaps between
    slides, music to play etc This goes through each phot and when comes
    to a video the background sound doesnt play, I am using windows 7 and
    elements 10.
         regards gins51

  • My laptop goes on line with my neighbors linksys but not my own

    my laptop goes on line with my neighbors linksys but not my own

    What is the Model no of the Router...?
    Who is your ISP..?
    Are you able to go online on hatd-wired computer from the router...?
    If you are able to go online on the hard-wired computer then,try changing the wireless channel on the router.Provide the unique name for SSID on the router.Make sure you are typing the correct security key.

  • Problem with Script Using New() to Create a #Vectorshape

    Hello,
    I am having a problem integrating an existing movie script into a movie I am building and I can't figure out why.
    The single movie script, developed by JC in 2004,  appears below. It works perfectly in a movie all by itself. But I need to integrate it into an existing movie in which other sprites and behaviors must coexist.
    The problem I am seeing is that gMem is created with the new command (can see it in the message window using put gMem), but it will not allow attachment of gMem.regPoint, gMem.centerRegPoint, and so on. These all return errors.
    I would also be open to another solution to the problem. What I need to do is create rectangles that represent a plan view of a rooftop on an underlying grid and then be able to drag and place other images on it (it is for training purposes, not a game).
    I am using MX2004 on a PC. Any help, deeply appreciated.
    Rod Wolford
    global gMem, gCount, gNum, gLoc, gCreateVert, gMemNum
    on prepareMovie
      clearGlobals()
      _movie.puppetTempo(60)
      gCreateVert = False
      gMemNum = 5
    end
    on mouseDown
      if not(gCreateVert) then
        gMem = new (#vectorShape, member gMemNum of castLib 1)
        gMemNum = gMemNum + 1
        gMem.regPoint = point(0,0)
        gMem.centerRegPoint = False
        gMem.closed = False
        gMem.antialias = True
        gMem.strokeWidth = 0.25
        gMem.strokeColor = rgb(0,0,0)
        gNum = getFreeChannel()
        channel(gNum).makeScriptedSprite(gMem, point(0,0))
        sprite(gNum).ink = 36
        gCount = 0
        gCreateVert = True
      end if
      if gCreateVert then
        if the doubleClick then
          gCreateVert = False
          gCount = gCount - 1
          gMem.deleteVertex(gCount)
          gMem.closed = True
          gMem.fillMode = #solid
          gMem.fillColor = rgb(random(256) - 1,random(256) - 1,random(256) - 1)
          gFinished = True
          exit
        end if
        gCount = gCount + 1
        gMem.addVertex(gCount, the mouseLoc)
        gCount = gCount + 1
        gMem.addVertex(gCount, the mouseLoc)
        gLoc = the mouseLoc
      end if
    end
    on enterFrame
      if gCreateVert then
        gMem.moveVertex(gCount, the mouseH - gLoc[1], the mouseV - gLoc[2])
        theLoc = (gMem.vertexList)[gCount][1]
        if not(theLoc = the mouseLoc) then
          gMem.moveVertex(gCount, the mouseH - theLoc[1], the mouseV - theLoc[2])
        end if
        gLoc = the mouseLoc
      end if
    end
    on stopMovie
      theCount = castLib(1).member.count
      repeat with i = 1 to theCount
        if member(i).type = #vectorShape then member(i).erase()
      end repeat
    end
    on getFreeChannel
      repeat with i = 1 to the lastChannel
        if sprite(i).member.type = #empty then
          aNum = i
          exit repeat
        end if
      end repeat
      return aNum
    end

    Sean,
    Thank you. Changing gMem handler from #new to #_movie.newmember did the trick. I still have not found the behavior or movie script that contains the #new handler that created the problem. I was not aware of the #_movie.newmember handler. Seems that because it is specific to a new member added into a movie that it may be more useful than just using #new when adding new members is needed. Is that so? Does it have any downsides?
    Once again, thanks for your answer. By the way, I think the script was originally a J Chunick script.
    Regards,
    Rod

  • Creating contract reference with Quotation - using bapi or fm

    Hi Friends
    Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    how to create contract referenced with particular line item in the quotation.
    where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    thanks
    Gowrishankar

    gowrishankar p wrote:
    Hi Friends
    >
    > Currently I am creating contract using function module sd_saleorder_create function module.But as per new requirement we have to create contract referenced with quotation number.
    >
    > Please suggest the suitable bapi or function module.if you suggest some thing ..kindly let me know?
    >
    > how to create contract referenced with particular line item in the quotation.
    >
    > where I need to pass the referenced line items...if you need any inputs..will reply by tomorrow...
    >
    > thanks
    > Gowrishankar
    is it really SD_SALEORDER_CREATE? if yes, which version are you in?
    Have you thought about 'BAPI_CONTRACT_CREATEFROMDATA'. Documentation available for this bapi.
    If not, just an FYI, REF_DOC field in (BAPISDHD1) -Contract_header_in structure can be used to pass the ref document and check for the type. You will also need to pass the type for this ref_doc.
    Assuming you have the configuration in place already.
    Search forum for this BAPI to get the sample code.

  • Problem with BOM Quant while creating Sales order with reference using BAPI

    Dear All,
    I am facing problem with creating a slaes order with reference to other sales order by using BAPI_SALESORDER_CREATEFROMDAT2 .
    Sales order is getting created but
    1. It exploding the BOM means the line items which are not there in the reference SO also coming in the new SO ( all BOM items are coming )
    2. Schedule line for BOM header item is getting copied to all sub items of BOM.
    Can any one help me out to prevent the above deviations in creating Sales order with reference by using BAPI_SALESORDER_CREATEFROMDAT2.
    Note: while passing the parameters to BAPI_SALESORDER_CREATEFROMDAT2
    all the data related to items is exactly the same as in the original Sales Order.
    Thanks in advnace.
    Regards,
    John

    Hi All,
    Can any one help me !!!!!!!!!!
    please

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • 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:

  • Creating a .fmb with out using form builder

    Hi
    I am having a template to create form modules in the forms builder, for the most of the forms I need not change any
    of the PL/SQL code provided by the template. (All my business logic and information regading items in object navigator resides in the database) The only thing that I need to do is creation of fields in object navigator and provide the
    sub class information for it. So I felt that It's better to have a tool which generats the requried .fmb file if the all
    field details are stored in a table.
    While expermenting on that we came to know that there are some functions provided by Oracle Developer6.0 that creates all
    objects in the object navigator using a C program. These programs requires some header file, most of which are provided by
    Oracle developer6.0 and some are missing.
    Pls. let me know if any one experimented
    Thanx & Regards
    ([email protected])

    u have 2 options
    create  amterial master with price control indicator standrd and maintin the price of mateirial in account view now create a po with free line itme and do the gr now in this case sytem will create a accounting document and it post the amount to the stock account Dr.
    and no gr/ir  account hit will happen as it is a free itme so there is no question of paying any amount to vendor
    u can also use movement type 511 to do the gr for that free good
    option 2  create  am material with moving average price in this case if u do the gr then  system will not create any account document but point to note here is the price will become then zero in material master as map means latest price is updated in matreial master

  • LabVIEW created .DAT file with saving only new data on existing files

    I can successfully create and save a .DAT file using LabView and Diadem.   The save command I am using (in Labview) only overwrites existing files, I would like it to save only the new data from the last save.  Overall I would like to save the data every 1hr and since my test will last for many hours, the further along in the test the longer it would take to save the full file.  I know Diadem has the capability to save in such a manner, so I have thought about after I write to Diadem have a small Diadem application save periodically, but I haven't found a way to save the .DAT file, with out any signals coming into the save function.  I have attached the example .DAT file creater and saver I am using to figure it out.  thanks for your help!

    Howdy New Guy -
    I am not sure if you are looking to append to a file, or if you would
    like to overwrite a file.  In either case, you can take a look at
    the "Append To File.vi" example for DIAdem. 
    Either way, you may be experiencing problems because you are only using
    the "DIAdem Simple File Write.vi" (found on the DIAdem >> DAT
    Files palette).  Instead, you can use the "DIAdem File Write.vi"
    (located on teh DIAdem >> DAT Files >> DAT Files Advanced
    palette).  This VI can be set to overwrite or append to file.
    I hope this helps in your development!
    Andrew W. || Applications Engineer

  • How can I create a video with effects using my ipad?

    How can I create a video with effects (sepia, B&W, Negative, oval or any other shape borders) using my ipad?  I would Like to keep a higher res and also be able to shrink it down to email or send in a MMS. Or should I just upload it to my PC and mess with it there? Some of the apps I have are very easy to use compared to the learning curve needed for video editing software.
    Thanks

    Thats the Problem . . . how many apps do I have to try until I find the one I want? I noticed a few will render the video thus losing its original size. When I went to edit it more in iMovie the video was smaller--not good. And what software do you suggest, Templeton, for the PC? I love the apps because they are easy. I dont have hours to mess around on a software to figure out if its something I want. Im looking for simplicity. Maybe Ill get more into it later. I just want to record simple video of my playing the guitar for self analysis and create a short video for family and friends.
    Apps:
    iMovie
    CinemaFXV
    VideoFix
    Cartoonatic
    Video illusion
    VidEditor
    Software:
    Windows Movie maker (wont accept .mov files)
    After Effects (Too little time, so much to learn)
    Wondershare (Very easy but little choices)
    VideoPad (Again. Few choices)

  • Creating a PO with reference (using document overview) with ref to a PO?

    Is this feasible to create a PO with reference to a PO ?????

    Hi Maria,
    Creating a PO with reference to another PO is possible even without the doc. overview. If you scroll your item overview long to the right you will find the columns "Purchasing document" and "Item" aside it (4th nd 3rd columns from the right in my version). Type in your referenced PO number there and the item and press Enter.
    However, I don't think this will help you. If you are not allowed to create PO with reference to another PO, you will not be able to "cheat" on the system. Such limitation is normally introduced by "Functional auth. for buyers": IMG for Purchasing > Authorization Management > Define Function Authorizations for Buyers. Check the frame "Possible Reference Objects". The two-digit key of the "func. auth." is assigned to your user using the parameter ID EFB.
    BR
    Raf

Maybe you are looking for

  • FBV0 Screen Attachment through workflow to external mail address

    Hi, i have a requirement to create approver for parked documents i found workflow ws10000055 to set the release status, now this screen is comming in SAP Business inbox at started workflow tab. but this FBV0 screen should go as attachment in mail for

  • OS 9 networking conflicts/problems

    I've got a OS9 networking problem that I can't seem to figure out... At work we run two PowerMac G4s and two iMac DVs. One iMac (Mac A) functions as our 'server' and is connected by Ethernet to our Airport Extreme and all the others (Mac B, Mac C and

  • Can you search by file folder size?

    I have 42 GB left on my hard drive and I've purged as much as I can but it still says I have used 148.93 GB of space, of which I cannot really account for in Documents, Music, Movies or Photos (they are all stored on external hard drives). My Applica

  • Script for getting all windows Drives freespace information

    Hi All, Any can post the batch script to get the disk drives freespace info for multiple servers. Cheers, Govind

  • Video podcasts not showing up on iPod

    Since the recent update of my iPod, my video podcasts are not syncing to my iPod.  When I sync with iTunes, I have all the podcasts (both audio and video) selected to sync but only the audio podcasts are available to me via my iPod.  What's going on