How to call the color of a layer inside Smartpart


Hi!

Example: A simple smartpart of one circle, and the 2D representation is associated to a layer (pen, stroke and color). In the "smartpart dialog window" I scripted some code to unlink the layer color of the circle, to choose another diferent color, using a "control box" (that list the 256 allplan colors).

Using a "check box", it can lock and unlock this "control box" to choose a diferent circle color.

When is in lock position, this "control box", ever show the last color selection. But, when this "control box" is locked, is possible to show the color of the layer and not the last selection?

Thanks a lot!
Xavi

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/

Attachments (2)

Type: image/jpeg
Downloaded 530 times
Size: 61,34 KiB
Type: application/octet-stream
Downloaded 1157 times
Size: 320,11 KiB

Hello,

the current layer id is stored inside global parameter GLOB_LAYER (readonly).

To get the pen-/stroke-/color-attributes of this layer, an REQUEST would be helpful:

REQUEST ("LAYER_ATTR",id,pen,stroke,layer)

This is a very helpful extension indeed.
Maybe we can realize something like this in the next versions....

Regards.
Jörg

Thanks for the answer, Jörg!

Then, actually isn't possible.... We will wait for next smartpart versions.

Regards!
Xavi

Xavier Coll • Architect, Project Manager I+D, BIM Manager, BIM Auditor
EiPM • http://www.eipm.es/en/


https://campus.allplan.com/ uses cookies  -  More information

Accept