Re: [Therion] Can't change default l_wall style with metapost

2023-07-25 Thread Paul Rowe
Thanks, that's exactly what I needed.

Is that approach the case for any point/line/area that has subtypes? i.e.
You have to override the default subtype.

Paul

On Wed, 26 Jul 2023 at 07:01, Martin Budaj  wrote:

> Hi,
>
> define l_wall_bedrock instead of l_wall
>
> M.
>
> On Tue, Jul 25, 2023 at 2:03 AM Paul Rowe 
> wrote:
>
>> Hi,
>> I have changed wall subtypes before in my layout. e.g. Using Bruce
>> Mutton's
>>
>> code metapost
>> def l_wall_unsurveyed (expr P) =
>>   T:=identity;
>>   pickup PenC;
>>   thdraw P dashed evenly scaled (2*optical_zoom);
>> enddef;
>> endcode
>>
>> However, I can't get this working on the default l_wall type. Any
>> changes, including using the same style as in the above l_wall_unsurveyed
>> example get ignored. e.g.
>> code metapost
>> def l_wall (expr P) =
>>   T:=identity;
>>   pickup PenC;
>>   thdraw P dashed evenly scaled (2*optical_zoom);
>> enddef;
>> endcode
>>
>> I'm not sure what I'm missing. I'm first trying to prove I can override
>> this, and then working on a wall style with a shadow or external
>> cross-hatching.
>>
>> Thanks,
>> Paul
>>
>> ___
>> Therion mailing list
>> Therion@speleo.sk
>> https://mailman.speleo.sk/listinfo/therion
>>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Can't change default l_wall style with metapost

2023-07-25 Thread Martin Budaj
Hi,

define l_wall_bedrock instead of l_wall

M.

On Tue, Jul 25, 2023 at 2:03 AM Paul Rowe 
wrote:

> Hi,
> I have changed wall subtypes before in my layout. e.g. Using Bruce
> Mutton's
>
> code metapost
> def l_wall_unsurveyed (expr P) =
>   T:=identity;
>   pickup PenC;
>   thdraw P dashed evenly scaled (2*optical_zoom);
> enddef;
> endcode
>
> However, I can't get this working on the default l_wall type. Any changes,
> including using the same style as in the above l_wall_unsurveyed example
> get ignored. e.g.
> code metapost
> def l_wall (expr P) =
>   T:=identity;
>   pickup PenC;
>   thdraw P dashed evenly scaled (2*optical_zoom);
> enddef;
> endcode
>
> I'm not sure what I'm missing. I'm first trying to prove I can override
> this, and then working on a wall style with a shadow or external
> cross-hatching.
>
> Thanks,
> Paul
>
> ___
> Therion mailing list
> Therion@speleo.sk
> https://mailman.speleo.sk/listinfo/therion
>
___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion


Re: [Therion] Can't change default l_wall style with metapost

2023-07-25 Thread Gilbert (liste)

Hello,

change your function name to : l_wall_unsurveyed_MYLINE

do not forget the code :


    initsymbol("l_wall_unsurveyed");

    symbol-assign line unsurveyed MYLINE


after enddef; and before endcode;

it will should work.

(-;


Le 25/07/2023 à 02:00, Paul Rowe a écrit :

Hi,
I have changed wall subtypes before in my layout. e.g. Using Bruce 
Mutton's


code metapost
def l_wall_unsurveyed (expr P) =
  T:=identity;
  pickup PenC;
  thdraw P dashed evenly scaled (2*optical_zoom);
enddef;
endcode

However, I can't get this working on the default l_wall type. Any 
changes, including using the same style as in the above 
l_wall_unsurveyed example get ignored. e.g.

code metapost
def l_wall (expr P) =
  T:=identity;
  pickup PenC;
  thdraw P dashed evenly scaled (2*optical_zoom);
enddef;
endcode

I'm not sure what I'm missing. I'm first trying to prove I can 
override this, and then working on a wall style with a shadow or 
external cross-hatching.


Thanks,
Paul


___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion

___
Therion mailing list
Therion@speleo.sk
https://mailman.speleo.sk/listinfo/therion