Visual LISP, AutoLISP and General Customization
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Line Weight Display Scale

6 REPLIES 6
Reply
Message 1 of 7
Anonymous
1028 Views, 6 Replies

Line Weight Display Scale

Can some one show me how to adjust the Display Scale of Lineweights with Lisp or VBA? Its the sliding scale when you type LWEIGHT.

Thanks in Advance.
Kent
6 REPLIES 6
Message 2 of 7
Anonymous
in reply to: Anonymous

You can adjust the lineweight display scale through the system variable
"lwdefault" you should also check the "lwunits" and "lwdisplay" system
variables.

get and change the system variables with the "getvar" and "setvar"
functions. Make sure you use the correct type (eg. string) with the setvar
function

Rod

"kjenne" wrote in message news:5781837@discussion.autodesk.com...
Can some one show me how to adjust the Display Scale of Lineweights with
Lisp or VBA? Its the sliding scale when you type LWEIGHT.

Thanks in Advance.
Kent
Message 3 of 7
Anonymous
in reply to: Anonymous

That didn't do it, the only affect that the only setting that did anything was the lwdisplay turned the line weights on and off but I need them on and set to minimum via lisp.

Thanks
Kent
Message 4 of 7
Anonymous
in reply to: Anonymous

>Make sure you use the correct type (eg. string) with the setvar function

Ever since vlisp came along, variables don't have to be given as strings. (setvar "lwdisplay" 1) and (setvar 'lwdisplay 1) are equivalent.
Message 5 of 7
Anonymous
in reply to: Anonymous

You may find these helpful.
(getvar "lwdefault")

(setvar "lwdefault" 0)

Bob
Message 6 of 7
Anonymous
in reply to: Anonymous

Thanks but lwdefault doesn't do anything to my existing lines or new lines. That appears to be the default for all lines. Maybe I wasn't clear enough, I have a layer that has a lineweight of .90 and no matter what the lwdefault is anything on that layer appears very thick in model space but in paper space is exactly the way I want it. The lweight sliding display scale is the way I want my drawings to look when set to minimum but is very heavy when set to anything else. LWDEFAULT doesn't effect my drawings at all.

Thanks
Kent
Message 7 of 7
Anonymous
in reply to: Anonymous

I was simply correcting the other poster on lisp syntax.

Setting a new default lineweight obviously wouldn't change existing lines.There doesn't seem to be an Acad variable corresponding to the sliding scale. Maybe it's kept in the registry.

I've never bothered with lineweight display, so I can't help. Have you Googled this subject?

(edit) Afterthought -- it would seem this really ought to be kept in the drawing. In that case, maybe it's in a dictionary?

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report

”Boost