#1
|
|||
|
|||
Action in all viewports
I used the macro recorder to get the line of code below.
How can this work for the current active viewport not just "vport1"? " uic_set_vp_direction 1.0,1.0,-1.0 "vport1" fit_vp "vport1" update_screen " Thanks! Mike |
#2
|
|||
|
|||
Re: Action in all viewports
Quote:
Welcome to the forums! I think what you're looking for is: " uic_set_vp_direction 1.0,1.0,-1.0 (oli:sd-inq-current-vp) fit_vp (oli:sd-inq-current-vp) update_screen " Of course, if you're going to be doing a lot of calls that involve the current viewport, it would be more efficient to inquire it once and re-use it. But the above code should work nicely for what you're doing. Again, welcome! Good luck! andy
__________________
Andy Poulsen AI MAXTools: Dream. Design. Done. It's that easy! Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+! See them in action at www.ai-maxtools.com and then try them for yourself -- FREE! |
#3
|
|||
|
|||
Re: Action in all viewports
Thanks Andy,
That worked. I"m new to LISP in CoCreate, but used AutoLISP a long time ago in AutoCAD. I tried that, but I was missing the "oli:" Thanks again! Mike |
#4
|
|||
|
|||
Re: Action in all viewports
Quote:
No problem -- glad it helped! If you're going to do much lisp programming, you definitely want to make sure you set up your own lisp package, and use the "oli" package since it has just about all of the commands you'll need. Let me know know if you have any questions. Have fun! andy
__________________
Andy Poulsen AI MAXTools: Dream. Design. Done. It's that easy! Add-ins bringing new functionality and speed to Creo Elements/Direct and CoCreate products. Now available for v17-v20+! See them in action at www.ai-maxtools.com and then try them for yourself -- FREE! |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | Rate This Thread |
|
|