sd-set-cmd-specific-context-menu-entries
sd-set-curr-cmd-additional-context-menu-entries
(sd-set-cmd-specific-context-menu-entries command contents)
Note: If you call this function while the command specified as
command is not active or suspended, you'll define the set of
command specific context menu entries in a static way, i.e. every
instance of the command will have these command specific context menu
entries.
If you call this function while command is active or
suspended, you'll assign the command specific context menu entries
just for this one (if more, then the most recent) instance of the
command, i.e. if you call the same command a second time without calling
this function for this command, no command specific context menu entries
will be specified.
Note 2: If there are some context menu entries defined for a command and this command employs a subaction like SELECT or MEASURE DIRECTION 3D which itself has context menu entries defined, the resulting command specific context menu is a composition of all these commands starting with the most recent subaction commands at the top followed by further subaction or calling action commands separated by a separator.
(:pushbutton :title title :pushAction action :image image :description description :enable enable-form :isVisible visible-form)
(:togglebutton :title title :pushAction push-action :releaseAction release-action :image image :description description :enable enable-form :isSet is-set-form :isVisible is-visible-form)
(:separator :isVisible is-visible-form)
(:submenu :title title :contents contents :isVisible is-visbile-form)
(sd-set-cmd-specific-context-menu-entries "extrude" '((:pushButton :title "Part" :pushAction ":sel_part" :image "SolidDesigner/Part_Assy/new_part") (:pushButton :title "Workplane" :pushAction ":wp" :description "Specify workplane with valid profile to extrude." :image "SolidDesigner/Workplane/wp_new") (:pushButton :title "Distance" :pushAction ":distance") (:separator) (:submenu :title "Options" :contents ((:togglebutton :title "Keep WP" :pushAction ":keep_wp :yes" :releaseAction ":keep_wp :no" :isSet *extrude-keep-wp*) (:togglebutton :title "Keep Profile" :pushAction ":keep_profile :yes" :releaseAction ":keep_profile :no" :enable *extrude-keep-profile-enabled* :isSet *extrude-keep-profile*)))))
(sd-set-curr-cmd-additional-context-menu-entries contents :change-cursor change-cursor)
(:top top-contents-list :bottom bottom-contents-list)top-contents-list and bottom-contents-list are of the same form as described in sd-set-cmd-specific-context-menu-entries parameter contents.
(sd-set-curr-cmd-additional-context-menu-entries '(:bottom ((:pushButton :title "Modeling Settings" :pushAction (elan-ui::show-modeling-settings-ui)))))
© 2024 Parametric
Technology GmbH (a subsidiary of PTC Inc.), All Rights Reserved |