turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- Navigation
- Tecnomatix
- Forums
- Blogs
- Knowledge Bases
- Groups

- Siemens PLM Community
- Tecnomatix
- Tecnomatix Developer Forum
- txsolid sizing

Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-17-2017 06:58 PM

Is there somewhere specifically someone can point me towards to retrieve information about a TxSolid Object?

for example, I have a TxSolid that was initially created by TxSphereCreation Data.

Id like at a later time be able to determine the radius of the sphere, but all i know is that it is a TxSolid, and not necessarily a Sphere.

if not, then does anyone have a formula for the matrix to retrieve the same information? Im decompiling dlls to try to find out but i figured i should ask first.

3 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-21-2017 09:48 AM

Hello Mookiejones,

You can get the Approximation property of the TxSolid and analyze the points and primitives.

The API returns data object that contains a buffer of points and a buffer of primitive indices.

Use the primitive indices to get the list of polylines that compose this approximation as the approximation is not a single polyline primitive that contain all the points in the buffer.

Best Regards,

DianaG

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

08-21-2017 09:58 AM

Thats what i thought..

is there any chance you have any sample code to start with?

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content

a month ago

TxSolid solid = solids[0] as TxSolid;

TxVector point = solid.Approximation.Points[0]; // The point is measure from sphere origin not absolute, so you must transform it to current solid position

//TransformVector(ref point, solid.AbsoluteLocation);

TxVector radiusVt = point - solid.GeometricCenter.Translation;

double r = Math.Round(Math.Sqrt(radiusVt.X * radiusVt.X + radiusVt.Y * radiusVt.Y + radiusVt.Z * radiusVt.Z), 3);

Watch Replays of Previous Topics

- Tecnomatix 12
- Tecnomatix Video library on YouTube
- Plant Simulation Free Trial
- Jack Free Trial
- RobotExpert Free Trial
- Plant Simulation Student Download
- Teamcenter Manufacturing video tutorials

Follow Siemens PLM Software

© 2017 Siemens Product Lifecycle Management Software Inc