PDA

View Full Version : 2011 Do Ribbon tools not use Layer Keys???



kyle.martens
2012-03-21, 02:48 AM
Perhaps this is a stupid question but how do I get the dims and mtext etc in the Ribbon tools to come in on the right layer and color just like I do with the tool pallets?
I try to tell people in the office to use the tool pallet content because it is set up to our corp standards. However the Ribbon tools are right there in front of them but they are 'dumb' tools.
We have a standard template file loaded by default with Layer Keys. Not sure why the Ribbon tools aren't using it.
Thanks.

cadtag
2012-03-21, 04:27 PM
are you running Architecture or MEP? if so, check that the Ribbon and tool palettes are using the same calle, eg AMEPPOWERDIM vs DIM

kyle.martens
2012-03-22, 01:24 AM
Sorry, I don't follow. AMEPPOWERDIM ??? is that the macro I need to use?
I am using AutoCAD Arch 2011.
For example, I have regular 5/65th Annotative MTEXT on the pallet. Under the properties for that tool I link it to a Layer Key ANNOBJ which brings it in on A-ANNO-NOTE Layer.
I can't seem to find that type of properties to apply to the MTEXT that are either on the Ribbon or available for the Ribbon in the CUI editor.
Thanks

Tom Beauford
2012-03-22, 11:29 AM
Tool Palettes and the CUIX are as different as night & day. All the Ribbons, Workspaces, Menus, Toolbars, etc... are stored in the CUIX. The Tool Palettes are seperate files that work completely different.

kyle.martens
2012-03-23, 09:17 PM
I understand that they are different but why can't the content on the Ribbon use Layer Keys. If I use AEC content from the Ribbon it will come in on the right layer etc. But what about MTEXT and Dims? Why can't they be linked to Layer Keys?

BlackBox
2012-03-24, 06:58 PM
FWIW -

Non-Aec* entities = AutoCAD entities... AutoCAD entities can be placed on any layer.

If only specific entities (inserted when you use a Ribbon button) are to be placed on a specific layer, then consider either setting a specific layer current then restoring original layer post-insert, or simply insert a block (saved to the network?) and explode it.

If all DIMs are to be placed on the same layer, then I'd recommend using a Command Reactor. This is what we use in our deployments, which automagically place all MVIEWs, XREFs, Images, PDFs, etc. come in on the right layer(s) without any user action (other than the insert/attachment command, etc.).

If you're not adept at coding Visual LISP Reactors, Lee Mac has a really good one you can use as a starting point (linked -->): Layer Director (http://lee-mac.com/layerdirector.html)




http://lee-mac.com/lisp/gifs/LayerDirector.gif

HTH

jaberwok
2012-03-24, 11:24 PM
I understand that they are different but why can't the content on the Ribbon use Layer Keys. If I use AEC content from the Ribbon it will come in on the right layer etc. But what about MTEXT and Dims? Why can't they be linked to Layer Keys?

So - why use the ribbon?
(rhetorical question)

cadtag
2012-03-26, 07:49 PM
FWIW -

Non-Aec* entities = AutoCAD entities... AutoCAD entities can be placed on any layer.

If only specific entities (inserted when you use a Ribbon button) are to be placed on a specific layer, then consider either setting a specific layer current then restoring original layer post-insert, or simply insert a block (saved to the network?) and explode it.

If all DIMs are to be placed on the same layer, then I'd recommend using a Command Reactor. This is what we use in our deployments, which automagically place all MVIEWs, XREFs, Images, PDFs, etc. come in on the right layer(s) without any user action (other than the insert/attachment command, etc.).

If you're not adept at coding Visual LISP Reactors, Lee Mac has a really good one you can use as a starting point (linked -->): Layer Director (http://lee-mac.com/layerdirector.html)



HTH

LayerKeys are a different concept -- rather like description keys with civil points. but extended to other objects - similar to the old softdesk tools. This lets an AA user change between standards readily by pointing to a different layerkey file. Client "A" wants all dimension entities on A-ANNO-DIMS, client "B" wants "DIMS", client C uses the British standards. By pointing the Arch dwg to the various layer key files, the same command handles the changes automagically without user intervention.

Bascially abstracting the layer away from the entitiy, and getting a step closer to a 'project' concept in CAD. By identifying the command used in the tool palette, the OP ought to be able to modify the Ribbon to call the 'special' Arch dimension command the can use Layer Keys. I don't have Autodesk Architecture handy to check, so that's theoretical.

Reactors are great, but LayerKeys add a lot of flexibility to cad management, without needing to get into programming. They do take some setting up for each set of standards, but after that it's easy(er) to rock and roll with different requirements.

BlackBox
2012-03-27, 05:54 AM
Interesting... I just CONDitionally evaluate the active profile for the predefined layers that my reactor(s) implement. Thanks for the info though.

dgorsman
2012-03-27, 06:44 PM
"Layer keys" are very similar to what I've implemented here, although without reactors for the most part. We have any number of clients to support, with multiple applications. No way that was going to fly with umpteen different profiles, so instead I adopted a nmemonic naming system for the various things needed to be standardized. For example, the code calls for the layer nmemonic "TEXT-MEDIUM" and depending on the active client the appropriate layer name is returned.