[Plugin] Dimension management tools

[Plugin] Dimension management tools

Postby slbaumgartner » Sat Jan 14, 2012 2:10 am

The two tools in this file facilitate the workflow recommended by many SketchUp experts: Begin by drawing the complete model without dimensions or annotations. Place all primitive entities on Layer0 and move Groups and Components to other layers when necessary to control visibility. When the model is complete, create scenes/pages with the model oriented so that critical features can be dimensioned visibly and draw dimensions, text, and angular dimensions again all on Layer0. Finally,move the dimension entities to a layer specific to the scene(s) on which they can be displayed legibly and without being clutter.

The first tool, "Select all Dimensions" activates the Select tool, clears it, and adds all currently visible linear dimensions, Texts, and Groups with names matching "Angular Dimension" to the selection. This prepares you to manipulate all the dimensions in bulk, e.g. to assign a font or layer.

The second tool, "Dimensions to Layer", prompts the user to select an existing layer or create a new layer. If a new layer is requested, it is made hidden on all scenes except the current one. All currently visible linear dimensions, Texts, and Groups with names matching "Angular Dimension" are moved to the selected layer.
3

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [plugin] Dimension management tools

Postby boilingsnow » Sun Jan 15, 2012 11:34 pm

slbaumgartner wrote:The two tools in this file facilitate the workflow recommended by many SketchUp experts: Begin by drawing the complete model without dimensions or annotations. Place all primitive entities on Layer0 and move Groups and Components to other layers when necessary to control visibility. When the model is complete, create scenes/pages with the model oriented so that critical features can be dimensioned visibly and draw dimensions, text, and angular dimensions again all on Layer0. Finally,move the dimension entities to a layer specific to the scene(s) on which they can be displayed legibly and without being clutter.

The first tool, "Select all Dimensions" activates the Select tool, clears it, and adds all currently visible linear dimensions, Texts, and Groups with names matching "Angular Dimension" to the selection. This prepares you to manipulate all the dimensions in bulk, e.g. to assign a font or layer.

The second tool, "Dimensions to Layer", prompts the user to select an existing layer or create a new layer. If a new layer is requested, it is made hidden on all scenes except the current one. All currently visible linear dimensions, Texts, and Groups with names matching "Angular Dimension" are moved to the selected layer.

Thank you.
It's a good timesaver when someone works with a lot of dimensions in the model.
0

boilingsnow 
 

Re: [plugin] Dimension management tools

Postby chri » Sun Mar 17, 2013 1:36 am

magnificent work
for the workflow in LAYOUT

If we add the the next plugins, it's became wonderful to allow a very quick update views of all scenes in openoffice

Add Named Scene / mirale999
viewtopic.php?t=41787
SceneExporter / rick wilson
viewtopic.php?t=11173


Chri
:thumb: :thumb: :thumb:
0
User avatar
chri 
 

Re: [Plugin] Dimension management tools

Postby chri » Tue May 21, 2013 12:59 pm

hi

Please take a look on the next picture to make a manual update in openoffice .

bye
Chri
0
User avatar
chri 
 

Re: [Plugin] Dimension management tools

Postby irwanwr » Sat Oct 05, 2013 9:56 pm

Thank you very very much :)
0
User avatar
irwanwr 
 

Re: [Plugin] Dimension management tools

Postby Fromatron » Mon Oct 14, 2013 10:28 pm

