I saw this post but can't find a good way to get my styles written to a toolbar:
do I simply write a lisp routine and put the shortcut name in my toolbar command line? I don't know what the "change surface style" command is. Please help. Thanks.
I am somewhat unsure whether it can done on AutoLisp, but you can at least get some kind of a handle (in my case it looks like Style = #<VLA-OBJECT IAeccSurfaceStyle 1547ffe0>) for a style used for a surface like that:
(setq ent (car (entsel "\nSelect Main Object: "))) (setq oEnt (vlax-ename->vla-object ent)) (vlax-dump-object oEnt)
Then I do not know whether you can only see it or even change. Another option which should work at least for 2013 is to write several commands in .net and then add them to a toolbar. I can think of two alternatives: either you have lots of styles in the drawing and each of the commands change the style of a surface to one of them, or these commands change the current surface style (it should not be a problem if you name surface style after your surface's name). Hope this helps somehow.
for examle I have a "_JS-no display" style that i toggle to "JS - Proposed Contours 1' and 5'" frequently. Ultimtaley i would like to build a toolbar and share with everyone at this firm to have all (lets say 20) surface styles. This may also be helpful with spot elevations that have different rotations.
Please find attached a zip file with an example of using a toolbar to manage the surface styles, includes off select desired cont interval and supports multiple surfaces. I t does require minor editing of contour style names to match user names.
Log into access your profile, ask and answer questions, share ideas and more. Haven't signed up yet? Register
Start with some of our most frequented solutions to get help installing your software.