[Plugin] AreaTextTag
-
Thank you so much!
share the knowledge magnifies the world!
Happy new year! -
Can not correctly display units, display units to meters. I can not upload pictures, thank you! !
-
Unit shows that correct? ? I have a problem or operation! Thank you!
-
Unit shows that correct? ? I have a problem or operation! Thank you!
-
Guanjin
Because you have a Chinese OS I suspect that the character-mapping is preventing the 'm2' >>> 'm²' etc.
However, it might be that the font you chosen doesn't have a '²' character ??
Try using 'Arial' to see this - as that should have all needed characters...The code in the '
TIG-AreaTextTag.rb
' file inside the 'TIG-AreaTextTag'
subfolder can be adjusted to leave it as 'm2'. The dialogs use 'm2' etc BUT it then translates it into 'm²' for the text in the SKP...To edit the code, open that
TIG-AreaTextTag.rb
file using***Notepad.exe***
or a similar plain-text editor [NOT a wordprocessor]...On lines #352, #532, #799 AND #951 you'll see this text
atxtu=atxt+" "+(@units.tr("2","**²**"))
edit them to read
atxtu=atxt+" "+(@units.tr("2","**2**"))
Also just below on lines #355, #535, #802 AND #954 it reads
atxtu=atxt+" m²"
change them to
atxtu=atxt+" m**2**"
and just below on lines #357, #537, #804 AND #956 it reads
atxtu2=atxt2+" ft²"
change them to
atxtu2=atxt2+" ft**2**"
OR you can simply use 'find/replace' for the text '²' replacing it with '2'
Save and restart Sketchup, the areas should now report as 'm2' etc...
-
@tig said:
Guanjin
Because you have a Chinese OS I suspect that the character-mapping is preventing the 'm2' >>> 'm²' etc.
However, it might be that the font you chosen doesn't have a '²' character ??
Try using 'Arial' to see this - as that should have all needed characters...The code in the '
TIG-AreaTextTag.rb
' file inside the 'TIG-AreaTextTag'
subfolder can be adjusted to leave it as 'm2'. The dialogs use 'm2' etc BUT it then translates it into 'm²' for the text in the SKP...To edit the code, open that
TIG-AreaTextTag.rb
file using***Notepad.exe***
or a similar plain-text editor [NOT a wordprocessor]...On lines #352, #532, #799 AND #951 you'll see this text
atxtu=atxt+" "+(@units.tr("2","**²**"))
edit them to read
atxtu=atxt+" "+(@units.tr("2","**2**"))
Also just below on lines #355, #535, #802 AND #954 it reads
atxtu=atxt+" m²"
change them to
atxtu=atxt+" m**2**"
and just below on lines #357, #537, #804 AND #956 it reads
atxtu2=atxt2+" ft²"
change them to
atxtu2=atxt2+" ft**2**"
OR you could try to use 'find/replace' for the text '²', replacing it with '2'...
Save and restart Sketchup, the areas should now report as 'm2' etc...
Thank you for your reply, I went to give it a try! Thank you!
-
The first problem to solve, but the button 2 to select or m
Demo map
-
You must change the '²' in several places in the file... looks like you missed some of them... 'find' every '²' and make it into a '2'... it clearly works for the lines that you have adjusted successfully... One last try
-
@tig said:
You must change the '²' in several places in the file... looks like you missed some of them... 'find' every '²' and make it into a '2'... it clearly works for the lines that you have adjusted successfully... One last try
Problem solved, thank you again! Master
-
Hi TIG
I think this plugin could become very usefull for me
But I have some problems, but it might just be me that use it wrong.
My workflow would be, create some rectangles and add the tag e.g.:
office (30)\n<> where 30 is the size the client would like.But the problem is that the different rooms can't be grouped, so when they get close to one another the 'glue' together.
Could it be an idea that the tags glues to groups ?
Just an idea
some other future features could be:
import excel / csv files and automatic create the rooms
room_name room_size
office 20Scheme
Generate a scheme that calculates the actual room size vs the size client wishes.Thanks
I really admire the hard work you (and others) do to improve SU.ps. SU7 seems to crash when using this plugin.
-
Bo
You can group faces and still apply Tags.
You simply need to edit that group and then apply an AreaTextTag onto a face within that group: the only 'rule' is that the face and its Tag must be in the the same 'context' - i.e. active_entities set.
I have already written a commercial toolset for a US Space-Planning/Architects company which imports/exports data from/to XLS/XLSX files and creates/writes rooms to match... however, it's not publicly available - but it is quite do-able...
It should work OK in v7... what error messages do you get ? -
Hi TIG
Thanks for your reply.
Su7 crashes when I select "add.... to selected faces" SU quits and a splashscreen pops up.
I was not awere of the "inside the group" feature.
You write that You have made a 'pro' version. Do you consider releasing a commerciel Pro version ?
Thanks
-
Hi TIG,
When applying the plugin to a selection set, would it be possible to process softened meshes as single entities? Basically output the sum area of all sub faces in similar way to what sketchup contextual command does. It would be very useful as an option.
Many thanks -
@arqitect said:
Hi TIG,
When applying the plugin to a selection set, would it be possible to process softened meshes as single entities? Basically output the sum area of all sub faces in similar way to what Sketchup contextual command does. It would be very useful as an option.
Many thanks
It'd not be that easy to code in... I'll think about it... -
Here's v1.3 http://forums.sketchucation.com/viewtopic.php?p=373717#p373717
When the new additional current-setting - "Report 'Surface' Areas:" - is set to "Yes" then any Tag for a Face forming part of a 'Surface' [a mesh with soft edges] will report that Face's linked 'Surface' area, and not the area of just that Face itself: in any CSV report the area/perimeter of a Face's linked Surface will also be used, rather than the area/perimeter of that Face itself. -
Hi TIG
Would it be possible to add the "generate faces via excel / csv" ? Maybe as an comercial plugin?
Thanks
-
@jorgensen said:
Hi TIG, Would it be possible to add the "generate faces via excel / csv" ? Maybe as an commercial plugin? Thanks
My current toolset's code XLS>geom/geom>XLS toolset is subject to an NDA etc... BUT if you want to continue this discussion through PMs then I might be able to come up with something to suit you/others... -
Thanks TIG, great plugin again.
I don't use area but it could be useful for tagging surfaces with any text.
So would it be possible to include a first choice in the settings yes or no as to "Automatic area". Yes would leave it as is, No would only put the area if <> is not erased or added, but if <> is erased then only the text is used (not automatically including the area).If you want me to code it in there I probably can. (it's not as obvious as I thought when I first looked, but it could be a good exercise for me)
Thanks
-
Michaelv
I don't think you need to reinvent the wheel...
There is my 'old' 2dText which already lets you stick a piece of text onto any surface AND has far more control over its 'format' [height, color, etc], and it is fully 'editable' later, with a right-click Edit option... -
OK Thanks.
Indeed. I never realized 2D text was working like that as I usually only use the 2D tools in the top view.
Thanks for all.
Advertisement