几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量  


返回   几何尺寸与公差论坛------致力于产品几何量公差标准GD&T (GDT:ASME)|New GPS(ISO)研究/CAD设计/CAM加工/CMM测量 » 仿射空间:CAX软件开发(三)二次开发与程序设计 » CAD二次开发 » AutoCAD二次开发 » DirectDWG
用户名
密码
注册 帮助 会员 日历 银行 搜索 今日新帖 标记论坛为已读


回复
 
主题工具 搜索本主题 显示模式
旧 2009-05-04, 05:41 PM   #1
yang686526
高级会员
 
注册日期: 06-11
帖子: 14579
精华: 1
现金: 224494 标准币
资产: 234494 标准币
yang686526 向着好的方向发展
默认 【转帖】change dynamic propierties

change dynamic propierties
change dynamic propierties
when change a property of the following form:
code:
oddbdynblockreference dynamicreference( br );

if ( dynamicreference.isdynamicblock() )
{
oddbdynblockreferencepropertyarray dynamicproperties;
dynamicreference.getblockproperties( dynamicproperties );
for (int i = 0; i < dynamicproperties.length(); i++)
{
if ( dynamicproperties[i]->propertyname() == acadparamname )
{
odresbuf::valuetype vt = dynamicproperties[i]->propertytype();
odresbufptr valresbuf = odresbuf::newrb( vt, value );
if (!dynamicproperties[i]->setvalue( valresbuf ))
{
std::cout << "parametro no actualizado" << std::endl;
}
}
}
}
the values is updated to me but the result of the drawing is not correct.
upload to the original file and the modified file...
very thanks...
attached files
'stretch' action in dynamic block calls movestretchpoints() of affected entities.
movestretchpoints() is not implemented by default (it calls transformby).
implementation of movestretchpoints/movegrippoints is left to the user, see \examples\grippoints\*.cpp
vladimir
the difference between .dwg created by my, and the created one by odamfcappdll is this:
the acdbxrecord can have some importance??
code:
<acdbblockreference>. . . . . . . [125]
name. . . . . . . . . . . . . . *u29
position. . . . . . . . . . . . [0.0 0.0 0.0]
rotation. . . . . . . . . . . . 0.0d
scale factors . . . . . . . . . [1.0 1.0 1.0]
normal. . . . . . . . . . . . . [0.0 0.0 1.0]
min extents . . . . . . . . . . [-0.0 0.0 0.0]
max extents . . . . . . . . . . [115.0 100.0 0.0]
layer . . . . . . . . . . . . . 0
color index . . . . . . . . . . 256
color . . . . . . . . . . . . . bylayer
linetype. . . . . . . . . . . . bylayer
ltscale . . . . . . . . . . . . 1.0
lineweight. . . . . . . . . . . klnwtbylayer
plot style. . . . . . . . . . . bylayer
transparency method . . . . . . 0
visibility. . . . . . . . . . . kvisible
planar. . . . . . . . . . . . . true
planarity . . . . . . . . . . . kplanar
origin. . . . . . . . . . . . [0.0 0.0 0.0]
u-axis. . . . . . . . . . . . [1.0 0.0 0.0]
v-axis. . . . . . . . . . . . [0.0 1.0 0.0]
acad_xdictionary. . . . . . . . . <acdbdictionary>
acdbblockrepresentation . . . . <acdbdictionary>
acdbrepdata . . . . . . . . . <acdbproxyobject>
appdatacache. . . . . . . . . <acdbdictionary>
acad_enhancedblockdata. . . <acdbdictionary>
. . . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 6895636
1071. . . . . . . . . 9291323
70. . . . . . . . . . 27
70. . . . . . . . . . 1
40. . . . . . . . . . 0.0
. . . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 6895636
1071. . . . . . . . . 9291323
70. . . . . . . . . . 27
70. . . . . . . . . . 1
40. . . . . . . . . . 0.0
acad_enhancedblockhdata . . <acdbdictionary>
107 . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 18597260
1071. . . . . . . . . 25303744
70. . . . . . . . . . 25
70. . . . . . . . . . 104
10. . . . . . . . . . [90.0 7.5 0.0]
10. . . . . . . . . . [90.0 92.5 0.0]
10. . . . . . . . . . [0.0 0.0 -1.0]
115 . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 6895636
1071. . . . . . . . . 9291323
70. . . . . . . . . . 25
70. . . . . . . . . . 104
40. . . . . . . . . . 0.0
59. . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 18597260
1071. . . . . . . . . 25303744
70. . . . . . . . . . 25
70. . . . . . . . . . 104
10. . . . . . . . . . [7.5 92.5 0.0]
10. . . . . . . . . . [90.0 92.5 0.0]
10. . . . . . . . . . [0.0 0.0 -1.0]
70. . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 6895636
1071. . . . . . . . . 9291323
70. . . . . . . . . . 25
70. . . . . . . . . . 104
40. . . . . . . . . . 0.0
code:
<acdbblockreference>. . . . . . . [125]
name. . . . . . . . . . . . . . *u29
position. . . . . . . . . . . . [0.0 0.0 0.0]
rotation. . . . . . . . . . . . 0.0d
scale factors . . . . . . . . . [1.0 1.0 1.0]
normal. . . . . . . . . . . . . [0.0 0.0 1.0]
min extents . . . . . . . . . . [-0.0 0.0 0.0]
max extents . . . . . . . . . . [215.0 100.0 0.0]
layer . . . . . . . . . . . . . 0
color index . . . . . . . . . . 256
color . . . . . . . . . . . . . bylayer
linetype. . . . . . . . . . . . bylayer
ltscale . . . . . . . . . . . . 1.0
lineweight. . . . . . . . . . . klnwtbylayer
plot style. . . . . . . . . . . bylayer
transparency method . . . . . . 0
visibility. . . . . . . . . . . kvisible
planar. . . . . . . . . . . . . true
planarity . . . . . . . . . . . kplanar
origin. . . . . . . . . . . . [0.0 0.0 0.0]
u-axis. . . . . . . . . . . . [1.0 0.0 0.0]
v-axis. . . . . . . . . . . . [0.0 1.0 0.0]
acad_xdictionary. . . . . . . . . <acdbdictionary>
acdbblockrepresentation . . . . <acdbdictionary>
acdbrepdata . . . . . . . . . <acdbproxyobject>
appdatacache. . . . . . . . . <acdbdictionary>
acad_enhancedblockdata. . . <acdbdictionary>
107 . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 18597260
1071. . . . . . . . . 25303744
70. . . . . . . . . . 27
70. . . . . . . . . . 1
10. . . . . . . . . . [90.0 7.5 0.0]
10. . . . . . . . . . [90.0 92.5 0.0]
10. . . . . . . . . . [0.0 0.0 -1.0]
115 . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 6895636
1071. . . . . . . . . 9291323
70. . . . . . . . . . 27
70. . . . . . . . . . 1
40. . . . . . . . . . 0.0
59. . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 18597260
1071. . . . . . . . . 25303744
70. . . . . . . . . . 27
70. . . . . . . . . . 1
10. . . . . . . . . . [7.5 92.5 0.0]
10. . . . . . . . . . [207.5 92.5 0.0]
10. . . . . . . . . . [0.0 0.0 -1.0]
70. . . . . . . . . . . . <acdbxrecord>
xdata:
1071. . . . . . . . . 6895636
1071. . . . . . . . . 9291323
70. . . . . . . . . . 27
70. . . . . . . . . . 1
40. . . . . . . . . . 0.0
sorry, i don't understand your question.
vladimir
yang686526离线中   回复时引用此帖
GDT自动化论坛(仅游客可见)
回复


