乐筑天下

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

请问"vla-get-layers"之类的函数详细说明哪里找得到?

[复制链接]

1

主题

2

帖子

2

银币

初来乍到

Rank: 1

铜币
5
发表于 2002-10-10 14:46:00 | 显示全部楼层 |阅读模式
请问vla-get-layers之类的函数详细说明哪里找得到?
Acad2002帮助文档里根本没有,在vlisp编辑界面上,可以看到它是蓝色的,说明这已经是个内置函数。
回复

使用道具 举报

5

主题

55

帖子

7

银币

初露锋芒

Rank: 3Rank: 3Rank: 3

铜币
75
发表于 2002-10-17 21:59:00 | 显示全部楼层
用来获取图形对象特性的函数名前有一个 vla-get 前缀,这类函数的调用语法如下:
(vla-get-property object)
例如,vla-get-center 返回圆的圆心。
获取对象特性并将该特性应用到新对象的步骤
1        在 VLISP 控制台提示下输入如下命令:
(setq myCircle (vla-addcircle mspace (vlax-3d-point
  (getpoint "\nPick the center point for a circle: ")) 2.0))
该函数调用提示拾取圆的圆心,然后调用 addCircle 方法画出该圆。其中 vlax-3d-point 函数用于将拾取的点转换成 vla-addcircle 要求的数据类型。
2        使用 vla-get-center 画第一个圆的同心圆:
(vla-addCircle mSpace (vla-get-center myCircle) 1.0)
看看会发生什么
回复

使用道具 举报

29

主题

1152

帖子

10

银币

顶梁支柱

Rank: 50Rank: 50

铜币
1268
发表于 2002-10-18 08:01:00 | 显示全部楼层
Gets the Layers collection for the document.
Signature
object.Layers
object        Document
The object or objects this property applies to.
Layers        Layers collection; read-only
The Layers collection for the document.
-----------------------------------------------------------
Specifies the layer for an entity.
Signature
object.Layer
object        All Drawing objects, AttributeRef, Group
The object or objects this property applies to.
Layer        String; read-write (write-only for the Group object)
The name of the layer.
Remarks
All entities have an associated layer. The document always contains at least one layer (layer 0). As with linetypes, you can specify a layer for an entity. If you don specify a layer, the current active layer is used for a new entity. If a layer is specified for an entity, the current active layer is ignored. Use the ActiveLayer property to set or query the current active layer.
Each layer has associated properties that can be set and queried through the Layer object.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-5-26 05:20 , Processed in 1.924777 second(s), 60 queries .

© 2020-2025 乐筑天下

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