[Panelize][Added] Expand text variables and KiBot %X markers
- in text objects Related to #497
This commit is contained in:
parent
9ce2321890
commit
b6815b6a94
|
|
@ -28,6 +28,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||||
- `fixed_auto_camera`: to avoid adjusting the automatic camera on each frame
|
- `fixed_auto_camera`: to avoid adjusting the automatic camera on each frame
|
||||||
- Camera option to set the clip start (#484)
|
- Camera option to set the clip start (#484)
|
||||||
- Traceback dump when Blender output contains it
|
- Traceback dump when Blender output contains it
|
||||||
|
- KiKit
|
||||||
|
- Expand text variables and KiBot %X markers in text objects (see #497)
|
||||||
- Populate:
|
- Populate:
|
||||||
- Basic support for regular list items (#480)
|
- Basic support for regular list items (#480)
|
||||||
- Help for the error levels
|
- Help for the error levels
|
||||||
|
|
|
||||||
|
|
@ -1720,6 +1720,8 @@ outputs:
|
||||||
drawtabfail: false
|
drawtabfail: false
|
||||||
# [boolean=false] Trace
|
# [boolean=false] Trace
|
||||||
trace: false
|
trace: false
|
||||||
|
# [boolean=true] Expand text variables and KiBot %X markers in text objects
|
||||||
|
expand_text: true
|
||||||
# [string=''] A configuration to use as base for this one. Use the following format: `OUTPUT_NAME[CFG_NAME]`
|
# [string=''] A configuration to use as base for this one. Use the following format: `OUTPUT_NAME[CFG_NAME]`
|
||||||
extends: ''
|
extends: ''
|
||||||
# [dict] Used to add fiducial marks to the (rail/frame of) the panel
|
# [dict] Used to add fiducial marks to the (rail/frame of) the panel
|
||||||
|
|
|
||||||
|
|
@ -217,6 +217,7 @@ Parameters:
|
||||||
- ``drawtabfail`` :index:`: <pair: output - panelize - options - configs - debug; drawtabfail>` [boolean=false] Draw tab fail.
|
- ``drawtabfail`` :index:`: <pair: output - panelize - options - configs - debug; drawtabfail>` [boolean=false] Draw tab fail.
|
||||||
- ``trace`` :index:`: <pair: output - panelize - options - configs - debug; trace>` [boolean=false] Trace.
|
- ``trace`` :index:`: <pair: output - panelize - options - configs - debug; trace>` [boolean=false] Trace.
|
||||||
|
|
||||||
|
- ``expand_text`` :index:`: <pair: output - panelize - options - configs; expand_text>` [boolean=true] Expand text variables and KiBot %X markers in text objects.
|
||||||
- ``extends`` :index:`: <pair: output - panelize - options - configs; extends>` [string=''] A configuration to use as base for this one. Use the following format: `OUTPUT_NAME[CFG_NAME]`.
|
- ``extends`` :index:`: <pair: output - panelize - options - configs; extends>` [string=''] A configuration to use as base for this one. Use the following format: `OUTPUT_NAME[CFG_NAME]`.
|
||||||
- ``name`` :index:`: <pair: output - panelize - options - configs; name>` [string=''] A name to identify this configuration. If empty will be the order in the list, starting with 1.
|
- ``name`` :index:`: <pair: output - panelize - options - configs; name>` [string=''] A name to identify this configuration. If empty will be the order in the list, starting with 1.
|
||||||
Don't use just a number or it will be confused as an index.
|
Don't use just a number or it will be confused as an index.
|
||||||
|
|
|
||||||
|
|
@ -361,6 +361,8 @@ class PanelizeText(PanelOptions):
|
||||||
res = Layer.solve(self.layer)
|
res = Layer.solve(self.layer)
|
||||||
if len(res) > 1:
|
if len(res) > 1:
|
||||||
raise KiPlotConfigurationError('Must select only one layer for the text ({})'.format(self.layer))
|
raise KiPlotConfigurationError('Must select only one layer for the text ({})'.format(self.layer))
|
||||||
|
if parent.expand_text:
|
||||||
|
self.text = parent.expand_filename_both(self.text, is_sch=False, make_safe=False)
|
||||||
|
|
||||||
|
|
||||||
class PanelizeCopperfill(PanelOptions):
|
class PanelizeCopperfill(PanelOptions):
|
||||||
|
|
@ -523,6 +525,8 @@ class PanelizeConfig(PanelOptions):
|
||||||
""" [dict] Debug options """
|
""" [dict] Debug options """
|
||||||
self.source = PanelizeSource
|
self.source = PanelizeSource
|
||||||
""" [dict] Used to adjust details of which part of the PCB is panelized """
|
""" [dict] Used to adjust details of which part of the PCB is panelized """
|
||||||
|
self.expand_text = True
|
||||||
|
""" Expand text variables and KiBot %X markers in text objects """
|
||||||
super().__init__()
|
super().__init__()
|
||||||
|
|
||||||
def config(self, parent):
|
def config(self, parent):
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue