.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Change Lineweight System Variable

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
SRSDS
2305 Views, 4 Replies

Change Lineweight System Variable

Hi,

How do I change the lineweight system variable

Pressing the command button puts <Lineweight > in the command line.

 

Is there some reference I should be looking to seach for these sort of things instead of troubling the forum?

The last problem I had to search for was to change lineweights

br.LineWeight = 0.35

should be:

br.LineWeight = LineWeight.LineWeight035

 

 

 

4 REPLIES 4
Message 2 of 5
jeff
in reply to: SRSDS

 

CELWEIGHT

http://exchange.autodesk.com/autocad/enu/online-help/browse#WS1a9193826455f5ffa23ce210c4a30acaf-50de...

 

Look at

Database.Celweight Property

 

As far as reference's in that situation look in helpfile in system variables for the one you want or search for keyword to find variable.

 

Then use the arxdoc.chm and type in Database on the index tab and see if Database has a property that matches the system variable name if not use Application.SetSystemVariable Method

You can also find your answers @ TheSwamp
Message 3 of 5
SRSDS
in reply to: jeff

Hi Jeff,

I played with that bit it didn't seem to change the variable.

I'm trying to change the line weight display which seems like an on/off thing.

The button sort of looks like a pair of sissors that toggles it.

 

Message 4 of 5
jeff
in reply to: SRSDS

Okay I saw nothing about display in first post

 

LWDISPLAY

 

        <CommandMethod("LineWeightDisplay")> _
        Public Sub LineWeightDisplay()

            Dim int As Integer = Application.TryGetSystemVariable("LWDISPLAY")

            If int = 0 Then
                Application.SetSystemVariable("LWDISPLAY", 1)
            Else
                Application.SetSystemVariable("LWDISPLAY", 0)
            End If

        End Sub

 Also which is easier for me since I can not remeber what the buttons are is

right-click on one of the buttons and click 'Use Icons' to uncheck it and will change to previous style with letters

 

You can also find your answers @ TheSwamp
Message 5 of 5
SRSDS
in reply to: jeff

Works. Thanks so much once again.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost