DesignCAD 3D Max 2027 box
Now available

DesignCAD 2027

Hatches that follow their boundaries, an on-screen dial to turn your model, and a way to find any command by name, in a clean Windows 11 look.

Problems with Sys(550) <default fixed lineweight>

Started by Lar, September 16, 2012, 02:51:22 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Lar

Edit: See my 2nd post where I solve the mystery presented in this opening post...

Does anyone know how to use sys(550). It sets the default fixed lineweight but the fixed lineweight never seems to get activated.

Eg, run the following code. If your default is now 2.11 then change it to something else through the line style toolbox:

message "Default fixed lineweight=",sys(550)   'shows current default...
sys(550)=211    'changes default to 2.11 (thickest in dialog)...
message "New default fixed lineweight (should be 211)=",sys(550)   'shows the new default...


After running this check the 'line style toolbox' to see if it shows 2.11. My dcad does not.

Below is what my sys help file shows. The two sets of bold and underlined type conflict each other since they suggest that the sys is asking for two different sets of data, which is an impossibility...
Quote
550 - Default Fixed Lineweight (in 1/100ths of a millimeter) * New in 14
[1=visible, 2 = hidden]
This function indicates the current default linewidth if fixed lineweight is active (and no layer settings override the default setting).

Any help would be appreciated.

Lar

prl

#1
Lar, sys(550) doesn't seem to work and I agree the sys help file information is screwed up.

Lar

#2
Actually, guys, sys(550) is working...  :-[ ...and not only is it working but it is one of those missing links that I was hoping to come across but didn't know where to look...  ;D,  8). For those already aware of the following, please excuse my late ignorance.

In my starting post I lament the fact that sys(550) *sets the default but does not activate*. Well, much to my elation sys(550) is the "Default" that sits at the top of 'fixed lineweights' lists in the info box and all 'Line Style' dialog boxes.

Ever since fixed lineweights were implemented I normally would use 0.40 mm. One of the pains I was living with is that 0.40 sits just below the first page in the drop down list so for me to get at it I have to click in the closed list, it opens, then I have to 'page down', scroll down or 'mouse-wheel down' to get it.

Well, that 'Default' was there all the time so as to avoid all that, I always suspected, but I never knew how to set it. Simply set your default via the following macro and that one would be right up top of the list. Of course, there should be a more direct path to set this but so be it...

**Edit: macro was revised to show current default while giving you a chance to change it... also advising you if the input was 'non-standard'. **

'Fixed Lineweight Default.d3m
'Lar, Nassau, Bahamas, 17Sep12

precision 3

sys(1027)=4  'message box style = Yes/No
message "The Default Fixed Lineweight = ",sys(550),". Do you want to change it?..."

sys(1027)=0  'message box style = OK (default)

'if No then end...
if sys(1028)=7 then end

'if yes then just continue macro...

FixLW=0     'Lar's default fixed lineweight = 0 mm... Set to your default then when the 'input' box opens you can just click OK without entering anything (also change the <<0>> in the 'input' line...
   'If you want to use a different value then you would have to enter something (eg, 40=0.40 mm, 100=1.0 mm, 211=2.11mm, etc)...

INPUT "Enter your Default Fixed Lineweight <<0>> (eg, 40=0.40 mm, 100=1.0 mm, 211=2.11mm, etc, if incorrect Dcad will enter the next lowest)..." FixLW

sys(550)=FixLW

Regen   'take this out if your regens take too long...

'if input is non-standard dcad will adjust down to next standard (if invalid dcad will enter zero)...
If sys(550)<>FixLW then message "Input was a non-standard value so it was adjusted down to",sys(550),". Thank you."


...A few minutes later...
Ok, I just tested the macro... It works but I noticed that the 'default' did not show the value in numbers, just the thickness of the line. I was then inspired to wonder if, when a line's fixed lineweight is set to 'default' would the line's thickness change if the system's default value is changed.

The short answer: Yes.

The advantage: you can quickly change the line weights of certain lines for certain circumstances without having to select them. When printing, for example (note that 552 toggles the display of fixed lineweights onscreen, 553 toggles the printing of fixed lineweights, and 554 allows you to scale the printing of, you guessed it, fixed lineweights).

My use for it will be those guide lines that I don't want to delete and normally sits and hides in another line. Eg, lines that I extrude into a grid surface or that I would duplicate to make into a plane surface then extrude into a solid. I keep these lines in case I have to adjust and redo the grid surface or solid. I would normally have these lines set to zero weight and on an off layer but many times the are left on a main layer. Changing the default to 2.11 mm would show them up.

The disadvantage: I will have to endure further the pain of 0.40mm being 1 page down in the list. Lucky me, I have a macro that changes the lineweights of selected lines, with 40 as the default.

Lar

prl

Quote from: Lar on September 17, 2012, 01:52:59 PM
Well, much to my elation sys(550) is the "Default" that sits at the top of 'fixed lineweights' lists in the info box.

OK, I still need to study your post, but why the InfoBox???  I thought this setting would let you draw new lines at some fixed default line weight.  Changing existing lines has always been possible. 

Like I said, let me study your post. I don't really "get" what's neat about this.

Lar

#4
Prl, the 'default' is also in all the other 'Line Style' dialog boxes: the one in the Line Style Toolbox, the Layer dialog and the 'multiple-selection-entity-type' edit buttons at the top of the info box when more that one entity is selected.

It is good that it's in the info box because it allows you to change a line from say 0.40mm fixed lineweight to a 'default' fixed lineweight.

My initial elation was that you could give the default a value then you don't have to scroll down to find it. It would be at the top of the list.

However, this is not exactly the case. The 'default' fixed lineweight is like a variable: all lines with this variable fixed lineweight will change thickness if the default value changes.

Eg,
1] Draw a zero thickness line...
2] Run my macro without entering anything in the input box. This will set the default to 0.40mm...
3] Select the line and use the info box to change it's thickness to 'default'. The line will become .40mm.
4] Deselect the line...
5] Now run my macro and enter 211 in the info box.
... Once the macro is done the unselected line will automatically become 2.11mm. 

