TechDraw: Add BIM view with the page's scale (#20934)

* TechDraw: Add BIM view with the page's scale

* Fix if one-liner syntax
This commit is contained in:
Furgo
2025-04-23 19:31:57 +02:00
committed by GitHub
parent d4dcda1693
commit bf19a8917f

View File

@@ -1711,6 +1711,8 @@ void CmdTechDrawArchView::activated(int iMsg)
SourceName.c_str());
doCommand(Doc, "App.activeDocument().%s.addView(App.activeDocument().%s)", PageName.c_str(),
FeatName.c_str());
doCommand(Doc, "if App.activeDocument().%s.Scale: App.activeDocument().%s.Scale = App.activeDocument().%s.Scale",
PageName.c_str(), FeatName.c_str(), PageName.c_str());
updateActive();
commitCommand();
}