Author Topic: Civil3D - Keyboard Shortcuts with Styles  (Read 6466 times)

0 Members and 1 Guest are viewing this topic.

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Civil3D - Keyboard Shortcuts with Styles
« on: August 19, 2014, 07:39:26 AM »
Ok. I have another brain storm. I know I could probably use this for other things with styles, but for now it is geared to surfaces. I would like to be able to type in a (SF1) which would take the surface style to a (No Display), or (SF2) which would show the surface style to (Contours). So my questions is there away I can say a command then in the script or lisp type is what they would equal?

example
SF1   No Display
SF2   Contours
SF3   Triangles
SF4   Slope Arrows


The reason I am asking it to be like this is for easy customization if the user changes a style name he can then go into the lisp and update what command should equal.

It would be cool to do this with pipe styles too.

Just a thought.
Civil3D 2020

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #1 on: August 19, 2014, 08:46:43 AM »
I'm having a brain storm right here...

Quote
if the user changes a style name he can then go into the lisp and update what command should equal


can't even imagine the lost productivity created by users randomly changing style names...

how does anyone know what anything ever really is?

and then add in the admin of editing some lisp file to keep up with an ever growing menagerie of object style names....


in a best practice environment one is not constantly changing, nor introducing new random style names


just say no to this....
Be your Best


Michael Farrell
http://primeservicesglobal.com/

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #2 on: August 19, 2014, 08:53:22 AM »
Michael, Hey I see what you are saying. Within our production environment, we have a set number of styles we use. For us, that does not change.

I was making a suggestion for if other people in the forum want to customize the lisp that they can.

I hope that clears up the confusion.

Civil3D 2020

Jeff_M

  • King Gator
  • Posts: 4087
  • C3D user & customizer
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #3 on: August 19, 2014, 09:07:54 AM »
Here's a video\showing the Surface Display Toggle I added to the Sincpac-C3D earlier this year. Yes, it alters the display properties of the current style, but it records the original status and has the option to reset it back to the original display. Even if the drawing is saved, closed, reopened, the original state can be restored. This is real handy during design and or editing existing ground in detailed areas.

https://chronicle.autodesk.com/Main/Details/360872b7-8a13-4d69-bd69-d28a3370a287

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #4 on: August 19, 2014, 09:09:00 AM »
Thank you Jeff, Again you are DAH man!
Civil3D 2020

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #5 on: August 19, 2014, 09:10:08 AM »
from that perspective...it could have some value....

my first read of it, was like inviting vampires, zombies, and changelings to dinner....

interesting for the first few minutes


and then nothing more than chaos and mayhem
Be your Best


Michael Farrell
http://primeservicesglobal.com/

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #6 on: August 19, 2014, 10:14:05 AM »
Again, I apologize about that. Sometimes (I) have all these ideas and you just start typing and expect what I type is clear... but later find out its no clearer than mud. So again, Sorry about that. But I do think this idea is good one. I don't know how many times a person Right clicks to edit or change a style thru there day.
Civil3D 2020

mjfarrell

  • Seagull
  • Posts: 14444
  • Every Student their own Lesson
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #7 on: August 19, 2014, 11:13:54 AM »
Again, I apologize about that. Sometimes (I) have all these ideas and you just start typing and expect what I type is clear... but later find out its no clearer than mud. So again, Sorry about that. But I do think this idea is good one. I don't know how many times a person Right clicks to edit or change a style thru there day.
Process fault....
Changing style = good

Editing Style = not so good

for clarity....one should have a style for nearly every purpose in Template

Then the user need only change the style to achieve the desired result (effect-drafted output)
Be your Best


Michael Farrell
http://primeservicesglobal.com/

sdunn

  • Newt
  • Posts: 90
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #8 on: August 19, 2014, 12:21:14 PM »
We took the approach of having buttons that allows the user to swap styles for surfaces depending on what they need to see.  We have 42 styles to accomplish this and the automation is done via lisp.

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #9 on: August 19, 2014, 12:23:03 PM »
Nice... That is very similar to what I am looking for... Something like that.
Civil3D 2020

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #10 on: August 19, 2014, 01:06:01 PM »
I found something that look like it might work. However, I am getting a LOAD Failed: "vercheck". We are using 2014. I was looking thru the lisp to try to update the version but that is not working either.

Thanks for any help!

http://www.cadtutor.net/forum/showthread.php?49417-Changing-CIV3d-contours-simply/page2

The attachment is from the web site above.
Civil3D 2020

sdunn

  • Newt
  • Posts: 90
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #11 on: August 19, 2014, 01:42:30 PM »
Use 10.3 for version 2014

         ((vl-string-search "R17.2" vrsn) (setq appstr "6.0")) ;09
         ((vl-string-search "R18.0" vrsn) (setq appstr "7.0")) ;10
         ((vl-string-search "R18.1" vrsn) (setq appstr "8.0")) ;11
         ((vl-string-search "R18.2" vrsn) (setq appstr "9.0")) ;12
         ((vl-string-search "R18.2" vrsn) (setq appstr "10.0")) ;13
         ((vl-string-search "R18.2" vrsn) (setq appstr "10.3")) ;14
         ((vl-string-search "R18.2" vrsn) (setq appstr "10.4")) ;15

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #12 on: August 19, 2014, 01:54:36 PM »
Tried it... no luck.
Civil3D 2020

sdunn

  • Newt
  • Posts: 90
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #13 on: August 19, 2014, 02:15:19 PM »
Sorry about that.  I forgot to change the Acad versions

         ((vl-string-search "R17.2" vrsn) (setq appstr "6.0")) ;09
         ((vl-string-search "R18.0" vrsn) (setq appstr "7.0")) ;10
         ((vl-string-search "R18.1" vrsn) (setq appstr "8.0")) ;11
         ((vl-string-search "R18.2" vrsn) (setq appstr "9.0")) ;12
         ((vl-string-search "R19.0" vrsn) (setq appstr "10.0")) ;13
         ((vl-string-search "R19.1" vrsn) (setq appstr "10.3")) ;14
         ((vl-string-search "R20.0" vrsn) (setq appstr "10.4")) ;15

I did test it with 2013 by adding the files to my support path and loading them manually.  I used the readme to create a command by cutting and pasting this into the command line:

(defun c:cc ()(load "vercheck")(load "listselect")(load "changecontours6")
)

You will get a dialog that shows the surfaces in the drawing and then a list of styles to choose from.
« Last Edit: August 19, 2014, 02:28:37 PM by sdunn »

MSTG007

  • Gator
  • Posts: 2598
  • I can't remeber what I already asked! I need help!
Re: Civil3D - Keyboard Shortcuts with Styles
« Reply #14 on: August 19, 2014, 02:21:14 PM »
Updated and still a no go. . . its ok. At least its something to work with. thank you.
Civil3D 2020