Home
Reply
Visitor
HansW
Posts: 1

Import named coordinate systems from ug file

[ Edited ]

Hi

Does somebody know, how to get the name of a coordinate system, that comes within a UG (NX7.5) file? I'm working with ACIS/InterOp R21

Until now, I'm only able to extract the coordinate systems by position (see code below)

 

I have the following code:

 

for (pAcisEntities->init(); ent = pAcisEntities->next();)
    {
      WCS *wcs = dynamic_cast<WCS *>( ent );
      if( wcs )
      {
        csCount++;
        if( csId != -1 )
        {
          if( csId == csCount )
          {
            trafoCs = wcs->to_wcs();
            bTrafoDefined = true;
          }
        }

      }

 

...

 

    if( bTrafoDefined )
    {
      for (pAcisEntities->init(); ent = pAcisEntities->next();)
      {
        if (is_BODY(ent) )
        {

          {
            api_transform_entity( ent, trafoCs, NULL );
            if (((BODY *)ent)->transform())
            {
              check_outcome(api_change_body_trans((BODY *)ent, NULL));
            }
            check_outcome(api_facet_entity(ent, &foptsExp));
          }

        }

      }

thank you for any recommandations

Spatial Employee
AmolK
Posts: 12

Re: Import named coordinate systems from ug file

Hello Hans,

We are sorry for the inconvenience, but unfortunately we are not translating WCS name from a UG file.

Nevertheless, we have already logged an enhancement in this context and wish to deliver the same soon.

Thanks,

With Best Regards,

DS-SPATIAL Client Care