乐筑天下

搜索
欢迎各位开发者和用户入驻本平台 尊重版权,从我做起,拒绝盗版,拒绝倒卖 签到、发布资源、邀请好友注册,可以获得银币 请注意保管好自己的密码,避免账户资金被盗
查看: 126|回复: 5

Mirror出来的图形怎么设为acadentity变量

[复制链接]

12

主题

38

帖子

1

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
86
发表于 2015-6-21 23:32:00 | 显示全部楼层 |阅读模式
试了一下,
dim cc=acadentity
dim dd=acadentity
mirror_Point1( 0 to 2) as double
.....................(略)
然后使用
Set dd = cc.Mirror mirror_Point1, mirror_Point2 或者set dd=cc.Mirror 都不行,
我想把镜像出来的acadentity作为变量,请问该如何写?
回复

使用道具 举报

12

主题

38

帖子

1

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
86
发表于 2015-6-22 11:26:00 | 显示全部楼层
有哪位大虾,帮忙解答一下,感谢感谢!祝端午快乐!
回复

使用道具 举报

12

主题

38

帖子

1

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
86
发表于 2015-6-22 18:25:00 | 显示全部楼层
在线坐等
回复

使用道具 举报

23

主题

561

帖子

13

银币

中流砥柱

Rank: 25

铜币
653
发表于 2015-6-22 18:58:00 | 显示全部楼层
  1. Sub Example_Mirror()
  2.     ' This example creates a lightweight polyline
  3.     ' and then mirrors that polyline.
  4.    
  5.     ' Create the polyline
  6.     Dim plineObj As AcadLWPolyline
  7.     Dim points(0 To 11) As Double
  8.     points(0) = 1: points(1) = 1
  9.     points(2) = 1: points(3) = 2
  10.     points(4) = 2: points(5) = 2
  11.     points(6) = 3: points(7) = 2
  12.     points(8) = 4: points(9) = 4
  13.     points(10) = 4: points(11) = 1
  14.     Set plineObj = ThisDrawing.ModelSpace.AddLightWeightPolyline(points)
  15.     plineObj.Closed = True
  16.     ZoomAll
  17.    
  18.     ' Define the mirror axis
  19.     Dim point1(0 To 2) As Double
  20.     Dim point2(0 To 2) As Double
  21.     point1(0) = 0: point1(1) = 4.25: point1(2) = 0
  22.     point2(0) = 4: point2(1) = 4.25: point2(2) = 0
  23.         
  24.    
  25.     ' Mirror the polyline
  26.     Dim mirrorObj As AcadLWPolyline
  27.     Set mirrorObj = plineObj.Mirror(point1, point2)
  28.    
  29.     ZoomAll
  30.     Dim objEnt As AcadEntity
  31.     Set objEnt = mirrorObj
  32.     MsgBox objEnt.ObjectName
  33. End Sub
回复

使用道具 举报

12

主题

38

帖子

1

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
86
发表于 2015-6-22 21:49:00 | 显示全部楼层

感谢老大,发现基本上就老大一个人回帖
顺便请教一下,我想用 Select acSelectionSetAll, , , FilterType, FilterData 只选择模型空间的,不对布局空间进行选择,该怎么弄?谢谢!
回复

使用道具 举报

23

主题

561

帖子

13

银币

中流砥柱

Rank: 25

铜币
653
发表于 2015-6-22 23:08:00 | 显示全部楼层
组码67        值为空或0时即指图元在模型空间,如果为1指在图形空间
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

QQ|关于我们|小黑屋|乐筑天下 繁体中文

GMT+8, 2025-4-20 15:08 , Processed in 0.830398 second(s), 65 queries .

© 2020-2025 乐筑天下

联系客服 关注微信 帮助中心 下载APP 返回顶部 返回列表