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 |
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:
-
The clip code.
-
The name of the clip macro implementing this clip code.
-
A group of numbers selecting for what profile types this clip macro is valid.
-
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.