NX二次开发 UFUN实体导出STL文件 UF_STD_put_solid_in_stl_file
//NX8.0+VS2010
#include <uf_obj.h>
#include <uf_modl.h>
#include <uf_part.h>
#include <uf_std.h>
#include <NXOpen/Annotations.hxx>
extern DllExport void ufsta(char* param, int* returnCode, int rlen)
{
if (UF_initialize())
return;
int type = 0, subtype = 0, body_type = 0;
tag_t object_tag = NULL_TAG;
std::vector<tag_t> tSolidVectors;
UF_OBJ_cycle_objs_in_part(UF_PART_ask_display_part(), UF_solid_type, &object_tag);
while (object_tag != NULL_TAG)
{
UF_OBJ_ask_type_and_subtype(object_tag, &type, &subtype);
if (subtype == UF_solid_body_subtype)
{
UF_MODL_ask_body_type(ObjectTag, &am