Jump to content

Named UCS and PLAN all in one LISP not working


Recommended Posts

Posted

I'll give it a try in a bit - got not much time to at moment - bit of a rush job on - AAARRGH! LOL :lol:

  • Replies 51
  • Created
  • Last Reply

Top Posters In This Topic

  • Lee Mac

    21

  • skipsophrenic

    17

  • uddfl

    4

  • GE13579

    3

Posted

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 :)

Posted

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?

Posted

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 :thumbsup: :)

Posted
Shall we see if the code can have more lines than the header this time :thumbsup: :)

 

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]

  • 8 months later...
Posted

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: ucs

Current 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: ucs

Current 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: ucs

Current 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...

Posted
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\

Posted

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!

Posted

Just an update- the above works well thank you Alan! Sorry I've been calling you by the wrong name! Well... it's Monday... :oops:

 

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 :)

Posted
Just an update- the above works well thank you Alan! Sorry I've been calling you by the wrong name! Well... it's Monday... :oops:

 

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.

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...