Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

Hull and Outfitting

Connecting a Clip Macro to Hull

  • Last UpdatedDec 12, 2023
  • 1 minute read

In Hull Modelling a clip is referenced by a clip code. The clip code is connected to a specific macro in a setup file. The total file specification of the setup file should be assigned to the environment variable SBH_CLIPS_MACRO. The following example defines the layout of the setup file

Example:

1.clip-code
|
|      2. macro-name
|      |
|      |        3. no_of_profile_types type1 type2,
|      |        |
|      |        |  4. no_of_cutout_types,
|      |        |           | type1, type2,
|      |        |           |
101   'clip1a'  3 30 31 32  2 505 506
101   'clip1b'  3 30 31 32  2 507 508
101   'clip1c'  1 10        2 505 506
102   'clip2'   1 10        3 101 102 103
103   'clip3'   3 10 20 30  1 100

A setup file contains a number of lines, normally one for each clip macro. One line may have up to 500 characters. Each line contains the following information:

  1. The clip code.

  2. The name of the clip macro implementing this clip code.

  3. A group of numbers selecting for what profile types this clip macro is valid.

  4. A group of numbers selecting for what cutout types this clip macro is valid.

    From the example file it can be seen that clip code 102 is valid for flat bars (profile type 10) and for cutout types 101-103.

    The example also shows that the same clip code can be used more than once in the setup file. Clip type 101 is implemented with different macros depending on the profile type and the cutout type.

The hull utility inithull can be used to check if the file syntax is correct.

TitleResults for “How to create a CRG?”Also Available in