-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from paulosergiocf/develop
Develop
- Loading branch information
Showing
23 changed files
with
758 additions
and
146 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
.venv | ||
/logs | ||
__pycache__ | ||
# Byte-compiled / optimized / DLL files | ||
__pycache__/ | ||
*.py[cod] | ||
*$py.class | ||
|
||
# C extensions | ||
*.so | ||
|
||
# Distribution / packaging | ||
.Python | ||
build/ | ||
develop-eggs/ | ||
downloads/ | ||
eggs/ | ||
.eggs/ | ||
lib/ | ||
lib64/ | ||
parts/ | ||
sdist/ | ||
var/ | ||
wheels/ | ||
share/python-wheels/ | ||
*.egg-info/ | ||
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
|
||
# PyInstaller | ||
# Usually these files are written by a python script from a template | ||
# before PyInstaller builds the exe, so as to inject date/other infos into it. | ||
*.manifest | ||
*.spec | ||
|
||
# Installer logs | ||
pip-log.txt | ||
pip-delete-this-directory.txt | ||
|
||
# Unit test / coverage reports | ||
htmlcov/ | ||
.tox/ | ||
.nox/ | ||
.coverage | ||
.coverage.* | ||
.cache | ||
nosetests.xml | ||
coverage.xml | ||
*.cover | ||
*.py,cover | ||
.hypothesis/ | ||
.pytest_cache/ | ||
cover/ | ||
|
||
# Translations | ||
*.mo | ||
*.pot | ||
|
||
# Django stuff: | ||
*.log | ||
local_settings.py | ||
db.sqlite3 | ||
db.sqlite3-journal | ||
|
||
# Flask stuff: | ||
instance/ | ||
.webassets-cache | ||
|
||
# Scrapy stuff: | ||
.scrapy | ||
|
||
# Sphinx documentation | ||
docs/_build/ | ||
|
||
# PyBuilder | ||
.pybuilder/ | ||
target/ | ||
|
||
# Jupyter Notebook | ||
.ipynb_checkpoints | ||
|
||
# IPython | ||
profile_default/ | ||
ipython_config.py | ||
|
||
# pyenv | ||
# For a library or package, you might want to ignore these files since the code is | ||
# intended to run in multiple environments; otherwise, check them in: | ||
# .python-version | ||
|
||
# pipenv | ||
# According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control. | ||
# However, in case of collaboration, if having platform-specific dependencies or dependencies | ||
# having no cross-platform support, pipenv may install dependencies that don't work, or not | ||
# install all needed dependencies. | ||
#Pipfile.lock | ||
|
||
# poetry | ||
# Similar to Pipfile.lock, it is generally recommended to include poetry.lock in version control. | ||
# This is especially recommended for binary packages to ensure reproducibility, and is more | ||
# commonly ignored for libraries. | ||
# https://python-poetry.org/docs/basic-usage/#commit-your-poetrylock-file-to-version-control | ||
#poetry.lock | ||
|
||
# pdm | ||
# Similar to Pipfile.lock, it is generally recommended to include pdm.lock in version control. | ||
#pdm.lock | ||
# pdm stores project-wide configurations in .pdm.toml, but it is recommended to not include it | ||
# in version control. | ||
# https://pdm.fming.dev/#use-with-ide | ||
.pdm.toml | ||
|
||
# PEP 582; used by e.g. github.com/David-OConnor/pyflow and github.com/pdm-project/pdm | ||
__pypackages__/ | ||
|
||
# Celery stuff | ||
celerybeat-schedule | ||
celerybeat.pid | ||
|
||
# SageMath parsed files | ||
*.sage.py | ||
|
||
# Environments | ||
*.env | ||
.venv | ||
env/ | ||
venv/ | ||
ENV/ | ||
env.bak/ | ||
venv.bak/ | ||
|
||
# Spyder project settings | ||
.spyderproject | ||
.spyproject | ||
|
||
# Rope project settings | ||
.ropeproject | ||
|
||
# mkdocs documentation | ||
/site | ||
|
||
# mypy | ||
.mypy_cache/ | ||
.dmypy.json | ||
dmypy.json | ||
|
||
# Pyre type checker | ||
.pyre/ | ||
|
||
# pytype static type analyzer | ||
.pytype/ | ||
|
||
# Cython debug symbols | ||
cython_debug/ | ||
|
||
# PyCharm | ||
# JetBrains specific template is maintained in a separate JetBrains.gitignore that can | ||
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore | ||
# and can be added to the global gitignore or merged into this file. For a more nuclear | ||
# option (not recommended) you can uncomment the following to ignore the entire idea folder. | ||
#.idea/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,91 @@ | ||
# DIGITAR PONTOS COM COORDENADAS NO AUTOCAD | ||
> Insere pontos com nome diretamente em arquivo no AutoCAD | ||
|
||
![1](https://user-images.githubusercontent.com/49497668/100269564-80773400-2f35-11eb-980d-43250e3e6524.png) | ||
![Banner](assets/banner.png) | ||
|
||
Aplicação criada para inserção de pontos em coordenadas UTM integrado ao AutoCad. | ||
|
||
Inserção de listas de pontos UTM no AutoCAD. | ||
Utilizando circulo e texto cria-se a representação de um ponto em um arquivo DWG, pode ser muito util quando é necessário digitar longas listas de coordenadas com identificação diretamente no autocad, podendo utilizar somente o teclado e sem ter que ficar trocando o foco, ou alternando entre teclado e mouse. | ||
|
||
## Instalação do módulo | ||
### sumário | ||
|
||
Windows: | ||
1. [Como usar](#como-usar) | ||
2. [Desenvolvimento](#desenvolvimento) | ||
- [Preparação do ambiente](#preparação-do-ambiente) | ||
- [Pespectiva de atualização](#pespectiva-de-atualização) | ||
3. [Autor](#autor) | ||
## Como usar | ||
|
||
módulo | ||
Requisitos: | ||
- Windows 10/11 | ||
- AutoCad | ||
|
||
```bat | ||
pip install PyAutocad | ||
Clique no botão para acessar a pagina do arquivo. | ||
|
||
[![download](assets/download.svg)](https://github.com/paulosergiocf/Digitar_Coordenadas_utm_AutoCad/blob/develop/dist/DigitarCoordenasUtmAutoCad.zip) | ||
|
||
Agora clique no icone de download ou pressione o atalho: ```ctrl + shift + s``` | ||
|
||
### Passo a Passo | ||
- Descompacte o arquivo para pasta de sua preferência. | ||
- Abra o arquivo **dwg** em que deseja inserir as coordenadas. | ||
- Execute a aplicação. | ||
- Digite as coordenadas conforme deseja. | ||
- Agora no **dwg** utilize o comando zoon extend ou pressione duas vezes o scrool-look no mouse. | ||
|
||
Pronto, todas as coordendas serão exibidas. | ||
|
||
![exemplo de uso](assets/uso_aplicacao.png) | ||
![pontos inseridos](assets/pontos_inseridos.png) | ||
|
||
### E se acontecer um problema? | ||
|
||
Se houver alguma problema durante a execução a aplicação indicará na tela. | ||
|
||
![exceção](assets/nenhum_arquivo_aberto.png) | ||
|
||
A execução da aplicação também pode ser monitorada na pasta __/logs__ dentro da pasta da aplicação, esta pasta é criada automaticamente na primeira execução. | ||
|
||
![logs](assets/log.png) | ||
|
||
## Desenvolvimento | ||
|
||
### informações do projeto. | ||
[![Python 3.11.5](https://img.shields.io/badge/python-3.11.5-red.svg)](https://www.python.org/downloads/release/python-360/) [![descontinuado](https://img.shields.io/badge/Maintained%3F-no-red.svg)](#pespectiva-de-atualização) | ||
|
||
|
||
### Preparação do ambiente | ||
|
||
Para utilizar o projeto crie um ambiente virtual. | ||
|
||
```sh | ||
python -m venv .venv | ||
``` | ||
|
||
## Exemplo de Uso | ||
Em seguida ative o ambiente em sua maquina. | ||
```sh | ||
source .venv/bin/activate | ||
``` | ||
Agora instale os dependencias nescessárias: | ||
|
||
Vejamos agora um exemplo de como utilizar a Ferramenta. | ||
Após cumprir todos os requisitos de instalação abra um desenho novo no AutoCad e execute o script. | ||
```sh | ||
pip install -r requeriments.txt | ||
``` | ||
|
||
|
||
### Pespectiva de atualização. | ||
|
||
![2](https://user-images.githubusercontent.com/49497668/100269631-9be23f00-2f35-11eb-9914-ad30b59cbc4d.png) | ||
Este projeto esta em sua ultima atualização, é um projeto antigo que já não tem mais uso para mim, apartir de 05/2024 não receberá mais atualização. | ||
|
||
## Pespectiva de atualização. | ||
No entando, dependedo de sua área de atuação extender os recursos dele pode proporcionar muio eficacia a rotina de escritório, faça um fork e por favor me notifique sobre seu projeto, vou adorar ve-lo. | ||
|
||
Pretendo posteriormente inserir uma opção para ler um arquivo **.csv** e extrair dele a lista de coordenadas e digita-las automaticamente. | ||
### Gerar executavel. | ||
|
||
Para gerar o executavel usei a lib **auto-py-to-exe** que pode ser instalada com o comando ```pip install auto-py-to-exe``` para gerar novamente pode importar as configurações usando o __build.json__ dentro do diretorio config. | ||
|
||
## Autor | ||
|
||
Paulo Sergio de Campos Filho – [@paulosergio_cf](https://twitter.com/paulosergio_cf) – paulosergiocf@protonmail.com | ||
Paulo Sergio de Campos Filho | ||
|
||
[paulosergiocf.dev@gmail.com](mailto:paulosergiocf.dev@gmail.com) | ||
|
||
[https://github.com/paulosergiocf](https://github.com/paulosergiocf) |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,77 @@ | ||
{ | ||
"version": "auto-py-to-exe-configuration_v1", | ||
"pyinstallerOptions": [ | ||
{ | ||
"optionDest": "noconfirm", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "filenames", | ||
"value": "Y:/Digitar_Coordenadas_utm_AutoCad/main.pyw" | ||
}, | ||
{ | ||
"optionDest": "onefile", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "console", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "icon_file", | ||
"value": "Y:/Digitar_Coordenadas_utm_AutoCad/icon/icon.ico" | ||
}, | ||
{ | ||
"optionDest": "name", | ||
"value": "DigitarCoordenasUtmAutoCad" | ||
}, | ||
{ | ||
"optionDest": "clean_build", | ||
"value": true | ||
}, | ||
{ | ||
"optionDest": "strip", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "noupx", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "disable_windowed_traceback", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "uac_admin", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "uac_uiaccess", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "argv_emulation", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "bootloader_ignore_signals", | ||
"value": false | ||
}, | ||
{ | ||
"optionDest": "datas", | ||
"value": "Y:/Digitar_Coordenadas_utm_AutoCad/src;src/" | ||
}, | ||
{ | ||
"optionDest": "datas", | ||
"value": "Y:/Digitar_Coordenadas_utm_AutoCad/icon;icon/" | ||
}, | ||
{ | ||
"optionDest": "datas", | ||
"value": "Y:/Digitar_Coordenadas_utm_AutoCad/.venv/Lib/site-packages/comtypes;comtypes/" | ||
} | ||
], | ||
"nonPyinstallerOptions": { | ||
"increaseRecursionLimit": false, | ||
"manualArguments": "" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#!/bin/bash | ||
|
||
# Função para procurar e remover pastas __pycache__ | ||
remove_pycache() { | ||
for pycache_dir in $(find . -type d -name "__pycache__"); do | ||
echo "Removendo $pycache_dir" | ||
rm -r "$pycache_dir" | ||
done | ||
} | ||
|
||
# Chamando a função para remover pastas __pycache__ | ||
remove_pycache | ||
|
||
echo "Remoção de pastas __pycache__ concluída." |
Oops, something went wrong.