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/

Anhänge (2)

Typ: image/jpeg
530-mal heruntergeladen
Größe: 61,34 KiB
Typ: application/octet-stream
1134-mal heruntergeladen
Größe: 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/


Verwendung von Cookies:
Um die Webseite optimal gestalten und fortlaufend verbessern zu können, verwendet Allplan Cookies.
Durch die weitere Nutzung der Webseite erklären Sie sich mit der Verwendung von Cookies einverstanden.  -  Mehr Informationen

Schließen