Libreria BricsCAD (Standard Parts)
BricsCAD have a 3D mechanics library wide enough called “Standard Parts”. TOP intercept the BricsCAD mechanics library to create automatically the part related to the mechanics components.
For each component it shows an approximate preview and the possibility to define the dimensions.
The components are inserted as standard blocks with the addition of a series of BricsCAD custom information.
TOPX permits to automatically create the parts from the BricsCAD library. For each component inserted TOPX create a “wrapper” part that contain the block and sets its biographical data.
BricsCAD define the components of the library with these camps:
- CATEGORY (the tree node)
- TYPE (textual valour)
- SIZE (textual valour)
- LENGTH (numeric valour)
The block's name is made queueing up the last 3 camps with a little "x" as splitter. To note that the length camp is set only if it's different from zero.
Composition of the biographical part
The part name is composed with the same standard. In the same way is calculated the code that has the only purpose to make univocal the component. The length attribute is compilated only if different from zero.
Customization
To permit clients to customize part name and code it's been exposed a lua event “TopxOnHardwareInsert” that's called just before setting the features. At this attribute is passed the part and a table with the following informations:
Campo |
Description |
PrtName |
The part name calculated by the programme |
PrtCode |
The part code calculated by the programme |
Size |
The Size valor read by the BricsCAD component |
Length |
The Length valor read by the BricsCAD component |
LibraryType |
The component type |
Category |
The component category. For now always empty |
Unit of measure
Unfortunately, it seems there is an incongruity between the unit of measure of each one of the components families relative to the length valour. While internally the valour is always in inches, the input valour is sometimes taken in mm and other times in inches and this make difficult to define the correct valour of the camp. The created 3D model is always right.