App‐components and galleries - HiStructClient/femcad-doc GitHub Wiki

app-component-space-settings

This is app component with basic settings and list of galleries available in particular components. Part of those settings are automatically loaded into components within initialTrigger. Galleries are from components read via this app-component.

Settings

There are two types of settings: features / defaults Those settings are realized via first two buttons. Some of those settings are visible for +Admin only

image

  • It is possible to define which models are available in components image

General json switches in this chapter enable to create specific settings without neccessity to create input items in construct for them. It is intended mainly for customizations.

  • It is possible to define which main navigation items are visible in component image

  • Available reports van be switched ON/OFF here image

Galleries

Galleries enable to read databases of materials or models from app-components. app-component-space-settings works as proxy redirecting requests for gallery items from component to particular gallery app-components.

There are several types of galleries: 2D / 1D / model / surface. Based on dimensions of items in those galleries. 2D galleries are mainly for sheeting items (panels, TR plates, ...). 1D galleries are for beam-lime materials (flashing, sections of secondary structure). Models galleries contain models or openings and surface galleries contains definition of colors or textures.

Each type of gallery is further split to set of predefined galleries by their intended usage. They are the referenced from source code used gallery specific identifier (parameter) which is used for reading of gallery items from app-component.

2D galleries:

  • roof (roofGallerySettings)
  • wall (wallGallerySettings)
  • slab (slabGallerySettings)
  • solid wall (solidWallGallerySettings)

1D galleries

  • flashing (flashingGallerySettings)
  • girts (girtsGallerySettings)
  • purlins (purlinsGallerySettings)

model galleries

  • openings (openingGallerySettings)
  • accessories (accessoryGallerySettings)

surface galleries

  • general (surfacesGeneralGallerySettings)
  • primary structure (surfacesPrimaryGallerySettings)
  • window (surfacesWindowGallerySettings)
  • door (surfacesDoorGallerySettings)

Besides those predefined galleries, it is possible to define own user galleries for each material type (2D, 1D, model, surface) and then ask for gallery items from those user galleries using functions (idx means index of the user gallery ):

  • gallerySettingsFn( idx ) - for 2D materials
  • gallery1DSettingsFn( idx )
  • modelGallerySettingsFn( idx )
  • surfaceGallerySettingsFn( idx )

Those user galleries are intended for specific customizations which can be sone outside of construct( Laumer, ShadeSystems). But it must be ensured that specific e.g. surfaceGallerySettingsFn(5) is available in app-component-space-settings used in the project space.

Setting up of galleries

At first it is necessary to create separate app-components with databases of materials for specific types of materials using those templates:

image

Steps for creation of material specific app-component are:

  • go to app-components managment page and create "custom app-component" - it will create coipy of app-component and register it for current project space
  • edit this newly created app-component

Alternative steps:

  • create component using one of above mentioned templates
  • edid newly created conmponent
  • register the component to the list of app-components

There can be separate tables (databases) of materials for each usage of material (roof / wall / solid wall) or they can be shared.

Those material specific app-components then needs to be registered in app-component-space-settings

image image

Once material app-components are registered in app-component-space-settings, they can be used as sources of tabes for particular galleries using "Add catagory" button. image

Then select specific table. The information are filed automatically. image

It is possible to add more catagories to one gallery image

image