NX Second Development - acquiring identification origin coordinates and the matrix coordinates UF_CSYS WCS operation coordinate system

Function: UF_CSYS_ask_csys_info ()

Function Description: identifier obtaining work coordinate system of the object.

usage:

#include <uf.h> 
#include <uf_csys.h>
 extern dllexport void ufusr ( char * param, int * the returnCode, int RLEN) 
{ 
    UF_initialize (); 

    // Get WCS identification 
    tag_t tagWCS = NULL_TAG; 
    UF_CSYS_ask_wcs ( & tagWCS) ; 

    // Get WCS coordinates of the origin and identity matrix 
    tag_t tagCsys;    // origin coordinates 
    tag_t tagMatrix; // matrix Mark 
    Double couCsysOrigin [ . 3 ]; 
    UF_CSYS_ask_csys_info (tagWCS, & tagMatrix, couCsysOrigin);
    

    UF_terminate();
}

extern int ufusr_ask_unload(void)
{
    return (UF_UNLOAD_IMMEDIATELY);
}

With WCS Matrix Mark we can: get the WCS X, Y, Z axis


related articles:

"NX Second Development - Get WCS logo" 

"NX Second Development - Get matrices X, Y, Z vector" yet released

"NX secondary development - move" yet released


 navigation:

Open C

UF_CSYS operation coordinate system

 

Guess you like

Origin www.cnblogs.com/KMould/p/11826319.html