09-27-2017 04:09 AM
Hi,
I want to create a cylinder with the TxManipulator. The problem is that Tecnomatix.NET only offers the posibility to create cone, line, plane, polyline and sphere elements. Is there another posibility to create a temporary cylinder on the grafic viewer?
Thanks in advance!
10-02-2017 04:33 AM
Hi MW1908,
Instead of manipulator you can use a local component (it will appear in the Object Tree) and add a temp cylinder to it (it will not show in the Object Tree).
Here is an example:
TxLocalComponentCreationData creationData = new TxLocalComponentCreationData("comp1", new TxTransformation());
TxComponent comp1 = TxApplication.ActiveDocument.PhysicalRoot.CreateLocalComponent(creationData);
TxCylinderCreationData data = new TxCylinderCreationData("c1", new TxVector(), new TxVector(0, 0, 100), 30); data.SetAsDisplay(); TxSolid cs = comp1.CreateSolidCylinder(data); cs.Color = TxColor.TxColorRed; TxApplication.RefreshDisplay();
Best Regards,
DianaG
Watch Replays of Previous Topics