Grrr 发表于 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:

(command "_LAYER" "_TR" transparency layerName "")
 
DXF Data:

((-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:

; 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)

Roy_043 发表于 2022-7-5 18:26:03

The layer transparency is stored as Xdata.

(entget layerEname '("AcCmTransparency"))

Lee Mac 发表于 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.

Grrr 发表于 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.

Roy_043 发表于 2022-7-5 18:40:33

@ Lee:
I think we have discussed this before at http://www.theswamp.org. InBricsCAD you can use entmod to change a layer's transparency. There havebeen some update issues, but these have meanwhile been fixed. But youdo (still) have to regenerate after changing a layer in this manner.
页: 1 [2]
查看完整版本: Creating layers with VLA, Auto