Update geometry of a cylinder

Hi,
There is a way to update the geometry of a cylinder (radius, length) ?
There is nothing about on javadoc. It's only possible to get the shape...
Thanks.
Edit : i will looking on http://aviatrix3d.j3d.org/javadoc/org/j3d/renderer/aviatrix3d/geom/Cylinder.html#setDimensions(float,%20float)

Hope this helps:
import javax.media.j3d.BoundingSphere;
import javax.media.j3d.BranchGroup;
import javax.media.j3d.DirectionalLight;
import javax.media.j3d.Transform3D;
import javax.media.j3d.TransformGroup;
import javax.vecmath.Color3f;
import javax.vecmath.Point3d;
import javax.vecmath.Vector3d;
import javax.vecmath.Vector3f;
import com.sun.j3d.utils.geometry.Cylinder;
import com.sun.j3d.utils.universe.SimpleUniverse;
public class Java3D {
     private Transform3D scaleShape;
     private TransformGroup scaleGroup;
     public Java3D(){
        SimpleUniverse universe = new SimpleUniverse();
        BranchGroup group = new BranchGroup();
        Cylinder cyl = new Cylinder(1.0f, 1.0f);
        // Create a red light that shines for 100m from the origin
        Color3f light1Color = new Color3f(1.8f, 0.1f, 0.1f);
        BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0);
        Vector3f light1Direction = new Vector3f(4.0f, -7.0f, -12.0f);
        DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction);
        light1.setInfluencingBounds(bounds);
        group.addChild(light1);
          scaleShape = new Transform3D();
          scaleShape.setScale(new Vector3d(0.05,0.05,0.05));
          scaleGroup = new TransformGroup(scaleShape);
          scaleGroup.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
          scaleGroup.addChild(cyl);
          group.addChild(scaleGroup);
          // look towards the ball
          universe.getViewingPlatform().setNominalViewingTransform();
          universe.addBranchGraph(group);
     public static void main( String[] args ) {
          Java3D j3d = new Java3D();
// time delay for viewing transformation
          try {
               Thread.sleep(5000);
          } catch (InterruptedException e) {
               // TODO Auto-generated catch block
               e.printStackTrace();
// translate object
          j3d.scaleShape.setScale(new Vector3d(0.5,0.5,0.5));
          j3d.scaleShape.setTranslation(new Vector3f(0,0,0.0f));
          j3d.scaleGroup.setTransform(j3d.scaleShape);
} Edited by: grndvl1 on May 26, 2009 12:58 PM
Edited by: grndvl1 on May 26, 2009 1:12 PM

Similar Messages

  • Updating Geometry

    I'm writing an application which must plot a 3D curve. It has 3 panels, each of which has a 2D projection of the curve (xy, xz, yz). Moving the points on the panels will change the properties of the underlying 3D curve.
    When I start the application, The 3D curve is shown correctly, but when I move the points, the 3D curve doesn't change.
    I have added a custom behavior to the BranchGroup, which is woken up with a postId. This occurs every time the user moves the points on the 2D panels.
    The behavior has references to the 3 lines making up the curve, and in the processStimulus, it calls an updatePoints method on each line, passing it the new coordinates.
    The line object's updatePoints method calls setGeometry(createGeometry...) to update the underlying geometry of the line.
    All the methods get called correctly (i.e. when the points are moved, the behavior's processStimulus is called, and the updatePoints methods of each line are called.)
    No exceptions are thrown. However, the view of the 3D curve doesn't change!!!
    Any idea why this happens?
    As a test, I added a rotation to the behavior when the points are moved, and this rotation took place, but still the curve didn't change!!
    Thanks,
    Jim

    Resizing the whole frame (which contains the panel containing the 3D canvas) doesn't cause the updated geometry to be reflected in the curve. So I guess the canvas3D is being redrawn. Any other ideas?

  • Geometry SRID update error

    I am getting "Ora-02309" atomic null violation on updating SRID below.
    Update my_Table C
    set C.Geometry.SDO_SRID=2958;
    It has null/no value of SRID in Geometry.
    some people say to "Initiating your object before you access it" but I am not sure how to di it.
    Thanks
    Nancy.

    Please validate you geometries using VALIDATE_GEOMETRY_WITH_CONTEXT. If you have invalid geometries fix it before update the SRID. Is there a spatial index on the geometry column? If yes here are the steps to perfom the update:
    1. Fix invalid or null geometries
    2. drop the spatial index
    3. update user_sdo_geom_metadata (SRID)
    4. update geometry srid
    5. create spatial index
    Arnd

  • How to [b]update[/b] [b]sdo_geometry[/b] field via [b]Database Link[/b]

    I need to update a geom field(defined as mdsys.sdo_geometry) of a remote table via database link,but I failed; This is the SQL statement and the error;
    update [email protected] set shape=mdsys.SDO_GEOMETRY(2002, NULL, NULL, mdsys.SDO_ELEM_INFO_ARRAY(1, 2, 1), mdsys.SDO_ORDINATE_ARRAY(2340411, 749349.375, 2340505.75, 749663.25, 2340571.75, 749924.813))
    where objectid=1;
    ORA-22804: remote operations not permitted on object tables or user-defined type columns
    How could I update geometry field of a remote table?
    Is there any method available ?
    Thanks!!

    Hi Percy,
    Oracle distributed does not support objects. If you are using 9i there might be just enough functionality to support what you want to do (replication required some distributed support, which might be enough for you).
    If it doesn't work then you may be out of luck with respect to distributed support, but you can connect to the remote database and update it that way.

  • How to create a curved-type cylinder

    We can create the basic geometries easily with J3DAPI , but how to create a curved-type geometry such as cylinder ?
    Searching for help ....
    Thanks a lot for giving any tips or information about it !

    With the idea of "Divide & Conquer" , I has a rough solution.
    Edited by: DragonWarrior_CHN on Mar 19, 2010 2:22 AM

  • InCopy/InDesign

    I've just started at a new magazine and I think the Incopy/InDesign is set up incorrectly. Just need someone to clarify. As it's being used, when the designers begin a layout, they cut the copy out of editorial file and paste into their layout in InDesign. This, of course, means that the editors can no longer work in the file until it's attached.
    My experience has been that designers should have read only capability to the text file and should only be able to copy and paste the text into the layout for design purposes. Editors can continue to work on the text. Once the text is attached to the layout then editors are locked out.
    Yes? No? Should I have the entire staff retrained?

    Thank you so much. I have a feeling that the whole system isn't set up correctly because neither editors nor designers are getting the "update geometry" boxes when in fact the layout or copy has changed.
    I was trained at another company and the system worked perfectly. When I got here and saw what was happening I was completely confused. Thought I was going crazy. The production manager we had has left so I now have the opportunity to start over.
    Thanks for the information about the tutorials. First, I'm going to get a K4 expert in to make sure that everything has been installed correctly. Then I'll definitely check out the video tutorials.

  • 3D CS4 extended

    I want to place a graphic onto a photograph of a mug and create a wrap around 3D effect in CS4 extended. Any suggestions please?

    Make a 3D cylinder that matches you mug on a separate layer then bring your graphic into the document on a layer on top of that and position the same as the mug, you can use the transparency slider, that when you have the cylinder ing the right position and the graphic i the relative orientation you can merge the graphic to the cylinder of course first bring the Cylinder back to 100% opacity. You of course now have to rasterize the the 3D layer and erase and excess left from the 3D cylinder. You can also turn your graphic into a texture and map the graphic that way as well there is a tutorial on this on the Adobe website.
    Or you can to a similar thing in AI but in that case you will not have to erase the excess of the cylinder since you can make the geometry of the cylinder invisible in AI.

  • RTP receipt

    I am using RTP material (eg gas cylinder)
    A gas PO is created and at MIGO along with gas, RTP is being received using 101.
    When I am doing mvt typ 103, system is allowing me to receive RTP but when i am doing 105 wrt this 103, system is not pulling the RTP line item of 103. Also, the RTP icon in MIGO screen is greyed for 105.
    How can I solve this?
    regards
    VS

    It will allow to take RTP with movement type 101 or 103.
    After posting 103 movement type, it will update stock of Gas in "GR blocked Stock" and also update stock of "Gas Cylinder" under unrestricted stock with special stock category of RTP Stock. Check in MMBE.

  • Problems of VRML calling JAVA !!!!

    I have created a vrml file which will call a java class. I compiled the class with vrml package found in cosmoplayer 's folder. The class is complied successful, but when i run the vrml file, the cosmoplayer stated that the class can't be found ! But i have put them in the same directory. I tried many examples, all got same result. Hope someone can help me to solve this problem.
    Also, i want to ask is that possible to embed the vrml file into an applet panel ?
    Thank you for help !!

    Hi Ravi,
    Thks for helping me to embed vrml into a applet panel, i will try it later. Since i am not familiar with java3d now.
    Also, i wonder that why my vrml file can't load the class, the error shown in cosmoplayer browser is can't find the changeColor.class. The program is very simple, just used java program to change color of the vrml objects and i am sure they are in same folder.
    Here is my vrml code and java code:
    changeColor.wrl:
    #VRML V2.0 utf8
    Viewpoint
         position 0 0 5
         orientation     0 0 1 0
         fieldOfView     0.8
    Transform {
         rotation 0 0 1 1.571
         children [
              DEF     t1 TouchSensor {}
              Shape {
                   appearance Appearance {
                        material DEF color1 Material {
                             diffuseColor 1 1 1}
                        geometry DEF cyShape Cylinder {
                             height 1
                             radius 0.5
    Transform {
         rotation 0 0 1 1.571
         children [
              Transform {
                   translation     0 -1 0
                   children [
                        DEF     t2 TouchSensor {}
                        Shape {
                             appearance Appearance {
                                  material DEF color2 Material {
                                  diffuseColor 1 0 0}
                        geometry USE cyShape
    DEF     changeColor Script {
         url     "changeColor.class"
         eventIn     SFBool get_t1
         eventIn     SFBool get_t2
         eventOut SFColor set_c1
         eventOut SFColor set_c2
    ROUTE t1.isActive TO changeColor.get_t1
    ROUTE changeColor.set_c1 TO     color1.diffuseColor
    ROUTE t2.isActive TO changeColor.get_t2
    ROUTE changeColor.set_c2 TO     color1.diffuseColor
    changeColor.class:
    import vrml.*;
    import vrml.field.*;
    import vrml.node.*;
    public class changeColor extends Script {
    private SFBool get_t1, get_t2;
    private SFColor set_c1,set_c2;
    public void initialize(){
         set_c1 = (SFColor)getEventOut("set_c1");
    set_c2 = (SFColor)getEventOut("set_c2");
    public void processEvent(Event e){
    if (e.getName().equals("get_t1")==true){
    set_c1.setValue (0f,1f,0f);
    } else{
    if (e.getName().equals("get_t2")==true){
    set_c2.setValue (1f,0f,1f);
    I really need help to solve this problem!
    thks in advance
    Jan

  • GeometryUpdater

    Having trouble figuring out how to get update with GeometryUpdater to work.
    I get the following error:
    Exception: GeometryArray: no capability to update geometry data javax.media.j3d.CapabilityNotSetException: GeometryArray: no capability to update geometry data
         at javax.media.j3d.GeometryArray.updateData(GeometryArray.java:580)
         at mooseanalysis.Track.update(Track.java:61)
    Attached is a clip of my code. I have enabled many ALLOW parameters in an attempt to get this to work.
    thanks,
    mike
    public class Track extends Shape3D{
    Point3f[] coords = new Point3f[12000];
    Point3f lineCoordsLocal= new Point3f();
    int coordsLength = 0;
    int[] mapSize = new int[1];
    Map lineMap = new TreeMap();
    // LineStripArray lsa;
    LineArray lsa;
    int id;
    public Track(int elementId) {
    super();
    super.setCapability(super.ALLOW_GEOMETRY_WRITE);
    mapSize[0] = 0;
    id = elementId;
    public void update (double time, Point3f lineCoords) {
    lineCoordsLocal = lineCoords;
    if (mapSize[0] > 0) {
    if (mapSize[0] == 1) {
    coords[coordsLength] = lineCoords;
    mapSize[0] = ++coordsLength;
    System.out.println(mapSize[0]);
    lsa = new LineArray(mapSize[0],
    LineArray.COORDINATES |
    LineArray.BY_REFERENCE);
    lsa.setCapability(lsa.ALLOW_REF_DATA_WRITE |
    lsa.ALLOW_REF_DATA_READ |
    lsa.ALLOW_COUNT_WRITE |
    lsa.ALLOW_COUNT_READ |
    lsa.ALLOW_COORDINATE_WRITE |
    lsa.ALLOW_COORDINATE_READ |
    lsa.ALLOW_FORMAT_READ
    lsa.setCoordRef3f(coords );
    super.setGeometry(lsa);
    else {
    lsa.updateData(new GeometryUpdater() {
    public void updateData(Geometry geometry) {
    coords[coordsLength] = coords[coordsLength-1];
    coords[++coordsLength] = lineCoordsLocal;
    mapSize[0] = ++coordsLength;
    else {
    coords[coordsLength] = lineCoords;
    mapSize[0] = ++coordsLength;
    //This works but is very slow so I don't want to
    //do it this way, just left it here for reference
    /* coords[coordsLength++] = lineCoords;
    mapSize[0] = coordsLength;
    if (mapSize[0] > 1) {
    lsa = new LineStripArray(mapSize[0],
    GeometryArray.COORDINATES |
    GeometryArray.BY_REFERENCE, mapSize);
    lsa.setCapability(GeometryArray.ALLOW_REF_DATA_WRITE | GeometryArray.ALLOW_COUNT_WRITE);
    lsa.setCoordRef3f(coords );
    super.setGeometry(lsa);

    Solved my own problem. Should not have or'ed flags together.

  • How update area field when geometry is updated

    hi all,
    plz can someone help me to find solution or give me a way to solve my problem
    i would like to create procedure to recalculate the area of geom and insert it the value in the specified field when the geom is updated.
    I try 2 methods but no one works, the error appears if i update the geometry of parcel
    ------------------------------------------PL/SQL------------------------------------
    ----------------------------------------Oracle 9i---------------------------------------
    CREATE OR REPLACE TRIGGER "GIS"."TRG_PARCEL" BEFORE
    INSERT
    OR UPDATE ON "PARCEL" FOR EACH ROW DECLARE
    BEGIN
    IF INSERTING THEN
    select SDO_GEOM.sdo_area(geom,0.05) into :new.fld_AREA
    from parcel where id_parcel = (select max(id_parcel) from PARCEL) ;
    ELSIF UPDATING THEN
    -----------------1st case to try ------------------------------
    UPDATE PARCEL a
    SET fld_AREA = (select SDO_GEOM.sdo_area(a.geom,0.05)
    from parcel a where NOT SDO_GEOM.RELATE(a.geom,'EQUAL',val_new,0.005) = 'EQUAL' )
    WHERE NOT SDO_GEOM.RELATE(a.geom,'EQUAL',val_new,0.005) = 'EQUAL';
    -----------------2nd case to try ------------------------------
    SELECT SDO_GEOM.SDO_AREA(c.geom, m.diminfo)
    into :new.fld_AREA
    FROM PARCEL c, user_sdo_geom_metadata m
    WHERE m.table_name = 'PARCEL' AND m.column_name = 'GEOM'
    AND old.geom <> :new.geom ;
    end if;
    end;
    thnx for all
    Geomaticien TN

    Hello,
    You may try the following:
    CREATE OR REPLACE TRIGGER "GIS"."TRG_PARCEL" BEFORE
    INSERT OR UPDATE ON "PARCEL" FOR EACH ROW DECLARE
    BEGIN
    :NEW.fld_AREA := SDO_GEOM.sdo_area(:NEW.GEOM,0.05);
    END;
    Thanks,
    Ying
    Edited by: user704655 on Jul 22, 2009 11:37 AM

  • UPDATE query for GEOMETRY (spatial data)

    Hi,
    how to update values dynamically for this geometry type " MDSYS.SDO_GEOMETRY(2002,8307,MDSYS.SDO_POINT_TYPE(0,0,'null'),MDSYS.SDO_ELEM_INFO_ARRAY(1,2,1),MDSYS.SDO_ORDINATE_ARRAY(-0.44106912,0.46456902,-0.72306504,0.09942102))" please help me.

    Thanks Reetesh for your reply.
    As this is a simple task I wan't to do it via OAF query rather than writing PL/SQL procedure.
    I have two tables , say error table and interface table, (there is a foreign key relation ship between these tables, ie. i have to show the interface name present in the interface table via the foreign key in the error table). I used the following query to get the data
    SELECT xxgblErrorMasterEO1.ERROR_ID_NO,
    xxgblErrorMasterEO1.ERROR_CODE,
    xxgblErrorMasterEO1.ERROR_MESSAGE,
    xxgblErrorMasterEO1.CREATED_BY,
    xxgblErrorMasterEO1.CREATION_DATE,
    xxgblErrorMasterEO1.LAST_UPDATED_BY,
    xxgblErrorMasterEO1.LAST_UPDATE_DATE,
    xxgblIntfProgramMaster.INTERFACE_NAME,
    xxgblErrorMasterEO1.ERROR_TYPE
    FROM XXEEG.XXGBL_ERROR_MASTER xxgblErrorMasterEO1,
    XXEEG.XXGBL_INTF_PROGRAM_MASTER xxgblIntfProgramMaster
    where xxgblErrorMasterEO1.INTERFACE_ID_NO =
    xxgblIntfProgramMaster.INTERFACE_ID_NO
    I like the idea of Advanced table while going through the tutorial (example 2) and would want to show certain fields by expanding on the + mark ( just like in the explorer)
    now i want to update any of the fields that i show to the user (except the WHO fields). Say for example if the user updates the error_message and Interface_name, so how should i write the update method in the AM ?
    Pardon me if this sounds simple :(

  • Renderer queueing geometry updates until OOM

    Hi,
    we have some quite annoying problem in a project using j3d. We issue quite some geometry changes to show processdata. It seems like these changes/updates are queued when the frame containing the canvas becomes inactive, like minimizing it or changing workspaces. We already changed the code to use async (GeometryUpdater) updates and by_ref coordinates, but that didn't help , as soon as the frame is hidden the heap memory usage increases really fast (when geometry changes happen), gc() doesn't help because all the memory is still referenced.
    The heap is mainly filled up with Object[] and J3DMessage objects, which was the expected result when queueing up messages which aren't rendered.
    I am just really wondering why that happens? I already digged through the j3d source but didn't have a clue, also searching the web didn't give any useful information on this point as it seems that we are the only project which uses geometrychanges that heavily.
    I hope that someone can point me to the right direction (it's probably something small and stupid). I can also post some example code if my problem isn't clear.
    Best regards
    Georg

    Hi,
    have you ever got familiar with Java 3D's Behavior node? The use of a Timer isn't advisable for the desired 'task'.
    "Behavior nodes provide the means for animating objects, processing keyboard and mouse inputs, reacting to movement, and enabling and processing pick events. Behavior nodes contain Java code and state variables. A Behavior node's Java code can interact with Java objects, change node values within a Java 3D scene graph, change the behavior's internal state-in general, perform any computation it wishes."
    Please, run this code and inform us how it behaves.
    August
    import java.awt.Color;
    import java.awt.GraphicsConfiguration;
    import java.util.Enumeration;
    import java.util.Timer;
    import java.util.TimerTask;
    import javax.media.j3d.*;
    import javax.swing.*;
    import javax.vecmath.*;
    import com.sun.j3d.utils.universe.SimpleUniverse;
    public class GeometryUpdateIssue extends JFrame {
        private QuadArray qa = new QuadArray(16,
                        GeometryArray.COORDINATES|GeometryArray.COLOR_3);
        private double points[] = new double[48];
        public GeometryUpdateIssue() {
            setSize(500, 500);
            setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
            BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 10.0);
            GraphicsConfiguration graphConfig = SimpleUniverse.getPreferredConfiguration();
            Canvas3D canvas3D = new Canvas3D(graphConfig);
            SimpleUniverse simpleUni = new SimpleUniverse(canvas3D);
            BranchGroup sceneGraph = new BranchGroup();
            sceneGraph.setBoundsAutoCompute(true);
            qa.setCapability(GeometryArray.ALLOW_COORDINATE_WRITE);
            Background background = new Background(new Color3f(Color.WHITE));
            background.setApplicationBounds(bounds);
            sceneGraph.addChild(background);
            for (int i : new int[]{5, 8, 14, 15, 17, 18, 20, 23, 24, 26, 27, 30, 33, 35, 36, 45}) {
                    points[i] = 0.2;
            setHeight(0.5);
            Shape3D s = new Shape3D(qa);
            TransformGroup objTrans = new TransformGroup();
            objTrans.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
            Transform3D t3d = new Transform3D();
            t3d.setTranslation(new Vector3f(0.0f, -0.4f, 0.0f));
            objTrans.setTransform(t3d);
            TransformGroup objTrans2 = new TransformGroup();
            objTrans2.setCapability(TransformGroup.ALLOW_TRANSFORM_WRITE);
            Transform3D yAxis = new Transform3D();
            Alpha rotationAlpha = new Alpha(-1, 4000);
            RotationInterpolator rotator = new RotationInterpolator(
                            rotationAlpha, objTrans2, yAxis,
                            0.0f, (float) Math.PI*2.0f);
            rotator.setSchedulingBounds(bounds);
            sceneGraph.addChild(rotator);
            objTrans.addChild(objTrans2);
            objTrans2.addChild(s);
            sceneGraph.addChild(objTrans);
            GeomUpdater geomUpdater = new GeomUpdater(5);
            geomUpdater.setSchedulingBounds(bounds);
            sceneGraph.addChild(geomUpdater);
            simpleUni.addBranchGraph(sceneGraph);
            simpleUni.getViewingPlatform().setNominalViewingTransform();
            add(canvas3D);
            new Timer().scheduleAtFixedRate(new TimerTask() {
                int i = 0;
                @Override
                public void run() {
                    setHeight((++i)%10/10.0);
                    setHeight((++i)%10/10.0);
                    setHeight((++i)%10/10.0);
                    setHeight((++i)%10/10.0);
            }, 1000, 5);
        private void setHeight(double h) {
            for (int i : new int[]{7, 10, 19, 22, 31, 34, 43, 46}) {
                    points[i] = h;
            qa.setCoordinates(0, points);
        private class GeomUpdater extends Behavior {
            private int i = 0;
            private WakeupOnElapsedTime elapsedTime = null;
            GeomUpdater(long milliseconds) {
                elapsedTime = new WakeupOnElapsedTime(milliseconds);
            @Override
            public void initialize() {
                this.wakeupOn(elapsedTime);
            @Override
            public void processStimulus(Enumeration criteria) {
                setHeight((++i)%10/10.0);
                setHeight((++i)%10/10.0);
                setHeight((++i)%10/10.0);
                setHeight((++i)%10/10.0);
                this.wakeupOn(elapsedTime);
        public static void main(String[] args) {
            new GeometryUpdateIssue().setVisible(true);
    }

  • 29875; error updating table with geometry but without index

    hi,
    I've a table with next description
    AGGREGATEDUNIT_ID NOT NULL NUMBER(38)
    DATASET_ID NUMBER(38)
    GEOMETRY MDSYS.SDO_GEOMETRY
    REDEFINEDMETADATA SYS.XMLTYPE
    I dont need a spatial index in column GEOMETRY, but when I try an update operation:
    INSERT INTO AGGREGATEDUNIT (AGGREGATEDUNIT_ID, DATASET_ID) VALUES (389, 893)
    I get next error:
    INSERT INTO AGGREGATEDUNIT
    ERROR en lmnea 1:
    ORA-29875: fallo al ejecutar la rutina ODCIINDEXINSERT
    ORA-13203: fallo al leer la tabla USER_SDO_GEOM_METADATA
    ORA-13203: fallo al leer la tabla USER_SDO_GEOM_METADATA
    ORA-06512: en "MDSYS.SDO_INDEX_METHOD_9I", lmnea 183
    ORA-06512: en lmnea 1
    anybody knows?
    thanx

    Hi,
    Whether you need the index or not, someone has created a spatial index on the table.
    You can drop the index, or you can add the metadata for the table into user_sdo_geom_metadata (it was there at the time the index was created).
    Hope this helps,
    Dan

  • How do you update a geometry to null with sdoapi

    I have been able to create and insert geometries but have been unable to update an existing geometry to null using the preparedstatement setNull method. If anyone has some sample code to do this I would be gratefull.
    Joe

    Seems to me what you are doing is an overkill, why not doing it all in one hop like:
    UPDATE MyTable SET MyColum = CONVERT(int, CONVERT(binary(1),_TheHexColumn,1));
    I understand that you cannot issue an update statement so just in case, you need to map the variable value to a Execute SQL Task like that: http://www.sqlis.com/sqlis/post/The-Execute-SQL-Task.aspx
    Arthur My Blog

Maybe you are looking for

  • Can I open multiple copies of the same book?

    I am reading a more technical book. It would be helpful to have multiple pages opened at the same time (for the purpose of reference) Is it possible to open more than one copy of the same book? I know that I can open the book on my iPad or iPhone, bu

  • Import/export of files for Quickoffice using an USB cable

    Installed Quickoffice App, but cannot import/export files. Windows Explorer recognizes only photos and iTunes does not show office files on iPod and does not tolerate pdf, doc or ppt files from PC.

  • Unerased .avi won't play

    I moved some AVI video clips to the trash and then emptied the trash. Then I realized I needed the clips. I used Norton Utilities 8.0 to "Unerase" the clips back onto my hard drive succesfully. Now quicktime won't play the clips and just gives the me

  • OIM OID RENCONCILIATION

    i am able to provision users from oim to oid but reconciliation is not working command prompt is not showing any error when reconciliation tasks are running following are the details OID Lookup Reconciliation Task LookupCodeName     Lookup.OID.Organi

  • Is that a good idea to put many things in /etc/rc.local?

    Hello, all: wiki told me that I could configure many files in /etc. However, sorry if sounds stupid, I think this is not KISS. I have to learn many different syntax to configure my computer. I think put things in /etc/rc.local if possible is a good i