明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 669|回复: 0

ACADM中粗糙度符号操作问题(求解决)

[复制链接]
发表于 2023-7-25 16:44:17 | 显示全部楼层 |阅读模式
本帖最后由 lijiao 于 2023-7-25 16:56 编辑

下面这段代码是Autodesk AutoCAD Mechanical 2024帮助文件acmDevGuide(开发者指南)中的示例,我试运行了一下,会出现问题,不能改变属性的值,麻烦各位帮忙看看是怎么回事.
好像红色的地方都有问题
Dim symbb As McadSymbolBBMgr
Set symbb = ThisDrawing.Application.GetInterfaceObject("SymBBAuto.McadSymbolBBMgr")
Dim surftext As McadSurfaceTexture
Set surftext = ThisDrawing.ModelSpace.AddCustomObject("AcmsurfaceTexture")
Dim pt As Variant
pt = ThisDrawing.Utility.GetPoint(, "Location for Surface Texture symbol: ")
pt = ThisDrawing.Utility.TranslateCoordinates(pt, acUCS, acWorld, False)
surftext.Origin = pt
surftext.AllowanceValue = 0.01
surftext.AutomaticAdjust = True
surftext.color = 1
surftext.CommentValue = "This is a comment"
surftext.CutoffValue = "2"
surftext.LayDirection = sbCircularRelativeToCenter
surftext.LayDirectionValue = 0.1
surftext.OtherMinimumValue = 0.2
surftext.OtherValue = 1
surftext.ProductionValue = 3
surftext.Production2Value = 4
surftext.RaMaximumValue = 6
surftext.RaMinimumValue = 5.5
surftext.MaximumSpacingValue = 0.5
surftext.ReferenceValue = 3.5
surftext.SamplingLengthValue = 10
surftext.WavinessValue = 2.05





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

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2024-11-17 21:17 , Processed in 0.176920 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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