主题工具 搜索本主题
搜索本主题:

高级搜索
显示模式

发帖规则
不可以发表新主题
不可以回复主题
不可以上传附件
不可以编辑您的帖子

vB 代码开启
[IMG]代码开启
HTML代码关闭

相似的主题
主题 主题发起者 论坛 回复 最后发表
【转帖】access violation on getblockproperties90 - dynamic blocks yang686526 DirectDWG 0 2009-05-04 03:31 PM
【转帖】about dynamic block yang686526 DirectDWG 0 2009-05-04 03:19 PM
【转帖】[翻译] metaprogramming with autocad (一) - 精华帖集合 yang686526 ObjectARX(VB.NET/C#) 0 2009-04-29 05:01 PM
anonymous block dynamic block(匿名块和动态块) yang686526 ObjectARX(AutoLISP) 0 2009-04-25 06:00 PM
【转帖】dynamic bellows yang686526 SolidWorks二次开发 0 2009-04-13 10:38 AM


所有的时间均为北京时间。 现在的时间是 06:34 AM.


于2004年创办,几何尺寸与公差论坛"致力于产品几何量公差标准GD&T | GPS研究/CAD设计/CAM加工/CMM测量"。免责声明:论坛严禁发布色情反动言论及有关违反国家法律法规内容!情节严重者提供其IP,并配合相关部门进行严厉查处,若內容有涉及侵权,请立即联系我们QQ:44671734。注:此论坛须管理员验证方可发帖。
沪ICP备06057009号-2
更多