- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Import named coordinate systems from ug file
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-10-2011 01:47 AM - last edited on 10-10-2011 07:41 AM
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
Re: Import named coordinate systems from ug file
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
10-12-2011 06:25 AM
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

