Customized Holes via Vitesse Overview
- Last UpdatedNov 27, 2023
- 2 minute read
Traditionally there have been two options to create holes in Hull. By use of the inbuilt hole standards (parameter controlled) or to use any closed curve as hole. A facility has been developed that allows the customer to set up his own parameter controlled hole standard to be used in principle the same way as the built-in standard. From a user's point of view such holes are defined in exactly the same way as the standard holes, that means, by a hole type (name) followed by a number of parameters separated by asterisks.
The option to develop a customer specific hole standard is implemented by means of the Python language. On top Hull has a "hole hook" with the fixed name _TBhookCustHole. This may branch into several sub-scripts for different hole types. How this is organized is up to the customer to decide. The customer developed holes are handled by the user interface in the same way as the in-built standard holes, using the drawing _ _SBH_HOLE_MENU_ _ to create the user dialog.
A picture, organized as a view of its own and named as the added hole type, must be added to this drawing. Further details can be found in Setup and customization / customizing Dialog Hull.
A Vitesse script is delivered in the release , _TBhookCustHole, with two example holes that have the format FH<par1>*<par2> and HOS<par1>*<par2>*<par3>*<par4> (suitable values for test are FH150*30 and HOS600*400*50*25).
Additional holes can be implemented by expanding this script (or invoking sub-scripts from it). The name of the script is fixed and it must be placed in the directory indicated by the global variable PYTHONPATH.