• Which the release of FS2020 we see an explosition of activity on the forun and of course we are very happy to see this. But having all questions about FS2020 in one forum becomes a bit messy. So therefore we would like to ask you all to use the following guidelines when posting your questions:

    • Tag FS2020 specific questions with the MSFS2020 tag.
    • Questions about making 3D assets can be posted in the 3D asset design forum. Either post them in the subforum of the modelling tool you use or in the general forum if they are general.
    • Questions about aircraft design can be posted in the Aircraft design forum
    • Questions about airport design can be posted in the FS2020 airport design forum. Once airport development tools have been updated for FS2020 you can post tool speciifc questions in the subforums of those tools as well of course.
    • Questions about terrain design can be posted in the FS2020 terrain design forum.
    • Questions about SimConnect can be posted in the SimConnect forum.

    Any other question that is not specific to an aspect of development or tool can be posted in the General chat forum.

    By following these guidelines we make sure that the forums remain easy to read for everybody and also that the right people can find your post to answer it.

One click hangar

I just downloaded this plugin and am eager to try, but I have an issue. I placed the rb file in the plugins folder, as well as the TextureFiles folder. WHen I open Sketchup and click the Plugins tab in the menu bar, OneClick Hangar isn't there.

Todd

http://help.sketchup.com/en/article/38583

Try that. I think its probably your UAC or you need to 'install' from the ruby script.

The script shouldn't need any installation. You should only need to copy the files to the plugins folder in SketchUp. Is this for Windows or Mac?
As long as you have the hangar.rb file in the plugins folder it should appear on the next startup of SketchUp.
 
Then run sketchup as administrator, its the UAC interfering.
Or it needs activated in the extensions option.
 
Hello Charlie,...

I was wondering for those that are just reading your thread (Not I) or are new to FSdeveloper Site on your hanger plugin for SketchUp,... is it possible to have a singular place to get the full plugin,... not having to search and locate any new or development releases?
 
The script shouldn't need any installation. You should only need to copy the files to the plugins folder in SketchUp. Is this for Windows or Mac?
As long as you have the hangar.rb file in the plugins folder it should appear on the next startup of SketchUp.

I'm using Windows 7, and Sketchup 2013, and am running as admin. Restrting Sketchup after manually placing in folder doesn't work. I'll try the method that was linked. What is thd proper way to install manually (all zip files, that is)?

Todd
 
Hello Charlie,...

I was wondering for those that are just reading your thread (Not I) or are new to FSdeveloper Site on your hanger plugin for SketchUp,... is it possible to have a singular place to get the full plugin,... not having to search and locate any new or development releases?

Hi Doug, the latest release is always in the first post of the thread. In future I'll put any development releases in the first post of the thread as well. At some point there will be a website for the plugin too.
 
I'm using Windows 7, and Sketchup 2013, and am running as admin. Restrting Sketchup after manually placing in folder doesn't work. I'll try the method that was linked. What is thd proper way to install manually (all zip files, that is)?

Todd

Hi Todd,

The proper way to install the plugin is to unzip all files to the plugin directory (on my laptop it is C:\Program Files (x86)\SketchUp\SketchUp 2013\Plugins), keeping the folder structure within the zip files, e.g. texture files going to TextureFiles and the help files going HangarForms.

I haven't tried to installing it by renaming the zip file to .rbz, please let me know if it helps.
 
I haven't tried to installing it by renaming the zip file to .rbz, please let me know if it helps.

The proper method, per Sketchup, is to use the extension button to install the scripts, but its not the only method and usually not the preferred method. I usually drag and drop into the plugin directory as the author has indicated, but I have seen this not work if you do not run as admin or not use the extension installer. The extension installer is essentially just a zip compiler to my knowledge so IDK.

(My original post mentioned .rbz not being a compressed format. I was mistaken, it is. I got file extensions confused)
 
Last edited:
OK, I installed the extension successfully and I am able to select Create Hangar from plugins menu. However, when I try to make a hangar nothing happens. I draw a line on the front and left edges of my image (for double-nested hangar row), enter the parameters, select the textures and click OK. Nothing happens. No hangar??

