UG\NX secondary development creates a copy of the object

Author of the article: Caspian
Source Website: https://blog.csdn.net/WangPaiFeiXingYuan


Introduction:

Create a copy of the object

Effect:

      

 

code:

#include "me.hpp" 

static tag_t CreateDuplicateCopyOfObject(tag_t object)
{
	int ii;
	int n_ref_sets;
	int one = 1;
	int resp;
	int two = 2;
	int zero = 0;
	
	tag_t group;
	tag_t new_object;
	tag_t* ref_sets;
	
	double mx[12];
	double zero_delta[3] = { 0, 0, 0 };

	uf5943(zero_delta, mx);
	uf5947(mx, &object, &one, &two, &zero, &two, &new_object, NULL, &resp);
	if (resp != 0)
		re

Guess you like

Origin blog.csdn.net/WangPaiFeiXingYuan/article/details/131376029