Cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted

TxManipulator visibility

Pioneer
Pioneer

I have tried to create Manipulator Gismo using following code. But it was not visible. Where is the problem?

 TxManipulatorCreationData creationData = new TxManipulatorCreationData("Name", baselocation.AbsoluteLocation );
                TxManipulator manipulator = TxApplication.ActiveDocument.PhysicalRoot.CreateManipulator(creationData);

 


Capture.PNGManipulator

2 REPLIES 2

Re: TxManipulator visibility

Pioneer
Pioneer

Hi @Luisy ,

 

U need to color Manipulator. Try with this

TxManipulatorCreationData creationData = new TxManipulatorCreationData("name", new TxTransformation());
                TxManipulator manipulator = TxApplication.ActiveDocument.PhysicalRoot.CreateManipulator(creationData);
               TxManipulatorLineElementData lineDataZ = new TxManipulatorLineElementData(new TxTransformation(), startpoint, endpoint);
 lineDataZ.Color = TxColor.TxColorLightBlue;
manipulator.AddElement(lineDataZ);

Re: TxManipulator visibility

Siemens Phenom Siemens Phenom
Siemens Phenom

Hi,

 

You need to call TxApplication.RefreshDisplay(); to update the graphics. 

You may also need to zoom if your manipulator is too small. If this is the problem you can use the Unzoomable property of the TxManipulatorLineElementData to make it keep the same size when zooming in/out.

 

Best Regards,

DianaG