Anuncios

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

Kyle.Pederson
929 Vistas, 11 Respuestas

New User - Aligned Dimension with Precision button

Is it possible to create a button for an aligned dimension that has a different precision than what my dimension style calls for?

 

I'd like to have the current aligned dimension button to follow my companies dimension style, but there are times where I would need a new button that's similar but with a higher precision. id prefer to not have to place the dimension then right click and select precision. (maybe something faster)

 

Using AutoCAD 2018

 

Thanks for the help, I recently have just Switched back to AutoCAD after using PTC Creo Elements Direct Modeling for the past 7 years.

Etiquetas (3)
WarrenGeissler
en respuesta a: Kyle.Pederson

You can build a button to do what you are doing already but automatically. The macro would be:

^C^C_dimaligned;\\\aidimprec;4;l;;

 

Cancel, dimaligned, (pause 3 times for selections), dimprecision, 4 (change to whatever number you want), LAST (object created) enter out of the command


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

Kyle.Pederson
en respuesta a: Kyle.Pederson

Warren, when i use that macro it ask for a dimension first. Id like to be aboe to just select a point without selecting a dimension first.
WarrenGeissler
en respuesta a: Kyle.Pederson

Here's a quick video of putting this macro on a tool palette. Make sure that when you copy the macro in there are NO trailing spaces.

 

 

 

 

 

 


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

RobDraw
en respuesta a: Kyle.Pederson

Why not just make another dimstyle?

 

You could make the new dimstyle current for as long as you need it or you could make two dimaligned buttons, one would make the standard style current, the other would make the new one current before placing the dimension.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
Kyle.Pederson
en respuesta a: WarrenGeissler

Warren,

 

Would I need to add something to the macro to allow me to after the dimension is placed to press enter to go back into the command again? Currently after placing the dimension when I hit enter it pulls up "AIDIMPREC" enter option:

 

Regards,

WarrenGeissler
en respuesta a: Kyle.Pederson

The down side of a macro is they cannot be re-executed like that. You can, however, build a LISP routine that can be re-executed that way. 


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

RobDraw
en respuesta a: Kyle.Pederson

Or you can make another dimstyle.

Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
WarrenGeissler
en respuesta a: Kyle.Pederson

My mistake - put an asterisk  (*) in front of the macro to repeat it until you hit escape. 


Warren Geissler
Drafting Manager Denver Water
_____________________________________________

Please ACCEPT AS SOLUTON if this works
(...and doesn't melt your computer or cause Armageddon)

RobDraw
en respuesta a: Kyle.Pederson

Why are you over-complicating this instead of using an additional dimstyle?


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.
Kyle.Pederson
en respuesta a: Kyle.Pederson

A macro seemed more appropriate for what im using the dimension for. It’s used for more precision when importing a google map image. Scaling the imported image to a dimension on google/bing maps. Then the dimension is deleted. I have no need for a 6 plce precision outside of that, so a button that would do it compared to a dimstyle seemed more appropriate. I’m new to AutoCAD so maybe i’ll find along the way dimstyle was the way to go
RobDraw
en respuesta a: Kyle.Pederson

What you wanted could have been accomplished without any additional buttons or code. Don't make the mistake of making customizations that can be accomplished with native commands. Over-customization can lead to disaster down the road. You are much better off finding out how it should be done and using customization to enhance the tools that are already there instead of recreating them.


Rob

Drafting is a breeze and Revit doesn't always work the way you think it should.