Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

custom KiCAD PATH variable #41

Closed
laurencedv opened this issue Feb 19, 2020 · 2 comments
Closed

custom KiCAD PATH variable #41

laurencedv opened this issue Feb 19, 2020 · 2 comments

Comments

@laurencedv
Copy link

Hey,

I'm not sure if this a real issue or something I didn't understand in the StepUp Preference panes but anyhow, I'll expose the situation here and see if somebody can enlightened me:

In KiCAD on my workstations I setup a custom PATH variable pointing to the top of my lib ie:
KICADLIB = /path/to/lib-folder
Which is then nicely subsection into folder for footprint, template, 3dmodel, etc... which all point to the {$KICADLIB}/footprint , {$KICADLIB}/model , etc.
quite simple and easily portable, but it assume knowledge of the value behind {$KICADLIB} to complete the path to file.
Which is what I think is causing my problem when importing my pcb with the "import PCB" tool in Step-up and all the "not found model: {$KICADLIB}/bla/bla/bla"

Did I miss something somewhere? I always asked myself what was the purpose of those "ALT3DMOD" and "alternate 3d model search folder" option were or theit usable.

I can't sadly share the culprit file as it is work related but I could surely whip up something when at home (with personal project) if needed.

In any case thanks for the (what looks like (see above for current probleme :P)) a very nice tool!

@easyw
Copy link
Owner

easyw commented Feb 19, 2020

{$KICADLIB} or ${KICADLIB} ?
moreover you need to add to your StepUp preference page the path to your internal variable
i.e. if your footprint has this syntax:
(model ${KICADLIB}/model/mymodel.wrl
then you would need to add to your StepUp preferences i.e. at the secondary 3D folder location
the absolute path to your ${KICADLIB} folder
i.e.
myserver/mykicadlib
Please have a look at
https://github.com/easyw/kicadStepUpMod/blob/master/demo/kicadStepUp-cheat-sheet.pdf

@laurencedv
Copy link
Author

laurencedv commented Feb 19, 2020

Ah yes sorry I wrote from memory, ${VAR} it is.
ie: ${KICADLIB}/model/BGA/BGA6N50P2X3_150X150X68.step

Following your step (pointing to the var value instead of the 3d model sub-folder did the trick.
Old ALT3DMOD: /home/laurencedv/project/lib/KiCADlib/model
new and working ALT3DMOD: /home/laurencedv/project/lib/KiCADlib

And finally yes I was following the steps (haha) in the quite extensive doc you have made, Im now passed import and mech constraint checker (ho boy that would have saved me time 2 weeks ago -_- ...)

Thanks for the quick answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants