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/

Pièces-jointes (2)

img
Test - Circle.jpg
Type: image/jpeg
Téléchargé 492 fois
Size: 61,34 KiB
Type: application/octet-stream
Téléchargé 412 fois
Size: 320,11 KiB
1 - 3 (3)
  • 1

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/

1 - 3 (3)
  • 1

https://campus.allplan.com/ utilise des cookies  -  Plus d'informations

Accepter