Jump to content

lweight on off


jim78b

Recommended Posts

i have this macro and not understand why if i set lweight bylayer after launch my macro the lweight display on instead remain as should be :OFF

 

^C^C_clayer 0;^C^C_color BYBLOCK;^C^C-linetype;S BYLAYER;^C^C_lweight BYLAYER;

Link to comment
Share on other sites

Looks like running the lweight command automatically turns on the display, but you can turn it off at the end of your macro by adding this to the end.

_lwdisplay;off;

 

Link to comment
Share on other sites

I never use it but, it does appear to be. Looks like something you just need to learn to live with, in a macro the lweight command will automatically turn it on, I suppose you could add in a diesel expression at the start of your macro to reaad the variable "lwdisplay" at the start of the macro and then reset it at the end so that the value remains the same.

Link to comment
Share on other sites

28 minutes ago, steven-g said:

I never use it but, it does appear to be. Looks like something you just need to learn to live with, in a macro the lweight command will automatically turn it on, I suppose you could add in a diesel expression at the start of your macro to reaad the variable "lwdisplay" at the start of the macro and then reset it at the end so that the value remains the same.

Thanks i want only know if was normal and if  i used the macro command right .i can remove lweight and not use if someone don't know why lweight active the display of lines weight

Edited by jim78b
Link to comment
Share on other sites

8 hours ago, jim78b said:

i have this macro and not understand why if i set lweight bylayer after launch my macro the lweight display on instead remain as should be :OFF

 

^C^C_clayer 0;^C^C_color BYBLOCK;^C^C-linetype;S BYLAYER;^C^C_lweight BYLAYER;

To modify layer 0 use "^C^C_-LAYER Make 0" and set whatever properties you want for layer 0 while you're in there.  Try using CELWEIGHT to set current lineweight. 

Gotta ask, why set color BYBLOCK, and everything else BYLAYER?  I generally always use BYBLOCK for block entities and BYLAYER for everything else.

Link to comment
Share on other sites

On 8/24/2019 at 12:12 PM, steven-g said:

Yes it certainly looks normal, I can see no problems in your macro.

even with CELWEIGHT autocad turn on the lwdisplay

Link to comment
Share on other sites

Well done, It can be frustrating at times trying to get things to work as you hope, and macro's often are limited in their use. And finding just that right setting or option/variable is often a long drawn out process. So it's good to see that you got there and it's great that you let us know (and pretty quick too).

Link to comment
Share on other sites

4 hours ago, jim78b said:

if i use -layer lw not permit to choose bylayer only thicknes

You cannot set any layer property to bylayer!

With -layer you can set lineweight to Default, same as you would with the Layer Palette.

 

I'd still recommend using byblock for all the properties of block entities and bylayer for everything else.

Link to comment
Share on other sites

27 minutes ago, tombu said:

You cannot set any layer property to bylayer!

With -layer you can set lineweight to Default, same as you would with the Layer Palette.

 

I'd still recommend using byblock for all the properties of block entities and bylayer for everything else.

ok thanks you very much for your help! have a nice day

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...