diff --git a/src/lay/lay/layMacroTemplates.qrc b/src/lay/lay/layMacroTemplates.qrc
index 79bdbc8ad..3976c564d 100644
--- a/src/lay/lay/layMacroTemplates.qrc
+++ b/src/lay/lay/layMacroTemplates.qrc
@@ -18,5 +18,6 @@
macro_templates/qt_dialog_python.lym
macro_templates/pcell_python.lym
macro_templates/pcell_sample_python.lym
+ macro_templates/via_pcell_sample_python.lym
diff --git a/src/lay/lay/macro_templates/index.txt b/src/lay/lay/macro_templates/index.txt
index a446546d7..a6ced11fb 100644
--- a/src/lay/lay/macro_templates/index.txt
+++ b/src/lay/lay/macro_templates/index.txt
@@ -38,6 +38,7 @@ pcell_python.lym
# Samples
:Samples;;
pcell_sample_python.lym
+via_pcell_sample_python.lym
qt_designer_python.lym
qt_dialog_python.lym
qt_server_python.lym
diff --git a/src/lay/lay/macro_templates/pcell_sample_python.lym b/src/lay/lay/macro_templates/pcell_sample_python.lym
index f2a60bdbc..775f3241c 100644
--- a/src/lay/lay/macro_templates/pcell_sample_python.lym
+++ b/src/lay/lay/macro_templates/pcell_sample_python.lym
@@ -6,6 +6,7 @@
false
false
+ pymacros
python
import pya
import math