skipsophrenic Posted February 10, 2009 Author Posted February 10, 2009 I'll give it a try in a bit - got not much time to at moment - bit of a rush job on - AAARRGH! LOL Quote
Lee Mac Posted February 10, 2009 Posted February 10, 2009 Hahah, let me know the results once the rush job has finished! Don't let the boss catch you on here! He'll only think its an angling site Quote
skipsophrenic Posted February 10, 2009 Author Posted February 10, 2009 thanks for the help Lee, that's done the trick I'm off to start a new lisp now (not too complicated i hope) Want me to include you in the title header? Quote
Lee Mac Posted February 10, 2009 Posted February 10, 2009 Excellent! Glad it works like you want it to As for the title header.... only include me if I have helped you with it... credit where credit's due and all Shall we see if the code can have more lines than the header this time Quote
skipsophrenic Posted February 13, 2009 Author Posted February 13, 2009 Shall we see if the code can have more lines than the header this time for the next 0ne I hope so! LOL For the one pertaining to this thread - headder for your approval? Any changes/suggestions? ;** THIS ROUTINE IS FOR RESTORING ;** A SAVED UCS AND RUNNING THE ;** PLAN COMMAND AT THE SAME TIME ;** ALSO GOES TO A USER CHOSEN LAYOUT ;** AND STARTS VIEWPORT COMMAND ;** ;** ;** COPYRIGHT (C) PETER SMITH & LEE MAC ;** ;** ;** ORIGINAL CONCEPT/PROGRAMMING BY PETER SMITH ;** PROGRAMMING/DE-BUGGING BY LEE MAC ;** ;** PROVIDED FOR USE BY ALL PLEASE ;** INCLUDE THIS HEADER WHEN COPYING ;** ;** CONTACT TO REPORT PROBLEMS: [email="skipsophrenic@hotmail.com"]skipsophrenic@hotmail.com[/email] Quote
Lee Mac Posted February 13, 2009 Posted February 13, 2009 Haha, I really don't mind too much ~ but thanks for the mention Quote
GE13579 Posted October 23, 2009 Posted October 23, 2009 I'm looking at something along these lines, but am wondering if it can be added to a toolbar button? What I'm aiming for is a button which prompts the commands UCS- RE, asks for a name, then continues with PLAN- CURRENT UCS. Is this possible to create in a button, or does it need to be in a LISP form? Also just to clarify a couple of points earlier in this thread; NA is a step which can be bypassed in 2009- not sure about 2008, but you can use either command sequence, Command: ucsCurrent ucs name: SF04 Specify origin of UCS or [Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] : na Enter an option [Restore/Save/Delete/?]: re Enter name of UCS to restore or [?]: Command: ucsCurrent ucs name: SF04 Specify origin of UCS or [Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] : re Enter name of UCS to restore or [?]: You can even drop the 'e' from 're': Command: ucsCurrent ucs name: SF04 Specify origin of UCS or [Face/NAmed/OBject/Previous/View/World/X/Y/Z/ZAxis] : r Enter name of UCS to restore or [?]: Also, VPORTS is a command for MS viewports, ie it will break up the model space into x number of view ports, it's different to the MVIEW command. Thanks in advance for any help with this. I must admit LISP and macros aren't my strongest point so please bear with me... And thanks to all who have contributed to this thread as I might well be utilising Skips'/ LeeMacs LISP routine if the macro option isn't possible... Quote
alanjt Posted October 23, 2009 Posted October 23, 2009 I'm looking at something along these lines, but am wondering if it can be added to a toolbar button? What I'm aiming for is a button which prompts the commands UCS- RE, asks for a name, then continues with PLAN- CURRENT UCS. Is this possible to create in a button, or does it need to be in a LISP form? Also just to clarify a couple of points earlier in this thread; NA is a step which can be bypassed in 2009- not sure about 2008, but you can use either command sequence, You can even drop the 'e' from 're': Also, VPORTS is a command for MS viewports, ie it will break up the model space into x number of view ports, it's different to the MVIEW command. Thanks in advance for any help with this. I must admit LISP and macros aren't my strongest point so please bear with me... And thanks to all who have contributed to this thread as I might well be utilising Skips'/ LeeMacs LISP routine if the macro option isn't possible... It's possible to make it into a button (not sure why you would go that route when LISP is so much better), but it's possible. Just use a ";" to signify when a call is finished and a \ when you want to pause for user input. ^C^CUCS;re\ Quote
GE13579 Posted October 26, 2009 Posted October 26, 2009 Hi Alan, Thank you for your reply. I've never used macros before to create a button, but just to clarify, (I'm also wondering why you didn't include the ';' between the '^C^C' and the UCS command- is this standard?) would the macro say for UCS, W, PLAN, CURRENT UCS look like- ^C^CUCS;W;PLAN;C Could I also assign buttons for specific UCS' such as- ^C^CUCS;R;;PLAN;C Then a general one with which I could name a UCS from- ^C^CUCS;R\PLAN;C Can you confirm the above? Cheers Alan! Quote
GE13579 Posted October 26, 2009 Posted October 26, 2009 Just an update- the above works well thank you Alan! Sorry I've been calling you by the wrong name! Well... it's Monday... Sorry about that! The only notes are that I missed off the ';' at the end of each and I couldn't get the last one to work but happened upon the UCSMAN command which kind of covers that, just i need an additional button Quote
alanjt Posted October 26, 2009 Posted October 26, 2009 Just an update- the above works well thank you Alan! Sorry I've been calling you by the wrong name! Well... it's Monday... Sorry about that! The only notes are that I missed off the ';' at the end of each and I couldn't get the last one to work but happened upon the UCSMAN command which kind of covers that, just i need an additional button No sweat. I'm glad you got it worked out. I'm not much of a macro writer since I know how to write LISP, but I know enough to point someone in the right direction. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.