Hope that helps and sorry for all the recent complicated posts. It is difficult to explain things in writing only. I try to explain in detail because many times I totally forget things I've written here (when I re-discover them many years later) and the full detail helps me reacquaint myself with all of dcad's little nuances. Also, lately I've had to cut back on the time spent on this forum so I'm rushing myself.

Lar

prl

Hmmm, your saying "Default" is a  system variable.  Makes sense and your explanation is starting to sink in.

Besides basiccad how would one set this value?  I've been looking through all the Options but don't see a normal way to set this value.  Also looked through the various *.ini files and didn't see it either.  Does this system variable reset between sessions?  Is it saved with the drawing?    (I'm just thinking out loud, I'll play around for these things.)

Now what to do with this discovery, another thing for me to ponder.

Lar

Quote from: prl on September 17, 2012, 02:51:05 PM
Now what to do with this discovery, another thing for me to ponder.

Check out the blue text in my 2nd post. I was modifying that post a lot so you may not have seen it.

Lar

prl

Quote from: Lar on September 17, 2012, 03:02:37 PM
Check out the blue text in my 2nd post. I was modifying that post a lot so you may not have seen it.

Thanks.  Seems the setting doesn't save with the drawing. Always resets to 25mm.  Also so far you can't define a line as fixed line weight  "Default" with basiccad, only through the drop-down dialog you mention.

Lar

#8
I changed the macro so that it tells you the current default value and asks if you want to change it. If you enter a non-standard value dcad will automatically adjust it down to the next standard and the macro will inform you of this.

Too bad the default reverts back to 0.25mm upon opening. Makes the function almost useless. My new personal default is now zero (remember I had 0.40 before I fully understood the function). Good thing is anything less than 0.30 looks like zero to me.

Quote from: prl on September 17, 2012, 03:16:04 PM
Also so far you can't define a line as fixed line weight  "Default" with basiccad, only through the drop-down dialog you mention.
You can use the line style tool box to make 'default' the active fixed lineweight. Just remember to change it to something else when you're done.

Lar