We value your input! Please participate in Archicad 28 Home Screen and Tooltips/Quick Tutorials survey
2018-08-20 01:25 PM - last edited on 2023-05-11 11:08 AM by Noemi Balogh
Solved! Go to Solution.
2018-08-25 09:47 AM
#Import libraries import Grasshopper import System #Declare variables for Component Name & Menu Event compName = "2DC" menuEvent = "Set one 2D curve in ARCHICAD" #Loop over objects in active document for obj in Grasshopper.Instances.ActiveCanvas.Document.Objects: if obj.NickName == compName: menu = System.Windows.Forms.ToolStripDropDown() obj.AppendMenuItems(menu) for item in menu.Items: if item.Text == menuEvent: item.PerformClick()
2018-08-22 07:57 PM
2018-08-25 09:47 AM
#Import libraries import Grasshopper import System #Declare variables for Component Name & Menu Event compName = "2DC" menuEvent = "Set one 2D curve in ARCHICAD" #Loop over objects in active document for obj in Grasshopper.Instances.ActiveCanvas.Document.Objects: if obj.NickName == compName: menu = System.Windows.Forms.ToolStripDropDown() obj.AppendMenuItems(menu) for item in menu.Items: if item.Text == menuEvent: item.PerformClick()
2018-08-27 04:22 PM
2018-09-03 10:59 PM
2019-08-09 08:54 AM