‹#›
© 2007 Autodesk
ADSK_BLack_BAR.png
ADN Developer Days 2007/8
Run code to set up CUI file when AutoCAD is run for the first time
§
§Set your UI elements up during first-run in AutoCAD
§Loading CUI files is not fully automatic. Menu items in the CUI may not be displayed until the WSCURRENT command is run
§Automate CUILOAD
§(Command “CUILOAD” “dbcon.CUI”) Pulldowns not automatically added
§ads_queueexpr in On_kInitAppMsg
§
§
§Use AutoLISP menuCmd function to place a pulldown menu on the MenuBar
§(menucmd "Gacad.Help=+dbconnect.data view")
§Use an Alias for the Pull down menu. (data view in this example)
§.
§
§
It is possible to setup your customization from an installer. However, how AutoCAD loads your created UI elements is not fully automatic. The UI was designed such that the menu items for your customization will not load until the WSCURRENT command is run in the editor. This means that it is generally better to set your UI elements up during first-run of AutoCAD after your install anyway.