Todd
 
OK, I installed the extension successfully and I am able to select Create Hangar from plugins menu. However, when I try to make a hangar nothing happens. I draw a line on the front and left edges of my image (for double-nested hangar row), enter the parameters, select the textures and click OK. Nothing happens. No hangar??

Todd

Hi Todd, what happens when you try to draw a hangar without drawing lines, and just accept the default values? Could you upload a skp file with just the two lines drawn, so I could try to replicate the issue?
 
Hi Todd, what happens when you try to draw a hangar without drawing lines, and just accept the default values? Could you upload a skp file with just the two lines drawn, so I could try to replicate the issue?

Discovered my issue. I have both Sketchup 2013 and 2008 installed. My Texture Files were in Sketchup 8 Plugins folder, not in the Sketchup 2013 plugins. Moved the texture files over and everything works.....kind of. I am drawing a line along the front and left edges of a T-hangar row in my airport image that was created with Sketchup. Then I select both lines as stated in the manual. I then open my Create Hangar plugin, enter my values, confirm the coordinate boxes are filled in, and select 'OK.' The hangar is created but upside down and nowhere close to where my lines are drawn.

Todd
 
Discovered my issue. I have both Sketchup 2013 and 2008 installed. My Texture Files were in Sketchup 8 Plugins folder, not in the Sketchup 2013 plugins. Moved the texture files over and everything works.....kind of. I am drawing a line along the front and left edges of a T-hangar row in my airport image that was created with Sketchup. Then I select both lines as stated in the manual. I then open my Create Hangar plugin, enter my values, confirm the coordinate boxes are filled in, and select 'OK.' The hangar is created but upside down and nowhere close to where my lines are drawn.

Todd

I know the placement issue was present in earlier versions of One Click Hangar due to errors in how it calculated which line was the front and which was the left hand side, however, this should have been resolved a long time ago.

I have not seen it draw a hangar upside down before.

Could you send me or post a save of the skp file with the lines drawn, so I can investigate it, as I've not been able to replicate it.
 
Morten,

The mystery of the misplaced upside down hangar is solved. I discovered you cannot move the axis tool. I was aligning the axis tool along the edge of the hangar I wanted to create before drawing the lines. If I leave the axis tool alone, hangars are drawn and positioned correctly. I don't remember seeing that detail in the manual but I could have overlooked it. When looking at the pictures in your manual I discovered that you didn't reposition your axis tool which made me try it. Problem solved.

