mitjanemec / archive3dmodels Goto Github PK
View Code? Open in Web Editor NEWLicense: GNU General Public License v2.0
License: GNU General Public License v2.0
Hi, i have this problem.
Traceback (most recent call last): File "C:\Users\janee\Documents\KiCacI\6.0\3rdparty\plugins\action_archive_3d_models.py", line 237, in Run loggersinfo("Char size: "+ repr(dIg_size.GetCharHeight()))
AttributeError 'Size object has no attribute 'GetCharHeight'
Application: KiCad editor DPS (64-bit)
Version: (6.0.9), release build
Libraries:
wxWidgets 3.2.1
libcurl/7.83.1-DEV Schannel zlib/1.2.12
Platform: Windows 11 (build 22000), 64-bit edition, 64 bit, Little endian, wxMSW
Build Info:
Date: Oct 29 2022 23:44:28
wxWidgets: 3.2.1 (wchar_t,wx containers)
Boost: 1.79.0
OCC: 7.6.0
Curl: 7.83.1-DEV
ngspice: 37
Compiler: Visual C++ 1929 without C++ ABI
Build settings:
KICAD_USE_OCC=ON
KICAD_SPICE=ON
Thanks for any help :)
hello ,my kicad version is (6.99.0-8g7c91cd73e3),when I
use this plugin, I met the following question,the log is
03-05 10:38:12 com_github_MitjaNemec_Archive3DModels.action_archive_3d_models 210:Plugin executed on: 'win32'
03-05 10:38:12 com_github_MitjaNemec_Archive3DModels.action_archive_3d_models 211:Plugin executed with python version: '3.9.6 (default, Sep 27 2021, 21:15:11) [MSC v.1929 64 bit (AMD64)]'
03-05 10:38:12 com_github_MitjaNemec_Archive3DModels.action_archive_3d_models 212:KiCad build version: (6.99.0-834-g7c91cd73e3)
03-05 10:38:12 com_github_MitjaNemec_Archive3DModels.action_archive_3d_models 213:Plugin version: 1.0.3
03-05 10:38:20 com_github_MitjaNemec_Archive3DModels.archive_3d_models 13:Starting to archive 3D models
03-05 10:38:20 com_github_MitjaNemec_Archive3DModels.archive_3d_models 34:Getting 3D models for footprint of: D10
03-05 10:38:20 com_github_MitjaNemec_Archive3DModels.action_archive_3d_models 247:Fatal error when executing Archive 3D Models
Traceback (most recent call last):
File "C:\Users\Administrator\Documents\KiCad\6.99\3rdparty\plugins\com_github_MitjaNemec_Archive3DModels\action_archive_3d_models.py", line 240, in Run
not_copied_list = archiver.archive_3d_models(board, remap_missing_models=amm)
File "C:\Users\Administrator\Documents\KiCad\6.99\3rdparty\plugins\com_github_MitjaNemec_Archive3DModels\archive_3d_models.py", line 39, in archive_3d_models
nr_models = range(len(models))
TypeError: object of type 'SwigPyObject' has no len()
In archive_3d_model.py at line 56 changing:
model = models.pop()
to
model = models[index]
The plugin works correctly.
Great plugin!!
Thanks,
Giovanni
The addon dont work in KiCad7 anymore.
The plugin doesn't work for me. In the project directory it makes a subdirectory with 3d model subfiles. But when it starts it reports an error that it can't find the 3d files. With the kicad_pcb file it does nothing.
I'm getting a few "did not succeed to copy 3D models" End of log below.
07-30 17:15:17 com_github_MitjaNemec_Archive3DModels.archive_3d_models 147:Did not succeed to copy 3D models!
('J1', '${KIPRJMOD}/ALTIUM_EMBEDDED_MODELS/12401610E4#2A.STEP')
('U1', '${KICAD6_3DMODEL_DIR}/Connector_JST.3dshapes/JST_SH_BM03B-SRSS-TB_1x03-1MP_P1.00mm_Vertical.STEP')
('TH1', '${KICAD6_3DMODEL_DIR}/custom/NXRT15XH103FA1B040.STEP')
It looks like this can be resolved by just renaming the .STEP files to .step. Happy to do that for my project, but just thought you might want to add case insensitivity to the file type identifier in the code as a lot of SnapEDA or otherwise online 3d model providers can provide them with .STEP rather than .step (for reasons that elude me, but they do exist regularly from my experience).
I apologize in advance for my ignorance, but I seem to be missing something critical for launching this plugin.
I am new to KiCad but have finished a project and would like to make it portable. I have installed the plugin but cannot find any way to run it. Other plugins I have installed have given me new buttons on the top bar for their functions, but not this one.
Is it possible to add an instruction for running the plugin in the readme.md? I have looked around a lot and could not find any leads on how to execute your plugin.
Thank you.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.