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

rectangle body in Graphics Viewer rectangle

Pioneer
Pioneer

Hello, 

I want to have rectangle body always be in Graphics viewer. I have created body by following code. I gave its top and bottom radius. It creates a cone, but at specific location. So, I need to zoom in or zoom out to see that solid. But I want to have that cone always on the graphics viewer rectangle and also If i zoom in or zoom out in graphics viewer. It should manage size itself in such a way that it always be in graphics viewer. I saw TxGraphicsViever class and its rRectangle Property. But, How can I use it in my case? Thanx in Advance

 

 TxLocalComponentCreationData ConecreationData = new TxLocalComponentCreationData("Cone", new TxTransformation());
            TxComponent Cone = TxApplication.ActiveDocument.PhysicalRoot.CreateLocalComponent(ConecreationData);
            TxConeCreationData data = new TxConeCreationData("C1", TxVector startpoint,  TxVector endpointY, 1, 5);
            data.SetAsDisplay();
            TxSolid SCone = Cone.CreateSolidCone(data);

 

1 REPLY 1

Re: rectangle body in Graphics Viewer rectangle

Siemens Legend Siemens Legend
Siemens Legend

Hi,

Component has a size, and upon zoom it looks smaller\bigger. In order to achieve what you want, you can create a manipulator, with Unzoomable property set to true.