明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 1738|回复: 2

请教

[复制链接]
发表于 2002-9-17 22:52 | 显示全部楼层 |阅读模式
在Delphi 中按如下步骤创建尺寸标注:

dimObj:=mdp.AddDimAligned(vararrayref(Point1), vararrayref(Point2),
                  vararrayref(PointText));

        dimObj.UnitsFormat:= 6;


        dimObj.ArrowheadSize:=10;
        dimObj.Arrowhead2Type:=4 ;
        dimObj.Arrowhead1Type:=4 ;
        dimObj.ArrowheadSize:=4;
        dimObj.ExtensionLineExtend:=8;
        dimObj.TextOverride := '该值为 <>';
        dimObj.TolerancePrecision:=2;

     //------------------------------
      //  dimObj.DimensionLineColor:=25;

      //指定标注、引线和公差对象的尺寸线颜色。

       // dimObj.DimensionLineWeight:=1;

      //指定尺寸线的线宽。

      //DimLine1Suppress, DimLine2Suppress

      //指定尺寸线的隐藏。

        //DimLineInside

       //指定只在尺寸界线内显示尺寸线。

           //  dimObj.ExtensionLineColor:=25;
//
        //指定尺寸界线的颜色。

           //dimObj.ExtensionLineExtend:=50;

        //指定尺寸界线超出尺寸线的距离。

          //  dimObj.ExtensionLineOffset:=100;

         //指定尺寸界线到定义该标注的原点的偏移距离。

                 //dimObj.ExtensionLineWeight:=1;

         //设置尺寸界线的线宽。

         dimObj.ExtLine1EndPoint:=P3;
         dimObj.ExtLine2EndPoint:=P4;
         dimObj.ExtLine1StartPoint:=P1;
         dimObj.ExtLine2StartPoint:=P2;

          dimObj.update;


提示:Method ExtLine1EndPoint not supported by automation object
请问怎样修改?
发表于 2002-9-17 23:00 | 显示全部楼层

不存在的属性,改用dimobj.extline1point 试试, 相关属性

ExtensionLineColor

ExtensionLineExtend

ExtensionLineOffset

ExtensionLineWeight

ExtLine1Point

ExtLine2Point

ExtLine1Suppress

ExtLine2Suppress
 楼主| 发表于 2002-9-17 23:17 | 显示全部楼层

我的目的是要设定尺寸界线的长度。但不知怎样做。

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

本版积分规则

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

GMT+8, 2024-4-27 11:08 , Processed in 0.386668 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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