ynhh 发表于 2021-10-27 10:02:42

随图保存实数变量值的方法

本帖最后由 ynhh 于 2021-10-27 10:33 编辑

随图保存实数变量值,关闭图形文件后再次打开此文件时,此值还保存在图中.方便再次查询调用
这对高手来说是很简单的事
但对新手来说还是很有用的
谢谢





masterlong 发表于 2021-10-27 10:27:28

vlax-ldata-*   ?

如果不是这个
记得之前是白糖还是谁
介绍过一个参数值隐藏的方法

ynhh 发表于 2021-10-27 10:34:41

masterlong 发表于 2021-10-27 10:27
vlax-ldata-*   ?

如果不是这个


不是隐藏
这是保存在原图中
并且这不受图形关闭的影响的

LIULISHENG 发表于 2021-10-27 10:51:37

学习一下,支持一下

baitang36 发表于 2021-10-28 10:40:15

Stores LISP data in a drawing dictionary or an object

(vlax-ldata-put dict key data )
Arguments

dict
A VLA-object, an AutoCAD drawing entity object, or a string naming a global dictionary.

key
A string specifying the dictionary key.

data
LISP data to be stored in the dictionary.

private
If vlax-ldata-put is called from a separate-namespace VLX and a non-nil value is specified for private, vlax-ldata-put marks the data as retrievable only by the same VLX.

Return Values

The value of data.

Examples

_$ (vlax-ldata-put "dict"
"key" '(1))

vitalgg 发表于 2021-10-28 21:11:21

userr1 ~ userr5
页: [1]
查看完整版本: 随图保存实数变量值的方法