Utility to Set extension line length for LayOut files

dimensions
layout
extensionlines
dimensioning

#1

Hi all,
I’ve been looking for a solution in LayOut to set a constant length for all the extension lines in all the dimensions, and then created my first utility for LayOut - in case you’d like to try, check at: www.fb.com/SUreUtils
Full version intended to sell at 5 EUR.
Utility: it works on a saved layout file and not inside LayOut:


#3

Thanks for the hint and facts. I’ve corrected the misspelling.
I think that at the moment there is no way to add a real extension to LayOut as you are used to have in SketchUp, that’s the reason for working upon the file…
You forgot to mention the professional design and marketing skills of the account owner :wink:

I haven’t intended to hurt any conventions with my utility, fb site or this topic. If you have suggestions how to make it better, please share.


#4

You should have given more details in your original post including that there is a cost involved.

Also one post about it is enough. Don’t spam the forum.


#5

Thanks - I’ve amended the original post.


#6

Hi!!

I would like to this extension but I don’t have a facebook account.


#7

Hi,
which version do you use?

BR

Andras

mrneene sketchup@discoursemail.com ezt írta (időpont: 2018. szept. 5., Sze, 11:21):


#8

Layout 2018


#9

Use the code below!

at line dimL= _____ enter the desired value

than copy the whole code into SketchUP RubyConsole (in Window menubar)

hit ENTER

select file

ready…

--------COPY FROM HERE---------

doc = Layout::Document.open(UI.openpanel(“SelectLayoutFile”,"","*.layout"))

pages = doc.pages

dimL = 0.1

pages.each { |page|

entities = page.entities

puts page.name

entities.each { |entity|

if entity.is_a?(Layout::LinearDimension)

puts "foundone"

pe1=entity.end_connection_point

pe2=entity.end_extent_point

p3=entity.end_offset_point

puts "beefore"

puts p3.distance(pe1)

entity.end_offset_length = pe1.distance(pe2) - dimL

puts "aafter"

p3=entity.end_offset_point

puts p3.distance(pe1)

pe1=entity.start_connection_point

pe2=entity.start_extent_point

entity.start_offset_length = pe1.distance(pe2) - dimL

end

}

}

----------------------COPY UNTIL HERE---------------

mrneene sketchup@discoursemail.com ezt írta (időpont: 2018. szept. 5., Sze, 13:44):


#11

I’m happy to have the VERY first soul-mate that needs this extension, and have given up earning money with this tool a long time ago…
(and think, that in many cases it is easier to adjust extension line length this way…)


#13

My problem was to make this:
image

look like this:
image

as far as I understand your proposal can’t solve this…
(It’s a european-style dimensioning…)


#14

There may be a missunderstanding. We are talking about the lines towards the model.


#16

long offset distance makes extension lines to the other side - so we do talk about the same - at least I thnik so


#17

Sorry, that was directed to DaveR.

I understand that I can set them manually, but how can I automate this proces, so that I don’t have to do it for every dimension? That’s what this all is about, since manually this process is too time consuming.
Or is there a way in Layout to do it and don’t I get the point here?


#19

@DaveR by inferencing, the dims won’t be attached to the model/shape, and you would have to be careful not to inference on a grid-vertice instead of a grid-horizontal line, not?

@molnar.a.hu does the extension keep the dims attached to model?


#20

The code only changes the offset distance of the dimensions --> they remain attached.

QUESTION:
How can I call “interferencing” to place extension line start points?
By default the linear dimensioning tool has only 3 steps:

  1. First point of dim. line
  2. Second point of dim. line
  3. place dim. line…

#21

Just like in SketchUp, inferencing is invoked by hovering over ‘points of interest’ with the cursor.
The three steps are actually ‘clicks’, there is a lot going on ‘under the hood’