乐筑天下

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

[编程交流] Creating layers with VLA, Auto

[复制链接]

66

主题

1552

帖子

1514

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
325
发表于 2022-7-5 18:22:48 | 显示全部楼层
Nice catch, Lee!
I'll need to work out more with this list manipulation thing.
 
By the way, it seems that the transparency of the layer can be set only with the command call:
  1. (command "_LAYER" "_TR" transparency layerName "")
 
DXF Data:
  1. ((-1 . ) (0 . LAYER) (330 . ) (5 . 1F1) (100 . AcDbSymbolTableRecord) (100 . AcDbLayerTableRecord) (2 . VLD_TEXT) (70 . 0) (62 . 50) (6 . Continuous) (290 . 1) (370 . 18) (390 . ) (347 . ) (348 . ))
 
Allowed properties and methods:
  1. ; IAcadLayer: A logical grouping of data, similar to transparent acetate overlays on a drawing; Property values:;   Application (RO) = #;   Description = "";   Document (RO) = #;   Freeze = 0;   Handle (RO) = "1F1";   HasExtensionDictionary (RO) = 0;   LayerOn = -1;   Linetype = "Continuous";   Lineweight = 18;   Lock = 0;   Material = "Global";   Name = "VLD_TEXT";   ObjectID (RO) = 43;   ObjectName (RO) = "AcDbLayerTableRecord";   OwnerID (RO) = 44;   PlotStyleName = "Color_50";   Plottable = -1;   TrueColor = #;   Used (RO) = -1;   ViewportDefault = 0; Methods supported:;   Delete ();   GetExtensionDictionary ();   GetXData (3);   SetXData (2)
回复

使用道具 举报

18

主题

1529

帖子

973

银币

中流砥柱

Rank: 25

铜币
649
发表于 2022-7-5 18:26:03 | 显示全部楼层
The layer transparency is stored as Xdata.
  1. (entget layerEname '("AcCmTransparency"))
回复

使用道具 举报

114

主题

1万

帖子

1万

银币

中流砥柱

Rank: 25

铜币
543
发表于 2022-7-5 18:30:03 | 显示全部楼层
 
You're welcome!
 
 
Although the layer transparency is stored within the xdata of the layer table entity and may be used to obtain the transparency of a given layer, if I recall correctly, modifying this xdata has no effect on the transparency of the layer, and so the transparency must be modified using a command call (this may be different in BricsCAD). There is a thread at the Swamp which discusses this behaviour.
回复

使用道具 举报

66

主题

1552

帖子

1514

银币

后起之秀

Rank: 20Rank: 20Rank: 20Rank: 20

铜币
325
发表于 2022-7-5 18:36:29 | 显示全部楼层
 
Thanks for comfirning it Lee!
Sadly theswamp is still closed, first few days I thought the site was at maintenance process. Now alot of the answers for the lisp questions must be googled somewhere else.
回复

使用道具 举报

18

主题

1529

帖子

973

银币

中流砥柱

Rank: 25

铜币
649
发表于 2022-7-5 18:40:33 | 显示全部楼层
@ Lee:
I think we have discussed this before at http://www.theswamp.org. In  BricsCAD you can use entmod to change a layer's transparency. There have  been some update issues, but these have meanwhile been fixed. But you  do (still) have to regenerate after changing a layer in this manner.
回复

使用道具 举报

发表回复

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

本版积分规则

  • 微信公众平台

  • 扫描访问手机版

  • 点击图片下载手机App

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

GMT+8, 2025-3-13 03:31 , Processed in 1.373318 second(s), 60 queries .

© 2020-2025 乐筑天下

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