Thought that this would also alter the geometery (doesn't...right?). However, I am extremely glad that I stumbled upon this, it's insanely useful. Never thought i would need it until I got it.

I have to confess that I've never actually understood the layers bit in SU. Thanks to this plugin I do now; way cool!
0

Fromatron 
 

Re: [Plugin] Dimension management tools

Postby gnlmrc60b22f205v » Mon Dec 30, 2013 1:35 pm

Very useful plugin, would be perfect if the tool "Dimensions to Layer", creating a new layer, write on the "Name for the New Layer" window a default name, for example "DIM-TEXT", so, if I wont I can change it, but I don't have to write it every time.
Please, can you take me the rb file text modification to obtain this?

Thank you very much anyway for the plugin.
0

gnlmrc60b22f205v 
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Mon Dec 30, 2013 2:27 pm

gnlmrc60b22f205v wrote:Very useful plugin, would be perfect if the tool "Dimensions to Layer", creating a new layer, write on the "Name for the New Layer" window a default name, for example "DIM-TEXT", so, if I wont I can change it, but I don't have to write it every time.
Please, can you take me the rb file text modification to obtain this?

Thank you very much anyway for the plugin.


You are welcome!

To make the change you describe, you need to modify line 147 of the Ruby to be

Code: Select all
      new_layer_name_arr = UI.inputbox ["Name for New Layer"], ["DIM-TEXT"]


That is, add the part ',["DIM-TEXT"]' to the end of the existing line. That makes "DIM_TEXT" the default value for the input.

Steve
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby rombout » Mon Jul 13, 2015 2:12 am

It doesnt seem to work properly if you use dimensions within groups and components. I selects only the dimension in the 'main' model. What workflow should i use to make dimensions inside groups and components
0
User avatar
rombout 
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Mon Jul 13, 2015 2:17 am

As written, the plugin does not search for dimensions inside groups or components.

The main justification is that when a dimension is nested inside a group or component it, like other nested geometry, should be left on layer0. Putting nested entities onto other layers can lead to confusing conflicts between the visibility of the layer of the nested entity and the visibility of the layer of the container. So, my plugin isn't really suited or necessary in a workflow that nests dimensions inside groups or components. Make the group or component's layer not visible, and its contents will disappear with it.

But, in addition, it is not necessary to nest dimensions inside a group or component to make them work. SketchUp dimensions will associate with entities inside a group or component without themselves being in that group or component. Used that way, my plugin lets you put all the dimensions of a particular scene onto their own layer, which is hidden on all except that scene. You can make the dimensions of multiple entities not visible without having to put all those entities onto the same layer themselves.

All that aside, if there is enough demand to support a different workflow I would consider reworking the plugin.
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby JClements » Thu Jul 16, 2015 4:18 pm

Sometimes, workflow could involve modeling different parts as separate models then inserting them or copying-and-pasting them into a new file. In this situation if the separate models have dimensions then the dimensions would become nested. I would think this not to be an uncommon practice, particularly when more than one person is contributing geometry to a project.

I think a checkbox option to act on all nested dimensions inside a component or group or, if not in a nested element, the entire model would be a good thing.
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Thu Jul 16, 2015 4:23 pm

John,

I see your point. Let me ponder a while how best to deal with it!

Thanks
Steve
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Thu Jul 16, 2015 7:13 pm

Some followup questions about the desired functionality:

Since the dimensions are nested inside a component as a side-effect of importing the submodel, should they be exported back to the model context as well as placed on a layer? Couldn't you just explode the new component since it wasn't really that way in the submodel (or was it)? I'm worrying about the classic confusion over nested contents on layers other than layer0.
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby JClements » Thu Jul 16, 2015 7:51 pm

My first impulse is to manage the dimensions just via layer manager that way if you export the component or cut and paste, the layer goes with it.

Placing the dimension outside of their context could result in all sort of unwanted issues.
0
John
Illustrator
Beaverton, Oregon
User avatar
JClements 
Premium Member
Premium Member
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Thu Jul 16, 2015 9:38 pm

Please give the attached a try and see if (a) it does what you need, and (b) there are bugs.

Thanks
Steve
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby chrisik » Tue Aug 11, 2015 12:07 pm

Thank you very much for this plugin, I use it very often.
Is it possible to set the current scene name automatically as the default layer name when you create a new layser? Which modifications to the rb file have to be made?
0

chrisik 
Premium Member
Premium Member
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Tue Aug 11, 2015 1:54 pm

Give the following a try and let me know if there are problems. This version combines the nested logic requested previously with this change to the default new layer naming. To avoid confusion, it appends " dims" to the name of the current scene. If there are no scenes or the current scene is not named, it will revert to the previous default of "DIM_TEXT".

One issue I know about is that the UI.inputbox may truncate the strings it displays - they are correct but the dialog doesn't expand to show them. This is a known bug in inputbox that I can't fix except with a rewrite to use a different input technique.

[edit] The rbz I uploaded earlier was somehow damaged. Please use the one in my later post.
0
Last edited by slbaumgartner on Tue Aug 11, 2015 7:37 pm, edited 1 time in total.

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby chrisik » Tue Aug 11, 2015 7:16 pm

Sorry but i can't install the plugin. After i select "install extension..." in the system preferences menu and select the plugin, a window pops up: "Unable to install this Extension. Sketchup was unable to install the Extension you have chosen for some unknown reason. Consult your Extension's documentation for additional help." ?
0

chrisik 
Premium Member
Premium Member
 

Re: [Plugin] Dimension management tools

Postby TIG » Tue Aug 11, 2015 7:28 pm

chrisik wrote:Sorry but i can't install the plugin. After i select "install extension..." in the system preferences menu and select the plugin, a window pops up: "Unable to install this Extension. Sketchup was unable to install the Extension you have chosen for some unknown reason. Consult your Extension's documentation for additional help." ?
Which version of the RBZ are you trying to install ?
The one one post ago ??
Or another ???

For me that RBZ downloads fine, and installs, and it works... :?
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Tue Aug 11, 2015 7:30 pm

I may have botched the zip! Will look into it and get back shortly. Sorry about that...
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby slbaumgartner » Tue Aug 11, 2015 7:34 pm

Not sure what I did wrong before, but this new one works on my system:
0

slbaumgartner 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Dimension management tools

Postby chrisik » Tue Aug 11, 2015 7:59 pm

ok. it works. While installing the windows "Unable to install this Extension..." still pops up but the plugin works anyway. Many thanks for your changes.
0

chrisik 
Premium Member
Premium Member
 

Re: [Plugin] Dimension management tools

Postby tinttable » Sat Oct 03, 2015 11:40 am

I have downloaded your plugin for handling dimensions and it works beautifully. Its Exactly what I needed. Thank you very, very much!
0

tinttable 
Premium Member
Premium Member
 

Re: [Plugin] Dimension management tools

Postby tdoolittle » Thu Jan 07, 2016 1:27 am

How do I remove this extension from Sketchup2016?
0

tdoolittle 
 

Re: [Plugin] Dimension management tools

Postby TIG » Thu Jan 07, 2016 4:01 pm

tdoolittle wrote:How do I remove this extension from Sketchup2016?
Since it's a simple Plugin [rather than an Extension which would also have its own subfolder], you can simply find its RB file 'dimension_utilities.rb' and delete it.
Look in your Plugins folder...
This one-liner copy+pasted into the Ruby Console +<enter> will open your Plugins folder for you [it is in a folder-path that is hidden by default]:
UI.openURL("file:///#{Sketchup.find_support_file('Plugins')}")
Alternatively if you have the SketchUcation Toolset installed you can use its Plugins-Manager dialog to Disable any listed plugin-file that is being Loaded/Enabled - when SketchUp restarts it won't load, but you could always reinstate it if you so desired, OR in the same toolset - use its submenu item to 'Uninstall' that plugin in which case, thereafter it won't load or even appear in any of its Manager dialogs, but it could still be Reinstalled later, if desired - by using the same dialog...
0
TIG
User avatar
TIG 
Global Moderator
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: delysa, moh8kazem and 12 guests

Visit our sponsors: