added layout option to Qt viewer
@@ -371,6 +371,11 @@ class View(Command):
nargs="?",
help="DXF file to view",
)
+ parser.add_argument(
+ "--layout",
+ default="Model",
+ help="select the layout to draw",
+ )
parser.add_argument(
"--ltype",
default="internal",
@@ -409,7 +414,7 @@ class View(Command):
if filename:
doc, auditor = load_document(filename)
viewer.set_document(doc, auditor)
- viewer.draw_layout("Model")
+ viewer.draw_layout(args.layout)
sys.exit(app.exec_())
