Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

"Set current view as..." shortcut

12 REPLIES 12
SOLVED
Reply
Message 1 of 13
cad
Enthusiast
1811 Views, 12 Replies

"Set current view as..." shortcut

Is there any way to create a shortcut for "Set current view as...front"?

My college would like to avoid too many clicks.

Thanks.

12 REPLIES 12
Message 2 of 13
mdavis22569
in reply to: cad

iLogic ...

 

The clicking on the cube is a lot of work?


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 3 of 13
mcgyvr
in reply to: cad


@Anonymous wrote:

Is there any way to create a shortcut for "Set current view as...front"?

My college would like to avoid too many clicks.

Thanks.


@cad Please explain why you need to do the "Set current view as...front" so many times that this is an issue?

Did you know you can modify your templates orientation so you start out on the front vs top or whatever?

Or even adjust the "tools...application options.. part tab" and change the plane which you start a new part on...

 



-------------------------------------------------------------------------------------------
Inventor 2023 - Dell Precision 5570

Did you find this reply helpful ? If so please use the Accept Solution button below.
Maybe buy me a beer through Venmo @mcgyvr1269
Message 4 of 13
cad
Enthusiast
in reply to: mcgyvr


@mcgyvr wrote:

@cad Please explain why you need to do the "Set current view as...front" so many times that this is an issue?

Did you know you can modify your templates orientation so you start out on the front vs top or whatever?

Or even adjust the "tools...application options.. part tab" and change the plane which you start a new part on...

 


I haven't verified other solutions, but what my college is explaining:

when the assembly is made from a multibody, often the normal views of some of the single parts are not perfect for placing dimensions.

 

Message 5 of 13
mdavis22569
in reply to: cad

Can you post and example ? 

 

I'm sure we can come up with a solution for you ...

 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 6 of 13
johnsonshiue
in reply to: cad

Hi! I guess he does not like the ViewCube orientation in some parts or assemblies right? If yes, he might want to consider changing the part and assembly templates so that the newly create files have the desirable orientation. For existing files, he will have to change one by one unfortunately.

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 7 of 13
cad
Enthusiast
in reply to: mdavis22569

Thanks all of you for the support.

Please find attached an ipt file.

In the screencast I tried first placing dimensions without changing the views.

You can see that it's a bit long(many clicks).

After I changed the front view.

Message 8 of 13
mdavis22569
in reply to: cad

can you share the screencast 


Did you find this reply helpful ? If so please use the Accept as Solution or Kudos button below.

---------
Mike Davis

EESignature

Message 9 of 13
cad
Enthusiast
in reply to: mdavis22569


@mdavis22569 wrote:

can you share the screencast 


I can visualize the screencast (signed off as well), so I think is shared.

Message 10 of 13
cad
Enthusiast
in reply to: mdavis22569


@mdavis22569 wrote:

can you share the screencast 


Any idea? I am not good in Ilogic. I can't figure out how to write this.

Message 11 of 13
Curtis_Waguespack
in reply to: cad


cad wrote:

Any idea? I am not good in Ilogic. I can't figure out how to write this.


Hi cad,

 

I've done this in the past, but I'm not sure I'll have the time to look at this today.

 

If you search this forum and/or the Inventor Customization forum ( http://forums.autodesk.com/t5/Autodesk-Inventor-Customization/bd-p/120 ) you might be able to find a couple of post where we used ilogic to set the view cube and then save out a thumbnail image on save, etc. Those examples will get you started.

I'll try to look in on this topic next week, but might forget, so give it a bump if needed.

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

 

 

Message 12 of 13
Curtis_Waguespack
in reply to: cad

Hi cad,

 

I got a little confused as to what you were after, thinking it was more involved.

 

Unless I'm still confused, this line is all you need:

 

ThisApplication.CommandManager.ControlDefinitions("AppViewCubeViewFrontCmd").Execute

 

 

If you want to set the Front and the Home view (using iso top left) this will do it:

 

'set current as front view
ThisApplication.CommandManager.ControlDefinitions("AppViewCubeViewFrontCmd").Execute

'set to iso view
Dim oCamera As Camera 
oCamera = ThisApplication.ActiveView.Camera 
oCamera.ViewOrientationType = 10760 'Iso Top Left View Orientation 
oCamera.Apply
'set current iso as home view
ThisApplication.CommandManager.ControlDefinitions("AppViewCubeViewHomeFloatingCmd").Execute

'return to front
oCamera.ViewOrientationType = 10764 'Front View Orientation 
oCamera.Apply

 

I would make this an external ilogic rule, so it is available for all files.

 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com

Message 13 of 13
cad
Enthusiast
in reply to: Curtis_Waguespack


@Curtis_Waguespack wrote:

Hi cad,

 

I got a little confused as to what you were after, thinking it was more involved.

 

Unless I'm still confused, this line is all you need:

 

ThisApplication.CommandManager.ControlDefinitions("AppViewCubeViewFrontCmd").Execute

 

 

If you want to set the Front and the Home view (using iso top left) this will do it:

 

'set current as front view
ThisApplication.CommandManager.ControlDefinitions("AppViewCubeViewFrontCmd").Execute

'set to iso view
Dim oCamera As Camera 
oCamera = ThisApplication.ActiveView.Camera 
oCamera.ViewOrientationType = 10760 'Iso Top Left View Orientation 
oCamera.Apply
'set current iso as home view
ThisApplication.CommandManager.ControlDefinitions("AppViewCubeViewHomeFloatingCmd").Execute

'return to front
oCamera.ViewOrientationType = 10764 'Front View Orientation 
oCamera.Apply

 

I would make this an external ilogic rule, so it is available for all files.

 

 

I hope this helps.
Best of luck to you in all of your Inventor pursuits,
Curtis
http://inventortrenches.blogspot.com


Thank you Curtis,

I created this macro (since you can't set shortcuts to Ilogic rules)

Sub SET.FRONT()
  ThisApplication.CommandManager.ControlDefinitions("AppViewCubeViewFrontCmd").Execute
End Sub

 and it's working.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report