turn on suggestions

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

Showing results for

- Siemens PLM Community
- NX Customization and Programming
- NX Programming & Customization Forum
- Shifting point along CSYS axis

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
- Permalink
- Email to a Friend
- Report Inappropriate Content

09-24-2016 04:19 PM

Hello everyone!

How to obtain coordinates of a point shifted along axis of a given Datum CSYS? For example, of a point with coordinates 0,0,0 shifted along the Z-axis at a distance of 100. Obviously it would be 0,0,100 but what is the program method? Datum CSYS can be oriented at random angles so simply adding values won't work. I suspect that I should somehow use matrix transformation + csys methods, but I couldn't work it out. Can you please help?

2 REPLIES

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

09-25-2016 09:47 PM

A wrapper method exist for csys to csys.

Public Sub CsysToCsys (

from_origin As Double(),

from_x_axis As Double(),

from_y_axis As Double(),

to_origin As Double(),

to_x_axis As Double(),

to_y_axis As Double(),

mtx As Double())

Frank Swinkels

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

10-18-2016 03:23 AM

Hello,

I am not sure. To obtain the coordinates of DatumCsys, you can use features.Location property if the featuretype is DatumCsys. To edit/move the DatumCsys coordinates, use CreateXform method.

Thanks.

Follow Siemens PLM Software

© 2018 Siemens Product Lifecycle Management Software Inc