AutoCAD Civil 3D Customization
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
Styles to Toolbar
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Styles to Toolbar
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
BR, Viktors
Re: Styles to Toolbar
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
What do you want on the toolbar? Give some specifics and I may be able to point you in the right direction.
Re: Styles to Toolbar
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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.
Re: Styles to Toolbar
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
Search under my name I posted yesterday the code in VLISP to do what you want at another post.
