Kicad DXF to module import
$30-250 USD
Teslim sırasında ödenir
Applications such as CST you can design a Patch antenna or rf interface. Unfortunatly Kicad has limited import facility for DXF or Gerbers. I am looking for someone to write a script to import DXF files to Kicad_module such as using the dxfgrab as input
An example of a
import logging
import argparse
import math
parser.add_argument('--kicad_mod', type=[url removed, login to view]('w'),help='Save Kicad footprint to this file')
if args.kicad_mod is not None:
text_effects = SExpression('font', [
SExpression('size', [1, 1]),
SExpression('thickness', .15)])
module = SExpression('module', [
'PCBAntenna',
SExpression('layer', ['[url removed, login to view]']),
SExpression('fp_text', [
identifier('reference'),
'REF**'], [
('at', [0, .5]),
('effects', text_effects),
('layer', '[url removed, login to view]')]),
SExpression('fp_text', [
identifier('value'),
'PCBAntenna'], [
('at', [0, -.5]),
('effects', text_effects),
('layer', '[url removed, login to view]')])])
[url removed, login to view](SExpression('fp_line', [], [
('start', coil[ii]), ('end', coil[ii + 1]), ('layer', '[url removed, login to view]'),
('width', trace_width)]) for ii in range(len(coil) - 1))
pad_offset = (pad_size - trace_width) / 2
if [url removed, login to view] == 'square':
pads = [
(1, (coil[0][0] - pad_offset * [url removed, login to view],
coil[0][1] + pad_offset),
'rect'),
(2, (coil[-1][0] - pad_offset * [url removed, login to view],
coil[-1][1] - pad_offset),
'rect')]
else:
pads = [
(1, (coil[0][0] + pad_offset * [url removed, login to view],
coil[0][1] - pad_offset),
'rect'),
(2, (coil[-1][0] - pad_offset * [url removed, login to view],
coil[-1][1]),
'circle')]
pad_locations = [
(coil[0][0] + pad_offset * [url removed, login to view], coil[0][1] - pad_offset),
(coil[-1][0] - pad_offset * [url removed, login to view], coil[-1][1] + pad_offset)]
for number, location, shape in pads:
[url removed, login to view](SExpression('pad', [
number,
identifier('smd'),
identifier(shape)], [
('at', location),
('size', [pad_size, pad_size]),
('layers', '[url removed, login to view]')]))
descr = 'PCB inductor {}m x {}m {} turns {}m pitch'.format(
si_prefix_format(side1*2e-3), si_prefix_format(side2*2e-3),
[url removed, login to view], si_prefix_format(pitch*1e-3))
if [url removed, login to view]:
descr += ' inductance {}H Q={:.1e} at {}Hz'.format(
si_prefix_format(L), Q, si_prefix_format([url removed, login to view]))
descr += ' generated with [url removed, login to view]'
[url removed, login to view](SExpression('descr', descr))
module.write_to_stream(args.kicad_mod)
[url removed, login to view]()
print('\nFootprint written to ' + [url removed, login to view])
Proje NO: #14278919
Proje hakkında
Bu iş için 6 freelancer ortalamada $283 teklif veriyor
Hey We are a team of Technical Developers and have got expertise in such stuff. Ping me if you are looking for a quick resolution
Hi, this is Zubair. I am a python expert with 3 years of experience . i have completed many projects in python. i have gone through your project and would love to work on it. Rest we can have a detailed discussion over Daha Fazla
Python Relevant Skills and Experience I am good in Python Proposed Milestones $200 USD - Cost
I am Sr. Python developer with 5+ years of experience. I understand your requirements and I can assist you in the same. Relevant Skills and Experience 4+ years along with MEAN stack(Mongo DB /Mongoose , Express JS , A Daha Fazla