首页 > 其他分享 >NX二次开发 创建圆柱 UF_MODL_create_cylinder

NX二次开发 创建圆柱 UF_MODL_create_cylinder

时间:2023-11-28 10:31:55浏览次数:30  
标签:圆柱 cylinder int 0.0 create char 二次开发 UF


简介:

        NX二次开发 创建圆柱 UF_MODL_create_cylinder。

代码:

#include "me.hpp"

extern DllExport void ufusr(char* param, int* returnCode, int rlen)
{
	UF_initialize();

	UF_FEATURE_SIGN sign = UF_NULLSIGN; //布尔 无
	double douStartPoint[3] = { 0.0 };
	char charH[256] = "20"; //圆柱高度
	char charD[256] = "10"; //圆柱直径
	double douDir[3] = { 0.0,0.0,1.0 };
	tag_t  tagCylinderFeat = NULL_TAG;
	UF_MODL_create_cylinder(sign, NULL_TAG, douStartPoint, charH, 
charD, douDir, &tagCylinderFeat);

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

效果:

NX二次开发 创建圆柱 UF_MODL_create_cylinder_c++

me.hpp 内容

标签:圆柱,cylinder,int,0.0,create,char,二次开发,UF
From: https://blog.51cto.com/wangpaifeixingy/8596274

相关文章

  • NX二次开发 转置矩阵 UF_MTX3_transpose
    简介:    NX二次开发转置矩阵UF_MTX3_transpose。代码:#include"me.hpp"externDllExportvoidufusr(char*param,int*returnCode,intrlen){UF_initialize();doubledMtx[9]={1.000000000,0.000000000,0.000000000,0.000000000......
  • NX二次开发UF_CAM_ask_clear_plane_tag 函数介绍
    文章作者:里海UF_CAM_ask_clear_plane_tagDefinedin:uf_cam_planes.hintUF_CAM_ask_clear_plane_tag(tag_tobject_tag,tag_t*target_tag)overview概述Querythetagofaclearanceplane查询清洁飞机的标签UFUN例子parameters参数tag_tobject_tagInputtheparentobjec......
  • NX二次开发UF_CAM_ask_clear_plane_usage 函数介绍
    文章作者:里海UF_CAM_ask_clear_plane_usageDefinedin:uf_cam_planes.hintUF_CAM_ask_clear_plane_usage(tag_tobject_tag,UF_PARAM_clrplane_usage_t*usage)overview概述Querytheusageofaclearanceplane质疑净空飞机的使用UFUN例子parameters参数tag_tobject_tag......
  • NX二次开发UF_CAM_ask_clear_plane_status 函数介绍
    文章作者:里海UF_CAM_ask_clear_plane_statusDefinedin:uf_cam_planes.hintUF_CAM_ask_clear_plane_status(tag_tobject_tag,UF_PARAM_clrplane_status_t*status)overview概述Querythestatusofaclearanceplane查询一架净空飞机的状态UFUN例子parameters参数tag_to......
  • NX二次开发UF_CAM_ask_clear_plane_data 函数介绍
    文章作者:里海UF_CAM_ask_clear_plane_dataDefinedin:uf_cam_planes.hintUF_CAM_ask_clear_plane_data(tag_tobject_tag,doubleorigin[3],doublenormal[3])overview概述Querytheoriginandnormalofaclearanceplane质疑间隙平面的起点和法线UFUN例子parame......
  • NX二次开发UF_CAM_ask_blank_matl_db_object 函数介绍
    文章作者:里海UF_CAM_ask_blank_matl_db_objectDefinedin:uf_cam.hintUF_CAM_ask_blank_matl_db_object(UF_CAM_db_object_t*db_obj)overview概述ThisfunctionprovidesthedatabaseobjectwhichiscurrentlyusedtoaccesstheBlankMateriallibrary.此函数提供当......
  • NX二次开发UF_CAM_ask_cam_preferences 函数介绍
    文章作者:里海UF_CAM_ask_cam_preferencesDefinedin:uf_cam.hintUF_CAM_ask_cam_preferences(UF_CAM_preferences_p_tprefs)overview概述ThisfunctionprovidesthecurrentsettingsoftheCAMpreferences.此函数提供CAM首选项的当前设置。UFUN例子parameters参数UF_......
  • NX二次开发UF_CAM_ask_auto_blank 函数介绍
    文章作者:里海UF_CAM_ask_auto_blankDefinedin:uf_cam.hintUF_CAM_ask_auto_blank(tag_tobject_tag,UF_CAM_blank_geom_type_t*geom_type,doubleoffset[6])overview概述Querythetypeanddataofanautomaticblank.查询自动空白的类型和数据。UFUN例子parameter......
  • NX二次开发UF_CAM_ask_config_file 函数介绍
    文章作者:里海UF_CAM_ask_config_fileDefinedin:uf_cam.hintUF_CAM_ask_config_file(constchar**cam_config_filename)overview概述ThisfunctionprovidesthenameoftheCAMconfigurationfileusedinthecurrentCAMSession.此函数提供当前CAM会话中使用的CA......
  • C++ 使用Windows的API CreateDirectory 创建多层级文件夹
    简介使用Windows的API创建多层级文件夹效果代码#include<windows.h>#include<direct.h>#include<iostream>#include<string>#include<sstream>#include<vector>//创建多层级文件夹boolCreateDir(conststd::string&path){ std::......