CREATE OBJECT DATA creates an object data table and attaches an
object data record to each new entity. This record includes the name,
layer, color, and handle of the entity. Then the macro changes the
color field in each record. NOTE: Before running CREATE OBJECT DATA,
create some new entities in the project drawing. Create them on dif-
ferent layers and with different colors.
它说它创建、附加然后修改-这不是你在第一篇帖子中描述的吗?
不,我的第一篇文章是...
我宁愿这样做,因为如果我附加一个新值,那么我必须检索旧值的所有值,更新新值,然后附加它。似乎只是为了改变一个领域而付出了太多的努力。
我还看了一下.记录示例中的初始化方法和我的函数非常相似,根据示例,它应该可以工作。事实并非如此。 好吧,我想我终于明白了。我确实需要从ODRecords中获取ODRecord集合,编辑它,然后更新ODRecords。似乎我不能直接更新ODRecords中的字段值。
我不得不说,帮助文件中的示例。Init方法显示了类似的东西,但它真的很糟糕,可能不会“照原样”工作。
页:
1
[2]