[Plugin] Lines2Components v1.2

[Plugin] Lines2Components v1.2

Postby TIG » Sun May 22, 2011 1:36 pm

I wrote a snippet for someone a while ago.
To tidy up the Plugins Index here it is again.
I have relinked the original posts back to here too...
Here's the original thread http://forums.sketchucation.com/viewtop ... 59#p147559

It turns Selected Lines into Instances of a Selected Component...

    Usage:
    Put this file into 'Plugins' folder.
    Open a Model.
    Place Components and Lines...
    Select an Instance of the required Component, and
    at least one Line (Edge)***.
    Pick 'Lines2Components' from the 'Plugins' Menu.
    If the Selection doesn't contain Edges or an Instance
    an error dialog tells you...
    You are prompted for the 'Scaling': None/Z/XYZ.
    ***The Z-height (blue) of each Line relative to the Z-
    height of the required Component sets the 'Scaling'.
    One by one the Lines are turned into Instances of the
    required Component, Scaled to suit.
    Any Scaling is about the Instance's insertion point.
    The Instance's insertion point is taken to be the lower
    of the Line's ends.
    Unless the scaling is set to 'None' 'flat' Lines
    (equal Zs) are not used, then the insertion point is
    the Line's 'start'...
Lines2Components.rb
0
TIG
User avatar
TIG 
Global Moderator
 

Re: [Plugin] Lines2Components v1.2

Postby pilou » Sun May 22, 2011 3:06 pm

Missing the first :oops:
But maybe was not on board at this date :mrgreen:

You are untiring! :fro:
0
Frenchy Pilou
Is beautiful that please without concept!
Speedy Galerie
User avatar
pilou 
Top SketchUcator
 

Re: [Plugin] Lines2Components v1.2

Postby boilingsnow » Fri Jan 06, 2012 7:30 pm

Hi,TIG
I discovered this plugin of yours today and think it's very useful for some circumstances.
Now this tool can only turn vertical lines into components. Don't you think it would be more powerful if it can also change nonvertical lines (For example,the blue axes of the component along the lines) into components?
0

boilingsnow 
 

Re: [Plugin] Lines2Components v1.2

Postby Arty2 » Tue Oct 02, 2012 1:57 pm

I was wondering, could this plugin be converted easily to take the length of a line then rotate and scale a component (along its z axis as boilingsnow noted) appropriately to it?
0
User avatar
Arty2 
PluginStore Author
PluginStore Author
 

Re: [Plugin] Lines2Components v1.2

Postby vandero » Thu Jul 18, 2013 3:56 am

this kind of plugin is workfull.
0

vandero 
 

Re: [Plugin] Lines2Components v1.2

Postby chialiang168 » Mon May 18, 2015 5:46 am

TIG:
我來自台灣,姓名:星野傳說
我不懂英文
這是用google翻譯
我利用Lines2Components V1.2改編
發此源碼與大家分享

I'm from Taiwan, name: Hoshino legend
I do not know English
This is a google translation
I use Lines2Components V1.2 adaptation
Send this source to share with you



插件演示(Plug-in demo):
2
User avatar
chialiang168 
 

SketchUcation One-Liner Adverts

by Ad Machine » 5 minutes ago



Ad Machine 
Robot
 



 

Return to Plugins

Who is online

Users browsing this forum: No registered users and 26 guests

Visit our sponsors: