creo打不开prt后缀为asm是否可以保存为prt文件

Proe5.0设计的过山车3D模型,源文件分享,绘制的形象生动,逼真,整体结构设计的非常不错,可以下载学习设计思路的运用,很不错的模型,欢迎下载
过山车构造中,包含了爬升、滑落、倒转,其轨道的设计钻石背纹响尾蛇过山车钻石背纹响尾蛇过山车不一定是一个完整的回圈,也可以设计为车体在轨道上的运行方式为来回移动
(点击验证码可刷新)
文件大小:46054.28 KB(0表示"未知大小")
分享模式:白金会员.等级及以上
会员等级:|
下载次数:
点击次数:
该设计师相关作品
&nbsp &nbsp
电话:155-PROE二次开发(protoolkit):把PRT或者ASM模型转换成STEP,PS,IGES,CATIA等等格式 - DoJustForFun - 博客园
PROE强大的参数化建模能力在各种领域应用广泛。本文讨论三个函数:ProRasterFileWrite,ProIntf3DFileWrite和ProPDFExport
这三个函数的共同特点是导出模型,具体有所不同。ProRasterFileWrite导出图片;ProIntf3DFileWrite则侧重与各种三维图形格式的转换;ProPDFExport则把模型导出为PDF格式文件。
(1)ProRasterFileWrite
ProRasterFileWrite函数定义如下:
ProRasterFileWrite
int window_id
导出窗口ID,当前窗口用ProWindowCurrentGet获得
ProRasterDepth depth
像素类型:PRORASTERDEPTH_8;PRORASTERDEPTH_24&
double width
图片宽度多少 inches
double height
图片宽度多少 inches
ProDotsPerInch dots_per_inch
每个英寸多少像素PRORASTERDPI_100 = 100, PRORASTERDPI_200 = 200, PRORASTERDPI_300 = 300, PRORASTERDPI_400 = 400, PRORASTERDPI_500 = 500, PRORASTERDPI_600 = 600
ProRasterType type
图形格式:PRORASTERTYPE_BMP, PRORASTERTYPE_TIFF, PRORASTERTYPE_EPS, PRORASTERTYPE_JPEG
ProPath output_file
文件名称,包含扩展名
这个函数用法很简单,就是把当前窗口打印出来,可以生成几种不同的图形格式:PRORASTERTYPE_BMP, PRORASTERTYPE_TIFF, PRORASTERTYPE_EPS, PRORASTERTYPE_JPEG。当然也可以用-1来代表当前窗口ID。
ProWindowCurrentGet(&id);
ProRasterFileWrite(id,PRORASTERDEPTH_24,100,100,PRORASTERDPI_100,
PRORASTERTYPE_JPEG,L"out.jpeg");
ProRasterFileWrite(-1,PRORASTERDEPTH_24,100,100,PRORASTERDPI_100,
PRORASTERTYPE_JPEG,L"out2.jpeg");
当然也可以根据模型handle来获取窗口:ProMdlWindowGet ( ProMdl mdl,& int* window_id );
(2)ProIntf3DFileWrite
ProIntf3DFileWrite可以将模型导出成如下格式:
Export FormatPro/TOOLKIT Functions
STEP file (Standard for the Exchange of Product Model Data)
ProIntf3DFileWrite()
PRO_INTF_EXPORT_STEP
SET file (Standard for Exchange and Transfer)
ProIntf3DFileWrite()
PRO_INTF_EXPORT_SET
ProIntf3DFileWrite()
PRO_INTF_EXPORT_VDA
IGES (3D) file
ProIntf3DFileWrite()
PRO_INTF_EXPORT_IGES
CATIA file
ProIntf3DFileWrite()
PRO_INTF_EXPORT_CATIA
CATIA (.model) file
ProIntf3DFileWrite()
PRO_INTF_EXPORT_CATIA_MODEL
SAT file (ACIS format for Pro/ENGINEER)
ProIntf3DFileWrite()
PRO_INTF_EXPORT_SAT
NEUTRAL file (ASCII text)
ProIntf3DFileWrite()
PRO_INTF_EXPORT_NEUTRAL
CADDS file
ProIntf3DFileWrite()
PRO_INTF_EXPORT_CADDS
CATIA (.session) file
ProIntf3DFileWrite()
PRO_INTF_EXPORT_CATIA_SESSION
PDGS files
ProIntf3DFileWrite()
PRO_INTF_EXPORT_PDGS
Parasolid file
ProIntf3DFileWrite()
PRO_INTF_EXPORT_PARASOLID
ProIntf3DFileWrite()
PRO_INTF_EXPORT_UG
函数定义如下:
ProIntf3DFileWrite
ProSolid solid
The solid model used for export.
ProIntf3DExportType file_type
The type of output file to produce.
ProPath output_file
The output file name to produce. Optionally, this includes the path for the file location. The filename should not include the file extension, this will be added automatically by Pro/ENGINEER.
ProOutputAssemblyConfiguration configuration
Specifies the number and type of output files to produce. Users should check that this option is valid for the type of output specified in file_type by using the function ProOutputAssemblyConfigurationIsSupported(). If file_type == PRO_INTF_EXPORT_CADDS or PRO_INTF_EXPORT_NEUTRAL, this value is ignored by Pro/ENGINEER.
ProSelection reference_csys
The reference coordinate system. If NULL, the system uses the default coordinate system. If file_type == PRO_INTF_EXPORT_CADDS or PRO_INTF_EXPORT_NEUTRAL, this should be NULL.
ProOutputBrepRepresentation brep_representation
The options that specify the type of representation to create. Users should check that these options are valid for the type of output specified in file_type by using the function ProOutputBrepRepresentationIsSupported(). If file_type == PRO_INTF_EXPORT_CADDS or PRO_INTF_EXPORT_NEUTRAL, this should be NULL.
ProOutputInclusion inclusion
The options for entity inclusion or exclusion in the output file(s). If file_type == PRO_INTF_EXPORT_CADDS or PRO_INTF_EXPORT_NEUTRAL, this should be NULL.
ProOutputLayerOptions layer_options
The options that specify how layers are to be output. If file_type == PRO_INTF_EXPORT_CADDS or PRO_INTF_EXPORT_NEUTRAL, this should be NULL.
几点注意事项:
参数ProIntf3DExportType定义导出类型,有下面几种:
typedef enum pro_intf3d_export_type {
PRO_INTF_EXPORT_STEP = 1,
PRO_INTF_EXPORT_SET,
PRO_INTF_EXPORT_VDA,
PRO_INTF_EXPORT_IGES,
PRO_INTF_EXPORT_CATIA,
PRO_INTF_EXPORT_CATIA_MODEL,
PRO_INTF_EXPORT_SAT,
PRO_INTF_EXPORT_NEUTRAL,
PRO_INTF_EXPORT_CADDS,
PRO_INTF_EXPORT_CATIA_SESSION,
/* reserved for future use. */
PRO_INTF_EXPORT_PDGS,
/* reserved for future use. */
PRO_INTF_EXPORT_PARASOLID,
PRO_INTF_EXPORT_UG,
PRO_INTF_EXPORT_RESERVED,
PRO_INTF_EXPORT_CATIA_PART,
PRO_INTF_EXPORT_CATIA_PRODUCT
} ProIntf3DExportType;请注意这个参数:ProOutputAssemblyConfiguration configuration它定义了装配导出后的性质,可以将整个装配体定义为一个PART,或者将装配所包含的所有部件逐一导出,详细解释:
PRO_OUTPUT_ASSEMBLY_FLAT_FILE:表示将ASM当作PART处理,导出后整个ASM模型合并成一个PART。
PRO_OUTPUT_ASSEMBLY_SINGLE_FILE:将ASM文件导出,引用其其现有组成部件。
PRO_OUTPUT_ASSEMBLY_MULTI_FILES:将ASM文件导出,将其现有组成部件也一起逐个导出。
PRO_OUTPUT_ASSEMBLY_PARTS可以用ProOutputAssemblyConfigurationIsSupported判断ProOutputAssemblyConfiguration是否对当前模型适应。ProOutputBrepRepresentation brep_representation:如何表示导出的几何体,当作线,面或者体先用ProOutputBrepRepresentationAlloc制造一个ProOutputBrepRepresentation然后调用函数进行设置:
ProOutputBrepRepresentationFlagsSet(rep,&& &&& &PRO_B_FALSE,//ProBoolean as_wireframe,&& &&& &PRO_B_FALSE,//ProBoolean as_surfaces,&& &&& &PRO_B_TRUE,//ProBoolean as_solid,&& &&& &PRO_B_FALSE//ProBoolean as_quilts&& &&& &);结束后释放内存:ProOutputBrepRepresentationFreeProOutputInclusion inclusion:规定一些辅助线,坐标系是否导出用这个函数进行设置:ProOutputInclusionFlagsSet(lnc,
PRO_B_TRUE,//ProBoolean include_datums,
PRO_B_FALSE,//ProBoolean include_blanked,
PRO_B_FALSE//ProBoolean include_facetted
);最好放掉内存:ProOutputInclusionFree一个简单的例子如下:将当前的PRT或者ASM导出为.ps(PARASOLID)格式。
ProOutputBrepR
ProOutputBrepRepresentationAlloc(&rep);
ProOutputBrepRepresentationFlagsSet(rep,
PRO_B_FALSE,//ProBoolean as_wireframe,
PRO_B_FALSE,//ProBoolean as_surfaces,
PRO_B_TRUE,//ProBoolean as_solid,
PRO_B_FALSE//ProBoolean as_quilts
//检查输出选项是否支持
ProError er=ProOutputBrepRepresentationIsSupported(PRO_INTF_EXPORT_PARASOLID,
if (er!=PRO_TK_NO_ERROR||!pb)
AfxMessageBox("Not Support!");
ProOutputI
ProOutputInclusionAlloc(&lnc);
ProOutputInclusionFlagsSet(lnc,
PRO_B_TRUE,//ProBoolean include_datums,
PRO_B_FALSE,//ProBoolean include_blanked,
PRO_B_FALSE//ProBoolean include_facetted
ProOutputLayerO
ProOutputLayerOptionsAlloc(&lop);
ProOutputLayerOptionsAutoidSet(lop,
PRO_B_FALSE//auto_ids
//当前PRT 或者 ASM
ProMdlCurrentGet(&mdl);
AfxMessageBox("no prt or asm avaiable");
ProIntf3DFileWrite((ProSolid)mdl,
PRO_INTF_EXPORT_PARASOLID,//导出ps格式
L"new_ps_name",//不要带后缀名,会自动加上去
PRO_OUTPUT_ASSEMBLY_FLAT_FILE,//将ASM当作一个PART处理导出
ProOutputBrepRepresentationFree(rep);
ProOutputInclusionFree(lnc);
ProOutputLayerOptionsFree(lop);
模型文件:
导出PS格式后:(3)导出PDF文件需要包含头文件#include &ProPDF.h&主要函数有这么几个:
ProPDFoptionsIntpropertySet():设置int型参数值
ProPDFoptionsAlloc()
:产生一个ProPDFOptions对象,后面的属性设置和导出都需要ProPDFOptions作为输入
ProPDFoptionsBoolpropertySet():设置bool值
ProPDFoptionsStringpropertySet():设置string值
ProPDFExport():导出PDF文件
ProPDFoptionsFree():释放ProPDFOptions对象
主要的属性对象如下:
typedef enum
PRO_PDFOPT_FONT_STROKE,
/* Enum, ProPDFFontStrokeMode,
default PRO_PDF_USE_TRUETYPE_FONTS */
PRO_PDFOPT_COLOR_DEPTH,
/* Enum, ProPDFColorDepth,
default PRO_PDF_CD_COLOR */
PRO_PDFOPT_HIDDENLINE_MODE,
/* Enum, ProPDFHiddenLineMode,
default PRO_PDF_HLM_DASHED */
PRO_PDFOPT_SEARCHABLE_TEXT,
/* Boolean, default TRUE */
PRO_PDFOPT_RASTER_DPI,
/* Int, Range 100 - 600, default 300 */
PRO_PDFOPT_LAUNCH_VIEWER,
/* Boolean, default TRUE */
PRO_PDFOPT_LAYER_MODE,
/* Enum, ProPDFLayerMode,
default PRO_PDF_LAYERS_ALL */
PRO_PDFOPT_PARAM_MODE,
/* Enum, ProPDFParamMode,
default PRO_PDF_PARAMS_ALL */
PRO_PDFOPT_HYPERLINKS,
/* Boolean, default TRUE */
PRO_PDFOPT_BOOKMARK_ZONES,
/* Boolean, default TRUE */
PRO_PDFOPT_BOOKMARK_VIEWS,
/* Boolean, default TRUE */
PRO_PDFOPT_BOOKMARK_SHEETS,
/* Boolean, default TRUE */
PRO_PDFOPT_BOOKMARK_FLAG_NOTES,
/* Boolean, default TRUE */
PRO_PDFOPT_TITLE,
/* String, default "" */
PRO_PDFOPT_AUTHOR,
/* String, default &current user name& */
PRO_PDFOPT_SUBJECT,
/* String, default "" */
PRO_PDFOPT_KEYWORDS,
/* String, default "" */
PRO_PDFOPT_PASSWORD_TO_OPEN,
/* String, default NULL, which means that
the document may be opened by anyone */
PRO_PDFOPT_MASTER_PASSWORD,
/* String, default NULL,
which means that anyone may perform
any change regardless
of any of the modification flags
PRO_PDFOPT_ALLOW_* listed below */
PRO_PDFOPT_RESTRICT_OPERATIONS,
/* Boolean, default FALSE
set to TRUE to use PRO_PDFOPT_ALLOW_*
to use ProPDFRestrictOperationsMode */
PRO_PDFOPT_ALLOW_PRINTING,
/* Boolean, default TRUE */
PRO_PDFOPT_ALLOW_PRINTING_MODE,
/* Enum, ProPDFPrintingMode,
default PRO_PDF_PRINTING_HIGH_RES */
PRO_PDFOPT_ALLOW_MODE,
/* Enum, ProPDFRestrictOperationsMode,
default PRO_PDF_RESTRICT_NONE */
PRO_PDFOPT_ALLOW_COPYING,
/* Boolean, default TRUE */
PRO_PDFOPT_ALLOW_ACCESSIBILITY
/* Boolean, default TRUE
allows visually impaired screen reader
devices to extract data independent of
RestrictOperationsMode */
} ProPDFOptionT
示例代码如下:ProPDFO
ProPDFoptionsAlloc(&ops);
ProPDFoptionsBoolpropertySet() and
ProPDFoptionsStringpropertySet()
//to set property
//...............
ProMdlCurrentGet(&mdl);
AfxMessageBox("no prt or asm avaiable");
ProPDFExport(mdl,L"obj.pdf",
ProPDFoptionsFree(ops); 上传我的文档
 下载
 收藏
该文档贡献者很忙,什么也没留下。
 下载此文档
正在努力加载中...
creo装配体批量重命名
下载积分:840
内容提示:creo装配体批量重命名
文档格式:PDF|
浏览次数:388|
上传日期: 13:36:00|
文档星级:
该用户还上传了这些文档
creo装配体批量重命名
官方公共微信扫扫二维码,随身浏览文档
手机或平板扫扫即可继续访问
Creo_3.0_配置文件使用说明
举报该文档为侵权文档。
举报该文档含有违规或不良信息。
反馈该文档无法正常浏览。
举报该文档为重复文档。
推荐理由:
将文档分享至:
分享完整地址
文档地址:
粘贴到BBS或博客
flash地址:
支持嵌入FLASH地址的网站使用
html代码:
&embed src='/DocinViewer-4.swf' width='100%' height='600' type=application/x-shockwave-flash ALLOWFULLSCREEN='true' ALLOWSCRIPTACCESS='always'&&/embed&
450px*300px480px*400px650px*490px
支持嵌入HTML代码的网站使用
您的内容已经提交成功
您所提交的内容需要审核后才能发布,请您等待!
3秒自动关闭窗口热门搜索:
           
当前位置: >
同轴式二级斜齿圆柱齿轮减速器3D模型_ProE/Creo设计_igs/Asm/Prt/xps格式文件下载
详细介绍:
减速器在原动机和工作机或执行机构之间起匹配转速和传递转矩的作用,在现代机械中应用极为广泛。本减速器为同轴式二级斜齿圆柱齿轮减速器,做课程设计时用画的。两对齿轮的主动齿轮齿数33,从动齿轮113,减速器传动比为11.7。
包括最终外形图、爆炸图等
相关专题:,,,,,,,,,,,
本站软件若需解压密码,则密码一律为:www.zhuanzhi.net& 。
如果这个软件总是不能下载的请点击报错,谢谢合作!
本站提供的部分商业软件或教程是供学习研究之用,切勿商用,支持购买正版。
若本站侵犯了您的权益,请联系并提供证据,我们会立即处理。
Copyright & 2013 www.zhuanzhi.net 专职网 版权所有&&皖ICP备号 &&}

我要回帖

更多关于 creo打不开prt 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信