明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
查看: 2588|回复: 5

有谁知道vla-MergeCells函数的用法?

[复制链接]
发表于 2009-8-30 11:50:00 | 显示全部楼层 |阅读模式
没有查到vla-MergeCells的用法,也就是ACAD_TABLE的Vlisp相关函数,还有多重引线及其样式的Vlisp相关函数通通没法找到,不知哪位可以指教?
发表于 2009-8-31 08:06:00 | 显示全部楼层

Merges cells in a table.

Signature

object.MergeCells(minRow, maxRow, minCol, maxCol)

Object     Table     The object or objects this method applies to.

MinRow     Long; zero-based lower bound of a row index

MaxRow    Long; zero-based upper bound of a row index

MinCol      Long; zero-based lower bound of a column index

MaxCol      Long; zero-based upper bound of a column index

Remarks

This method merges a rectangular region of cells. The total number of cells to be merged is equal to (maxRow - minRow + 1) * (maxCol - minCol + 1).

 

 楼主| 发表于 2009-8-31 10:19:00 | 显示全部楼层

看来只有查VBA的方法了,不过VBA我可不是很会

发表于 2009-8-31 11:00:00 | 显示全部楼层

这个问题很复杂吗??

(vla-MergeCells (vlax-ename->vla-object (car (entsel))) 1 3 1 3)

合并表格中的单元格。

语法

object.MergeCells(minRow, maxRow, minCol, maxCol)

Object

MSITStore:D:\ActiveX%20和%20VBA%20参考.chm::/idh_Table_Object.htm">Table
使用该方法的对象。

minRow

Long[长整数]; 由零开始的行索引下限

maxRow

Long[长整数]; 由零开始的行索引上限

minCol

Long[长整数]; 由零开始的列索引下限

maxCol

Long[长整数]; 由零开始的列索引上限

说明

该方法可将多个单元格矩形区域合并成一个单元格。合并的单元格总数等于 (maxRow - minRow + 1) * (maxCol - minCol + 1).

 楼主| 发表于 2009-9-7 16:39:00 | 显示全部楼层
只是在VLISP函数中找不到。难道语法要到VBA的方法中查找?
发表于 2014-1-16 11:41:20 | 显示全部楼层
为什么我参数设置完后合并的结果不是我想要的呢过,比如我想把第一行第一列和第二行第一列合并,设置为
(vla-MergeCells TABLE 0 1 0 0)结果是第一行所有列都合并了?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2025-5-25 16:34 , Processed in 0.178906 second(s), 25 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

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