[Otázka] Mistake with "format from layer "


Hi, could anyone tell me why when you activate "from layer" the parameters don't change like the layer?
See attachment.

Přílohy (1)

Type: text/xml
Staženo 55
Size: 47,18 KiB

Show most helpful answer Hide most helpful answer

Sorry Bertrand, it cannot work, not for you and not in Allplan 2024-1-1

What Danilos means is, that at activated "from Layer"-checkbox then color, pen and stroke should be changed (to the layer defined values) , when you change the layer!

This requires some effort in the parameter script (s. smt_param_script_from_layer.png)

Přílohy (2)

Type: image/png
Staženo 65
Size: 79,06 KiB
Type: text/xml
Staženo 54
Size: 47,18 KiB

Hello,
In Allplan 2024-1-1, it works fine.


Sorry Bertrand, it cannot work, not for you and not in Allplan 2024-1-1

What Danilos means is, that at activated "from Layer"-checkbox then color, pen and stroke should be changed (to the layer defined values) , when you change the layer!

This requires some effort in the parameter script (s. smt_param_script_from_layer.png)

Přílohy (2)

Type: image/png
Staženo 65
Size: 79,06 KiB
Type: text/xml
Staženo 54
Size: 47,18 KiB

Citoval Nemo
Sorry Bertrand, it cannot work, not for you and not in Allplan 2024-1-1
What Danilos means is, that at activated "from Layer"-checkbox then color, pen and stroke should be changed (to the layer defined values) , when you change the layer!
This requires some effort in the parameter script (s. smt_param_script_from_layer.png)

Hi Nemo, what I meant is exactly as you say! Thank you for new script, now works. Goodbye.

Hello,

But when I tried it, it worked. I must not have tested thoroughly enough.
I only looked at the result in the drawing file with the SmartPart placed on the Standard layer.
I didn't quite understand what was expected.
Looking at the code, it's true that I don't personally do this in the same way. I do rather as you mentioned in your complete solution.
Thanks for pointing it out.
Have a good day.


Hi Bertrand,

it's more or less only a GUI issue!
If you set the layer and the pen, stroke , color to the right values:

LAYER lyr_2d 

COLOR col_2d 
PEN pen_2d 
STROKE str_2d 

IF bly_2d THEN 
   COLOR BY_LAYER 
   PEN BY_LAYER 
   STROKE BY_LAYER 
ENDIF

then the result is always correct, also without the extension in parameter-script.

The parameter-script is only responsible for the correct display of color-, stroke- and pen-comboboxes in the palette. (s. from_layer.mp4)

Přílohy (1)

Type: video/mp4
Staženo 46
Size: 543,06 KiB

Hi Jörg,

In the original question, I wasn't sure whether it was the representation in the drawing or in the SmartPart interface.
I thought it was the final result.
Yes, it was in fact an issue of GUI.
But that's the responsibility of the person writing the Smart Part code.

Thanks for the clarification.



https://campus.allplan.com/ používá cookies  -  Více informací

Souhlasím