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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user