Cancel
Showing results for 
Search instead for 
Did you mean: 

Manipulator Pick up

Pioneer
Pioneer

I created a manipulator by following code. I want to Pick one of manipulator. Which control I should use to pick it up?

 TxManipulatorCreationData creationData = new TxManipulatorCreationData("name", new TxTransformation());
                TxManipulator manipulator = TxApplication.ActiveDocument.PhysicalRoot.CreateManipulator(creationData);
                TxManipulatorConeElementData coneElementDataZ = new TxManipulatorConeElementData(new TxTransformation(), endpoint , startpoint + new TxVector(0, 0, 5), 5,5);
                TxManipulatorConeElementData coneElementDataY = new TxManipulatorConeElementData(new TxTransformation(), endpointY , startpoint + new TxVector(0, 5, 0), 5,3);                
                TxManipulatorConeElementData coneElementDataX = new TxManipulatorConeElementData(new TxTransformation(), endpointX, startpoint + new TxVector(5, 0, 0), 5,10);
                coneElementDataZ.Pickable = true;
                coneElementDataZ.Color = TxColor.TxColorOrange;               
                coneElementDataY.Pickable = true;
                coneElementDataY.Color = TxColor.TxColorOrange;
                coneElementDataX.Pickable = true;
                coneElementDataX.Color = TxColor.TxColorOrange;
                manipulator.AddElement(coneElementDataZ);
                manipulator.AddElement(coneElementDataY);
                manipulator.AddElement(coneElementDataX);
                manipulator.Display();
                manipulator.Translate(startpoint + new TxVector(0.005, 0.005, 0.005));  
3 REPLIES 3

Re: Manipulator Pick up

Siemens Legend Siemens Legend
Siemens Legend

hi,

You can use the TXEditBoxControl with the

IgnorPickOfTransientObjects=false;

 

Highlighted

Re: Manipulator Pick up

Pioneer
Pioneer

Hello,

 

I tried with IgnorPickOfTransientObjects=false; but It didnot work.  In Controlbox whoch property I need to set for Picklevel and validator type? 

Re: Manipulator Pick up

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi Luisy,

 

Try setting ValidatorType to AnyLocatableObject and PickLevel to Component.

 

Best Regards,

DianaG