Hi there! Question: using the ECMA scripting interface, how can I add cloned Objects to a document, without overriding the original ones? Description: I am writing a script that recursively explodes all RBlockReferenceEntities in a document, i.e. retrieves all the REntities inside a block, and adds ...
Hi there! Is there a way to check the QCAD version from the CLI? Something like: $ qcad -v Or... $ qcad -no-gui -allow-multiple-instances -autostart -v I am trying to add a check on my batch routines to see if the local qcad distro is updated to the correct version, or prompt the user to update if n...
Feature request: it would be nice if QCAD spit some kind of warning message when trying to render a layer with a name that doesn't exist (and perhaps render nothing), rather than silently rendering an empty image.
Hi! I am having problems rasterizing layers with `$` symbols in their names: they always show up empty. Given the following file: layernames.dwg A full raster yields no problem: layernames.dwg.png Running rasterization on a layer without `$` in its name works fine: qcad.exe -no-gui -allow-multiple-i...
Wow, thank you for the quick response andrew, specially given your timezone. This solution would work for the corner case when content is on layer "0", but we need a more general solution. I have tried exploding the blocks, but I often get entities displaced to 0,0 and messes up the zoom level on re...
Hi there! I have the following file, with all the layers active: 2PLUMBING_ground.dwg If I render the whole thing (removing hatches and minimizing line weights), it looks like this: 2PLUMBING_ground.dwg.png But now, if I only render the "FURN" layer, I get this: 2PLUMBING_ground.dwg_LAYER_FURN.png W...
In your code, are 0 the vertex index and 7 the line width in drawing units? Should I then iterate over all vertices in the polyline, setting Start and EndWidth? How about using RPolyline.setWidth(double) to set the width of the whole thing?
Ooooh, I see, that makes sense. So, how could I change that through ECMAScript? I only see getters for the vertices on the RPolylineEntity class: https://www.qcad.org/doc/qcad/latest/developer/class_r_polyline_entity.html#aa4b4ce04c4bb59bd7a607a473dbad57c https://www.qcad.org/doc/qcad/latest/develop...
Hi there! Problem: when I "dwg2bmp" a file with special line types, they render very thick! Description: running into a strange issue with line weights for non-continuous line types. If I try to rasterize the following file: 01-07a55.dwg I get this: 01-07a55.dwg.png But as far as I can tell inspecti...
Is there any way to convert a PDF file with vector information into a DWG/DXF file? I looking specifically at batch automating this process with a script, CLI-style
Is there any way to detect which blocks use block transforms from the ECMAScript API? While the FR goes through, I would like at least to be able to remove those blocks from the drawing prior to rasterizing them.
Hi there, Problem: I am running into a strange problem with some block references in a reduced number of cad files being rendered in strange places. Description: I have a routine that batch-rasterizes cad files. The script relies on "dwg2bmp" with the "-zoom-all" argument. However, I started noticin...