PHP Classes

D3 BTL: Get machine project from BTL file into a database

Recommend this page to a friend!
  Info   View files Documentation   View files View files (23)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 28 All time: 11,037 This week: 200Up
Version License PHP version Categories
d3btl 1.0Freeware5PHP 5, Files and Folders, Design Patt..., H..., P...
Description 

Author

This package can process BTL files get machine projects into a database.

It provides a controller class that can call model classes to parse a BTL file with the details of a machine project.

The model classes extract the machine project detail values and insert them into a database as machine part objects.

Innovation Award
PHP Programming Innovation award nominee
December 2021
Number 5
BTL is a file format that applications can use to save the definitions of the parts of a machine physical project.

This package can import the definitions of a machine into records of database tables. This way, applications can perform other functional operations on those machine projects.

Manuel Lemos
Picture of Uldis Nelsons
Name: Uldis Nelsons <contact>
Classes: 18 packages by
Country: Latvia Latvia
Age: 54
All time rank: 19806 in Latvia Latvia
Week rank: 364 Up2 in Latvia Latvia Up
Innovation award
Innovation award
Nominee: 12x

Winner: 2x

Documentation

d3btl"

Features

Reads BTL files created by design2machine interface

https://design2machine.com/btl/btl_v106.pdf

Installation

The preferred way to install this extension is through composer.

Either run

$ composer require d3yii2/d3btl "*"

or add

"d3yii2/d3btl": "*"

to the require section of your composer.json file.

add to migration path


'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
                    '@d3yii2/d3btl/migrations',
]

Usage

command add, reads files and saves their data in database


php btl/process-file/add path/to/file

data structure


  Files folder image Files  
File Role Description
Files folder imagecomponents (2 files)
Files folder imagecontrollers (1 file)
Files folder imagedoc (3 files)
Files folder imagegii (2 files)
Files folder imagemessages (1 directory)
Files folder imagemigrations (4 files)
Files folder imagemodels (4 files, 1 directory)
Accessible without login Plain text file composer.json Data Auxiliary data
Plain text file Module.php Class Class source
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  components  
File Role Description
  Plain text file BTLFileParser.php Class Class source
  Plain text file BTLFilePart.php Class Class source

  Files folder image Files  /  controllers  
File Role Description
  Plain text file ProcessFileController.php Class Class source

  Files folder image Files  /  doc  
File Role Description
  Accessible without login Image file db.png Icon Icon image
  Accessible without login Plain text file db.schemaxml Data Auxiliary data
  Accessible without login Image file img.png Icon Icon image

  Files folder image Files  /  gii  
File Role Description
  Accessible without login Plain text file btl_partGiiantModel.json Data Auxiliary data
  Accessible without login Plain text file btl_processGiiantModel.json Data Auxiliary data

  Files folder image Files  /  messages  
File Role Description
Files folder imagelv (1 file)

  Files folder image Files  /  messages  /  lv  
File Role Description
  Accessible without login Plain text file d3btl.php Aux. Auxiliary script

  Files folder image Files  /  migrations  
File Role Description
  Plain text file m211206_133208_d3y..._initial_tables.php Class Class source
  Plain text file m211222_171446_d3y...file_name_field.php Class Class source
  Plain text file m211223_165802_d3y...btl_btl_process.php Class Class source
  Plain text file m211227_144836_d3y...signation_field.php Class Class source

  Files folder image Files  /  models  
File Role Description
Files folder imagebase (3 files)
  Plain text file BtlFileData.php Class Class source
  Plain text file BtlPart.php Class Class source
  Plain text file BtlProcess.php Class Class source
  Plain text file ProcessLap4_030.php Class Class source

  Files folder image Files  /  models  /  base  
File Role Description
  Plain text file BtlFileData.php Class Class source
  Plain text file BtlPart.php Class Class source
  Plain text file BtlProcess.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:28
This week:0
All time:11,037
This week:200Up