青华模具培训学校

 找回密码
 注册

QQ登录

只需一步,快速开始

青华模具培训学院
查看: 1757|回复: 3

[疑难] 工程图中修改箭头特征??

[复制链接]
发表于 2009-11-19 11:43 | 显示全部楼层 |阅读模式
如题:我想修改工程图中注释的箭头特征,选用下列函数,程序运行成功但是在ug中打开时出错,不知道是哪出错了,各位请帮忙看看
6 L8 ]; d" x" \- Z 7 K2 \* l- S# L" w( r! ~
UF_DRF_line_arrow_preferences_t * line_arrow_preferences;7 v! ]+ A. n; a9 F5 _. w$ }1 V

/ \( `$ t+ I! B, g5 T( v7 w(*line_arrow_preferences).first_arrow_type = UF_DRF_NO_ARROW;
2 }% r! {( I* u2 C$ j(*line_arrow_preferences).second_arrow_type = UF_DRF_NO_ARROW;
/ A0 F' }& H. D+ e% t- X//(*line_arrow_preferences).stub_length = 3;( l8 z: m" }2 U! B. Z6 M, j, z9 f$ J2 X
//(*line_arrow_preferences).leader_location = 2;
0 Z4 ?. s" ]& E9 m+ n3 t# g3 b//(*line_arrow_preferences).leader_location = UF_DRF_TEXT_MIDDLE;5 R( x9 ~0 H' D+ i( M9 F
) q! _7 y4 J2 B- Y4 _
//设置箭头特征
/ x5 f) c6 h5 KUF_DRF_set_line_arrow_preferences(line_arrow_preferences);
+ F1 a4 z7 n+ M2 ?
发表于 2009-11-27 14:44 | 显示全部楼层
我点都看不懂哦
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-12-3 14:10 | 显示全部楼层
哎,总算有人回答一下了
回复 支持 反对

使用道具 举报

发表于 2009-12-4 09:49 | 显示全部楼层
试一下:+ v! ^4 v+ H) i9 X
UF_DRF_line_arrow_preferences_t line_pref;
8 |0 Y/ Y3 M! g4 w- W0 rline_pref.first_arrow_type = UF_DRF_NO_ARROW;
% V4 E, ^* z3 C' A: S/ k.....
; R0 d( ^5 Q2 \5 cUF_DRF_set_line_arrow_preference(&line_pref);* j3 N! [6 }. E2 U) h9 Y' X% n

; {3 P' W, t4 K$ ~8 S+ O我猜你的line_pref在内存中没有初始化。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|关于我们|sitemap|小黑屋|Archiver|手机版|UG网-UG技术论坛-青华数控模具培训学校 ( 粤ICP备15108561号 )

GMT+8, 2025-6-28 12:23 , Processed in 0.100952 second(s), 26 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表