Originally Posted by
dpresley58437170
I'd like to add some custom labeling commands to a ribbon. Specifically, I have several variant styles for labeling a structure in plan view. To get these added to the drawing, I have to go through the Annotate Ribbon and pull up the Add Labels dialog. On Add Labels, I have to drill down through Feature, Label Type and Structure Label Style.
The command that drives adding a label to a structure in plan view is ADDNETWORKPARTPLANLABEL. Are there parameters I can give it from with a ribbon to do the drill-down for me?
Any help would be greatly appreciated.
Why not just add a new Command Alias for ADDNETWORKPARTPLANLABEL to Acad.pgp file (at the bottom)?
Code:
(defun c:PGP (/ file)
(if (setq file (findfile "acad.pgp"))
(startapp "explorer" file)
(prompt "\n** File not found ** ")
)
(princ)
)