This plugin is awesome, by the way. I have a couple of requests that are probably easier said than done (I'm no programmer):

- Any way to change the color of the hangar textures? I have one Row T-hangar that has alternating blue and white doors, for example. Another airport has one that is yellow with a green roof.

- Could you add the ability to add windows and doors to hangar extensions? Many extensions are offices, FBO's, etc

- Is there a way to create a row of individual T-hangars? A lot of GA airports have clusters of individual T-hangars rather than row hangars.

I know these are tall requests, so no worries if your answer is a big No!

Lastly, I see you are working on a One Click Tower feature. How is that coming? That is a cool idea, by the way!

This a great tool you've created, Morten. Thank you!

Todd
 
Morten,

The mystery of the misplaced upside down hangar is solved. I discovered you cannot move the axis tool. I was aligning the axis tool along the edge of the hangar I wanted to create before drawing the lines. If I leave the axis tool alone, hangars are drawn and positioned correctly. I don't remember seeing that detail in the manual but I could have overlooked it. When looking at the pictures in your manual I discovered that you didn't reposition your axis tool which made me try it. Problem solved.

This plugin is awesome, by the way. I have a couple of requests that are probably easier said than done (I'm no programmer):

- Any way to change the color of the hangar textures? I have one Row T-hangar that has alternating blue and white doors, for example. Another airport has one that is yellow with a green roof.

- Could you add the ability to add windows and doors to hangar extensions? Many extensions are offices, FBO's, etc

- Is there a way to create a row of individual T-hangars? A lot of GA airports have clusters of individual T-hangars rather than row hangars.

I know these are tall requests, so no worries if your answer is a big No!

Lastly, I see you are working on a One Click Tower feature. How is that coming? That is a cool idea, by the way!

This a great tool you've created, Morten. Thank you!

Todd

Ah, you're right, there aren't any mentions regarding moving the axis in the manual, and the fact it does alter the orientation of the hangars is not great news to be honest. I'll see if I can prevent this from happening.

- Alternating door colours is a great idea, and I'll try to add it soon. With regards to the green/yellow hangar, do you mean part of the roof is green and part is yellow or yellow walls and a green roof? It is currently possible to add your own textures by adding the filenames to textures.och. One of the features I'm working on is the possibility to use UV mapping, so you can assign a part of a texture map to the a specific part of the hangars. This is only available on the standard and arched hangars at the moment, but I'm intending to introduce it to all hangar types.

- Windows and doors is available as part of the extensions for the standard and arched hangars, however I will add it to the other hangar types as well.

- Single T-hangars are already included and should be the second option when selecting hangar type.

- I haven't done much work with the Tower feature to be honest, but hoping to develop it further.

The manual is really hopelessly outdated and desperately needs an overhaul, especially considering all the next extensions I've added to the tool.
 
Ah, you're right, there aren't any mentions regarding moving the axis in the manual, and the fact it does alter the orientation of the hangars is not great news to be honest. I'll see if I can prevent this from happening.

- Alternating door colours is a great idea, and I'll try to add it soon. With regards to the green/yellow hangar, do you mean part of the roof is green and part is yellow or yellow walls and a green roof?

No, the building is yellow, and the roof is green.

- Windows and doors is available as part of the extensions for the standard and arched hangars, however I will add it to the other hangar types as well.

- Single T-hangars are already included and should be the second option when selecting hangar type.

Right, but what if I have a row of T-hangars? Is there a way to tell your plugin to make a row of 5 individual T-hangars?

- I haven't done much work with the Tower feature to be honest, but hoping to develop it further.

I think it's an interesting idea.

The manual is really hopelessly outdated and desperately needs an overhaul, especially considering all the next extensions I've added to the tool.

Do you have instructions on how to add windows and doors to hangars or extensions? Do you have a picture of what that looks like? An updated manual would be great, because this tool is really nice, and I'd like to know how to tap into more of its abilities.


Todd
 
Do you have instructions on how to add windows and doors to hangars or extensions? Do you have a picture of what that looks like?

Doors: These are currently only available for standard and arched hangars, please see instructions below. If I remember correctly it is also possible to add a simple entrance door to the "standard" extensions, however it has not been documented properly, so I can't provide any syntax at present.

Bi-fold hangar doors will have a simple entrance door drawn in it, providing the hangar door is tall enough (more than 360 centimetres)

Entrance door extension. Syntax: ED(<horizontal position (from front or left side of hangar)>x<vertical position>;<width>x<height>;<wall>;<door type>;<texture name>) or ED(<horizontal position (from front or left side of hangar)>x<vertical position>;<width>x<height>;<wall>;<door type>;<texture name>;<glass texture name>). Door types are Plain, Glass or Half glass. Glass and Half glass types are currently only available for left and right hand side. If no glass texture has been defined for Glass/Half glass doors, the door will be drawn as a panelled door. Opacity for glass texture is fixed at 30%.

Examples:
ED(120x0;80x220;B;Plain;Silver metal)
ED(120x0;80x220;B;Half glass;Blue metal;Scratchy window)
ED(120x0;80x220;L;Half glass;Silver metal;Scratchy window)|ED(240x0;80x220;L;Glass;Silver metal;Scratchy window)|ED(640x0;80x220;L;Glass;Rusty metal)

Windows: These are also currently only available for standard and arched hangars, please see instructions below.

Syntax: W(<window side position (from front of hangar, or left side of hangar)>x<window bottom height>;<window width>x<window height>;<wall>;<texture name>;<opacity (0-100)>) or W(<window side position (from front of hangar, or left side of hangar)>x<window bottom height>;<window width>x<window height>;<wall>;<texture name>;<opacity (0-100)>;<number of windows>;<window gap>).
- Windows can be added to "normal" extensions. The syntax for the window extension attribute is exactly the same as for the window extension.

Windows stickers. You can now add "stickers" to windows. Syntax: W(<window side position (from front of hangar, or left side of hangar)>x<window bottom height>;<window width>x<window height>;<wall>;<sticker texture name>/<texture name>;<opacity (0-100)>) or W(<window side position (from front of hangar, or left side of hangar)>x<window bottom height>;<window width>x<window height>;<wall>;<sticker texture name>/<texture name>;<opacity (0-100)>;<number of windows>;<window gap>). Please note that the sticker texture will be rescaled to fit the window size, and the opacity for the sticker texture will be set to 100, whereas the opacity set in the extension is for the internal window texture. Stickers will therefore only work with image files which has transparency set.

Examples:
W(50x110;70x70;B;Scratchy window;30;2;500)|W(640x110;70x70;L;Scratchy window;30)
W(50x110;70x70;L;Red metal;30)|W(640x110;70x70;L;Red metal;30)
W(50x110;70x95;B;Scratchy window;0)|W(150x110;70x95;B;Scratchy window;10)|W(250x110;70x95;B;Scratchy window;20)|W(350x110;70x95;B;Scratchy window;30)|W(450x110;70x95;B;Scratchy window;40)|W(550x110;70x95;B;Scratchy window;50)|W(650x110;70x95;B;Scratchy window;60)|W(750x110;70x95;B;Scratchy window;70)|W(850x110;70x95;B;Scratchy window;80)|W(950x110;70x95;B;Scratchy window;90)|W(1050x110;70x95;B;Scratchy window;100)
W(350x110;70x95;T0;Scratchy window;30)
W(350x110;70x95;B;Scratchy window;30)
W(50x180;216x86;L;NLA/Scratchy window;30;16;15)|W(50x130;216x86;R;NLA/Scratchy window;30;16;15)|W(50x130;216x86;F;NLA/Scratchy window;30;16;15)|W(50x130;216x86;B;NLA/Scratchy window;30;16;15)

The last example shows how to add a "logo sticker" to windows (in this case a texture called NLA), however I cannot share the image file for it as I do not own the copyright for it.

Images:
http://fsdeveloper.com/forum/attachment.php?attachmentid=14201
http://fsdeveloper.com/forum/attachment.php?attachmentid=14084
http://fsdeveloper.com/forum/attachment.php?attachmentid=14162

An updated manual would be great, because this tool is really nice, and I'd like to know how to tap into more of its abilities.

I am in the process of updating the manual and will include an extensive tutorial of the use of extensions among other things.

No, the building is yellow, and the roof is green.

You can add your own textures to the textures.och file and then select them from the relevant texture dropdown list (you may have to restart SketchUp). See instructions from the new manual below.

To add your textures, use the following format: <Texture name>;<Texture size>;<Texture type>;<Texture file name>;
Texture name – This is how it will appear in the dropdown menu when selecting the texture.
Texture size – Set the size of the texture in centimetres. If the texture is square, you only need to add one value, however for non-square textures, you the format is <width>x<height>, e.g. 150x100.
Texture type – This allows you to set which dropdown menu the texture should appear in. Separate each type with a vertical bar, e.g. Wall|Roof. See below for the different menu options.
Texture filename – This must be the full filename of the texture file, e.g. bricks.jpg. Please note the file must reside in the TextureFiles folder.
Please note the line must end in a semicolon, otherwise the texture and all subsequent textures on the list may not be loaded.

Texture types
Wall – Textures for both external and internal walls.
Internal – Textures for internal walls only.
Roof – Textures for roofs and ceilings.
Door – Textures for doors.
Floor – Textures for floors.
Metal – Textures for metal like structures, such as beams.
Wood – Textures for wood like structures, such as wooden beams.
Extension – Textures for various extension features, such as logoed windows, signage and billboards.
All – Use this to allow texture to appear in all menus.

Right, but what if I have a row of T-hangars? Is there a way to tell your plugin to make a row of 5 individual T-hangars?

At present this is not possible, however it is a good idea, so I will add an option to create several identical hangars next to each other at a set distance.

I think it's an interesting idea.

Thank you, I shall look further into it and add more options to the towers, such as windows and antennae.

If you have any issues adding textures or creating the door/window extensions, or any other feedback and suggestions, please let me know. I do appreciate it.

Edit: Forgot to add the images of doors and windows.
 
Last edited:
Hello Charlie,...

I was wondering for those that are just reading your thread (Not I) or are new to FSdeveloper Site on your hanger plugin for SketchUp,... is it possible to have a singular place to get the full plugin,... not having to search and locate any new or development releases?


Hi Doug, please find the latest development version in the first post of this thread.

I am currently working on the follow features:
Code:
Task								Category	Sub category		Type	Progress
Prevent LH/RH extensions going below ground level.		Extensions	Extensions		Bugfix	In progress
Add entrance door.						Hangar doors	Hydraulic swing door	Task	In progress
Add more frame support.						Hangar doors	Hydraulic swing door	Task	In progress
Add hinges.							Hangar doors	Hydraulic swing door	Task	In progress
Add stepping plate for entrance door.				Hangar doors	Hydraulic swing door	Task	In progress
Allow placement for entrance door.				Hangar doors	Hydraulic swing door	Task	In progress
Add extensions.							Hangars		Detailed T-hangar	Task	In progress
Move all textures to textures.och				Features	Textures		Task	Done
Add roof windows						Hangars		Arched Hangar		Task	Done
Add roof cutout							Hangars		Arched Hangar		Task	In progress
Add side extensions						Hangars		Arched Hangar		Task	In progress
Prevent creation of support frame for hydraulic swing doors	Hangar doors	Detailed T-hangar	Bugfix	Done
 
Morten,

Out of curiosity, why are all measurements in centimeters rather than, say, meters? Also, for those of us in the States, how difficult would it be to include the option of using inches or feet?

Todd
 
Morten,

Out of curiosity, why are all measurements in centimeters rather than, say, meters? Also, for those of us in the States, how difficult would it be to include the option of using inches or feet?

Todd

When I first started creating the tool, all numbered values including measurements, were set to be integers rather than decimal/float, and because of this I had to select a small unit measurement. I went for centimetres mainly because I was using Simple Template - Meters as my default template in SketchUp.

All measurements have since been changed to be decimal, but the unit has stayed as centimetres to avoid having to change much of the code, although you got me thinking and and option to changing it to feet, inches, metres or millimetres, shouldn't be too difficult.

Having said that, to use feet and inches, you would need to select either feet or inches and write them out using decimal rather than fractions.

Getting the tool to convert imperial measurements e.g. 6' 7 5/16" to decimal wouldn't be too difficult in itself, but would require code change throughout the tool and could take a lot longer to get right.

EDIT: You can set units to be either millimetres, centimetres, metres, inches or feet, in the latest development version in the first post of this thread. Please download hangar dev.zip and unzip all three files to your plugins folder.
 
Last edited:
Getting the tool to convert imperial measurements e.g. 6' 7 5/16" to decimal wouldn't be too difficult in itself, but would require code change throughout the tool and could take a lot longer to get right.

The convertion method of the above has now been done, however it will take time to implement it.

A single number will be interpreted as feet, a single fraction as a fraction of an inch. You must leave a space between feet and inches.

Examples:
10 = 10'
1/2 = 1/2"
10 1/2 = 10 1/2"
10' 1/2 = 10' 1/2"
10 10 1/2 = 10' 10 1/2"
10 10 = 10' 10"
10'10" = 10'

Any feedback would be appreciated.
 
Morten, thanks for making feet and inches an option - that's great. I really appreciate you doing that.

I noticed something today with T-Hangars that you may have to change:



Notice the 2 blue beams in the center of the hangar. In real life a plane couldn't get in there! D'oh!

Another: How do I create a T-Hangar with closed doors?

Todd
 
Back
Top