script collection for layer config, multiprint, reconcile...
Posted: Wed Feb 25, 2015 3:51 pm
Hi there,
some time ago I wrote some scripts that might be useful to others, so I want to share them here. All scripts are within a "MyTools"-folder and result in a new QCad menu called "MyTools". I admit the name is not really expressive, but I couldn't resist to call it mine.
The following scripts are available here:
- ActivateLayerConfig: change color, lineweight and linetype of one or more layers to a predefined set. The definition must reside on a "_DEFS" called layer inside the document. Idea behind: if you have different output formats or different "background layers", you can adjust contrast and visibility.
- ActivatePredef: set all layers to a predefined visible/not-visible (aka. not-frozen/frozen) state. The definition must reside on a "_DEFS" called layer inside the codument. Idea behind: if you have (too) many layers and need the same visible sets of layers multiple times, you can define them once and just reset to a defined set.
- DupRemover: remove all lines that have same start and end points.
- ListActiveLayers: list currently visible (not-frozen) layers. This can be used as basis for ActivatePredef.
- ListActiveLayerConfigs: list configuration of visible (not-frozen) layers. This can be used as basis for ActivateLayerConfig.
- MultiPrintToPdf: print multiple configurations into a single PDF. The definition must reside on a "_DEFS" called layer inside the document. Idea behing: if you have multiple layer configurations, you can print them each after each into one single PDF.
- QuickPrintToPdf: one single PDF with output that would be produced identically in one configuration of MultiPrintToPDF.
- Reconcile: move+scale+rotate in one step. Idea behind: if you have some "real" drawing and some "similar" one and want to match them with just two reference points, just reconcile them.
- Select-Widget: already published, see viewtopic.php?f=107&t=2142 in another thread. I only updated the position of "Select Widget" visibility menu item.
Any feedback is appreciated.
some time ago I wrote some scripts that might be useful to others, so I want to share them here. All scripts are within a "MyTools"-folder and result in a new QCad menu called "MyTools". I admit the name is not really expressive, but I couldn't resist to call it mine.
The following scripts are available here:
- ActivateLayerConfig: change color, lineweight and linetype of one or more layers to a predefined set. The definition must reside on a "_DEFS" called layer inside the document. Idea behind: if you have different output formats or different "background layers", you can adjust contrast and visibility.
- ActivatePredef: set all layers to a predefined visible/not-visible (aka. not-frozen/frozen) state. The definition must reside on a "_DEFS" called layer inside the codument. Idea behind: if you have (too) many layers and need the same visible sets of layers multiple times, you can define them once and just reset to a defined set.
- DupRemover: remove all lines that have same start and end points.
- ListActiveLayers: list currently visible (not-frozen) layers. This can be used as basis for ActivatePredef.
- ListActiveLayerConfigs: list configuration of visible (not-frozen) layers. This can be used as basis for ActivateLayerConfig.
- MultiPrintToPdf: print multiple configurations into a single PDF. The definition must reside on a "_DEFS" called layer inside the document. Idea behing: if you have multiple layer configurations, you can print them each after each into one single PDF.
- QuickPrintToPdf: one single PDF with output that would be produced identically in one configuration of MultiPrintToPDF.
- Reconcile: move+scale+rotate in one step. Idea behind: if you have some "real" drawing and some "similar" one and want to match them with just two reference points, just reconcile them.
- Select-Widget: already published, see viewtopic.php?f=107&t=2142 in another thread. I only updated the position of "Select Widget" visibility menu item.
Any feedback is appreciated.