Skip to main content

A package to load .ydb files created by YJK.

Project description

yjk-db-load

这是一个用于加载 YJK 软件中,以.ydb结尾的数据库文件的 Python 库,可以加载的文件包括 dtlmodel.ydb(基础建模数据库)和dsnModel.ydb(计算结果数据库)。

A python package to load .ydb files created by YJK, including dtlmodel.ydb (which contains the basic building information), and dsnModel.ydb (which conatins the calculate result of the model).

安装: Installation

最新发布的稳定版(包括其依赖)可以通过 PyPI 进行下载:

The latest stable release (and required dependencies) can be installed from PyPI:

pip install yjk-db-load

快速上手: Quick Start

你可以轻易地从.ydb文件中提取出你想要的数据:

You can eaily extract the data you want from .ydb files:

# 导入本模块
# import this lib
from YDBLoader import YDBLoader

# 定义你的.ydb文件路径
# define your .ydb file path
your_ydb_file = r"your_yjk_model/施工图/dtlmodel.ydb"

# 根据文件数据,创建model
# create model by data
model = YDBLoader(your_ydb_file)

# 通过内置的各种方法,获取你需要的数据
# get the data you want, by various built-in funcitons
columns = model.get_columns()
for col in columns:
    print(col.joint)

运行上述代码,你应该可以看到如下的输出:

The code is expected to print the data like follow:

Joint(id:1003):[x:54.9286,y:61.9286]:stdFlrId:1001
Joint(id:1004):[x:54.9286,y:9061.9286]:stdFlrId:1001
Joint(id:1005):[x:54.9286,y:18061.9286]:stdFlrId:1001
Joint(id:1006):[x:9054.9286,y:61.9286]:stdFlrId:1001
Joint(id:1007):[x:9054.9286,y:9061.9286]:stdFlrId:1001
Joint(id:1008):[x:9054.9286,y:18061.9286]:stdFlrId:1001
Joint(id:1009):[x:18054.9286,y:61.9286]:stdFlrId:1001
Joint(id:1010):[x:18054.9286,y:9061.9286]:stdFlrId:1001
Joint(id:1011):[x:18054.9286,y:18061.9286]:stdFlrId:1001
Joint(id:1012):[x:27054.9286,y:61.9286]:stdFlrId:1001
Joint(id:1013):[x:27054.9286,y:9061.9286]:stdFlrId:1001
Joint(id:1014):[x:27054.9286,y:18061.9286]:stdFlrId:1001

Others

我将持续更新,并且尽快完善本 python 库,如果你有任何问题或者建议,请随时通过邮箱联系我:just_gxy@163.com.

This package will be updated and completed soon.

If you have any questions or suggestion, please let me know.

You may contact with me via e-mail: just_gxy@163.com.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yjk_db_load-0.0.9.tar.gz (10.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yjk_db_load-0.0.9-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file yjk_db_load-0.0.9.tar.gz.

File metadata

  • Download URL: yjk_db_load-0.0.9.tar.gz
  • Upload date:
  • Size: 10.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for yjk_db_load-0.0.9.tar.gz
Algorithm Hash digest
SHA256 6374fc6d9f4aa22a94a9ed4e93be2542642870a6f9c3ffc1de168687c7c0d2c2
MD5 9608df5e8a28cfaa95545faf660f9b34
BLAKE2b-256 9f81d921b873a5e95c6ec9389daf26bca889e5528c76cf8bac03d7c95966a49d

See more details on using hashes here.

File details

Details for the file yjk_db_load-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: yjk_db_load-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for yjk_db_load-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 654a5ffe214af98869b41655c286d58203811e1c99d52ef9a225b726731b5cce
MD5 722b2f758407cb905c3d2f939628b54a
BLAKE2b-256 bc1a1f23ec135f63e4676b11b26da2da841d52f5df12d247ccf3f1d0ebcf9a91

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page