2D Tools line weight
-
Hi,
2D Tools line weight, is there a way to select multipule lines and apply a new line weight to them with out selecting each one in turn, I have tried using match properties with no success.
John -
I assume you have clicked on the 2d Tools help button in the toolbar?
The following is an excerpt of Line Style:
"2D Line Style
The Model’s Line Style is initially set to 1.0+Continuous+Black - to change it right-click in empty space and a dialog will open - it asks for new settings. ..."But you are looking for multiple conversion in one click. Perhaps post in the 2d Tools thread. I am certain TIG will respond.
-
With the tool active right-click in open-space to get a dialog to set the line Style you want...
If you click on a line and release the mouse that line is Styled.
If you click but keep the mouse-button pressed down then any line you move the cursor over will be Styled - a bit like using the Eraser tool...To change Styled lines to another Style you Select them and use the right-click context-menu item to 'Edit 2d Line Style' - enter new values in the dialog and every Selected Styled line is re-Styled as desired...
-
THANK YOU Tig this is such a great tool. Time for a donation.
John -
Hey Tig, same programe new question,is there a way to edit the colors in the line weights i.e. alter the preset colors that are loaded with 2D Tools?
John
P.S. more of a shading kind of thing. -
If you open the file - probably in
C:\Program Files\Google\Google SketchUp 8\Plugins\2DTools\
called2DlinestyleTool.rb
- open it in a plain-text editor like Notepad/Notepad++ [NOT a wordprocessor] - it is quite readable...
You can edit it and save [if you are at all unsure keep a good copy outside of the Plugins folder so you can revert if you mess up!].
The colors that are listed in the dialogs are set on lines #162 et al and #1871 et al [it occurs twice in the tool AND edit dialogs' coding]
materials=model.materials colors=[]; materials.each{|m|colors.push(m.display_name)} colors=colors+(Sketchup::Color.names.sort!) colors.uniq!; colors=colors.join("|")
What this does is compile a list of all current materials available in the model and it then appends a sorted list of all available 'standard colors'; it then ensures there are no duplicates and finally it joins them into a single string in the format "Mat1|Mat2|Mat3|..." - where the '|' is used to separate the drop-down list items.
But let's say you wanted only a limited color-palette... you can leave the above code intact, but then simply add some code immediately after to change it thus:
colors='Red|Green|Blue|Black'
Now you only have those 4 colors listed...The only limitation here is you must have a color called 'Black' as that's the default and changing that is in excess of this simple tweak...
If you simply want to use a textured material then make it or load it, and it will then be listed at the start of the list of available colors for use.
Tip: as explained in the Help file, if you have the long list of possible colors then some colors won't be shown as they are off the bottom of the screen, so to speak... So to find 'White' which is near the end of the list you just click in the dialog's material-list pane and press the 'W' key, the list then jumps to 'Wheat' - as this is the first color starting with 'W' - you can then use the up/down arrow-keys to select 'White' - remember, don't try to 'expand' the list again because it will jump back to the current default color, you must just use the arrow keys to change the highlighted color shown in the pane to be the next one or previous one...
Similarly if you want to change available 'line widths' you could edit/redefine the equivalent lines of code [remember they occur twice for the two types of dialog]... e.g.
widths=["0.05|0.1|0.2|0.25|0.5|0.75|1.0|1.5|2.0|3.0|4.0|5.0|6.0|8.0|9.0|10|12|18|20|24|25|36|48|50|60|72|75|84|96|100|108|120|132|144"]
could be made as
widths=["1|2|3|4|6|9|12|18"]
so for a '/" SKP the available widths are then limited to only those eight 'inch' widths...BUT don't alter the 'styles' list except to remove one as the exact name is critical to the processing later - you can devise 'custom styles' anyway...
-
Thanks Tig, thats a very comprehensive answer covered all I could think of and a lot more. I see that your from the north of England, I'm from the midlands and at 5:30pm 90f heat index of 104f I'm ready for fish and chips and a pint of mild ale. (just a dream), thanks again.
John
Advertisement