Anuncios

The Autodesk Community Forums has a new look. Read more about what's changed on the Community Announcements board.

View Cube Commands for button macro

Anonymous

View Cube Commands for button macro

Anonymous
No aplicable

Good day to everyone.

 

I'm trying to finish a button macro that will allow me to create a vertical section view with as little clicking as possible in my environment. I'm not using Map or Civil so i'm trying to sort this out without those capabilities. I'm also not able to use Lisp routines to do this (which I'd like to). I am resorting to button macros to accomplish this feat.

 

I've started to work on my button macro and I'm able to get the first half of it completed; defining my new horizontal rotated plane. The next half, vertically rotating my view so that it's normal to my rotated horizontal plane is the difficult part. I can do it manually after this point but I would like the steps to be incorporated into my button macro so that I can rotate horizontally and vertically with less clicks.

 

I'm outlining my steps below so you can follow my logic

 

Steps Involved:

 

1. set new rotated horizontal UCS Plane (uses current macro ^C^C_SETPLANE;2p;\\Plan;;) (image 01)

2. rename UCS in UCSMAN to Plan view (not necessary but helps me keep track of my UCS's)

3. on the View Cube I click on the Front View triangle below TOP (image 04)

4. type UCS then V to save my UCS view and rename in UCSMAN as Vertical Section.

 

By following these steps I'm essentially creating a working slice that I can easily configure without a lot of nuisance steps.

 

Is there an actual shortcut or macro function command for the view cube FRONT toggle? if so, that is what's missing from my above macro.

 

If you're wondering why I'm not using the FRONT option from the View Controls it's due to the fact that the entities that I create after select FRONT are actually not drawn in the correct normal plane that I'm expecting. (images 05-06)

 

Thank you in advance.

 

Regards,

Sean

 

0 Me gusta
Responder
1.185 Vistas
9 Respuestas
Respuestas (9)

tcorey
Mentor
Mentor

Instead of using the viewcube, use: -view;O;front or -View,O;Top, etc.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Me gusta

Anonymous
No aplicable

Hi Tim,

 

I tried your option and it the same result as using the FRONT option from the view controls. My intention is to create a vertical section through my two defined points and any entity that I create in the new 'vertical plane' will be in my defined plane. The front option from the view controls and from _view unfortunately do not accomplish this.

 

Am I missing a setting(s) that I may need to perform first to the view controls? The only way I'm able to digitize in the exact same plane that I have created my vertical plane is with the viewcube.

 

Sean

0 Me gusta

Anonymous
No aplicable

Why are you not able to use lisp?? LT??

0 Me gusta

Anonymous
No aplicable

Hey Randall,

 

I cannot use Lisp since the AutoCAD I'm technically using OEM. Lisp functionality is not allowed :cara_de_decepción:

 

Sean

0 Me gusta

Anonymous
No aplicable

not allowed by whom?? 

0 Me gusta

tcorey
Mentor
Mentor

If you want the UCS to match the view, change the macro:

 

^C^C-View;Orthographic;Front;^C^CUCS;View

 

 



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Me gusta

Anonymous
No aplicable

Hi Tim,

 

I tried your macro and it still didn't work. I'm not sure why the view cube treats the view differently then the actual view controls. I've attached a little video for you to see what I'm trying to get at.

 

I greatly appreciate you help with this. I've been going out of my mind trying to sort this. My thoughts are as follows, if I can get what I want with a series of clicks then a macro should do the same.

 

Sean

 

 

0 Me gusta

tcorey
Mentor
Mentor

You're using Setplane (?) to set a working plane along the line and you want ucs to automatically match when the view changes. Just set the system variable UCSFOLLOW to 1 before running your macro.

 

I would like to see the macro as you have it now.



Tim Corey
MicroCAD Training and Consulting, Inc.
Redding, CA
Autodesk Gold Reseller

New knowledge is the most valuable commodity on earth. -- Kurt Vonnegut
0 Me gusta

Anonymous
No aplicable

HI Tim,

 

The Set Plane function I'm using is a custom function that was done in house and this essentially allows me to create virtually any plane I want rather easily instead of using the UCS options manually in the command line. When I used it in the video I needed it to horizontally rotate the design window for me and it successfully does that.

 

I've tried to break down my workflow process and then mimic that behaviour in my macro. Once I establish my horizontal component to my intended vertical section I then use the front triangle toggle in the View Cube to put the design window into my necessary section view.  Typically I would like to have only a few UCS's. That really depends on the type of work I'd be doing - usually though I'm looking at a 1 or 2 plan views and 1 or 2 section views (long section and cross-section). I have played around UCSFOLLOWS in my macro but I wasn't able to sort it out so I just use Plan;;. Whenever I'm doing a 2 point plane (horizontal or Vertical) plan;; is the easiest way to get me to plan of the horizontal component (my macro writing skills are not strong so I'm teaching/learning for myself as i'm going :cara_con_una_leve_sonrisa: ).

 

I also tried to record a macro and then replay it back. It worked based on the data I inputed when recorded the macro but I'm not able to dissect the macro itself and see the functions actually used in it. If I can do that I may be able to see what function is called when I click on the Front Triangle view cube object. Any ideas on this?

 

Regards,

Sean

 

 

0 Me gusta