CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor and other Autodesk products [www.cadforum.cz]
Cesky English Deutsch
Login/Register:
 Visitors: 2768 

CAD tip CAD tip # 9350:

Question CAD 
 %  platform  category 
Q - question

How to move the draw order of all images or hatches to back?

A - answer The command DRAWORDER requests to select individual objects. But if you need to move to back (under all other drawing entities) all images or hatches, you can simplify this process with a menu macro.

In the full version of AutoCAD you can add (using CUI) the following command - LISP expression - to your ribbon or to a keyboard shortcut. It selects all drawing objects of the type Image and changes their draw order to back:

(if (setq _obr (ssget "_X" ‘((0 . "IMAGE"))))(command "_DRAWORDER" _obr "" "_BACK"))

Similarly you can move the objects "HATCH" instead of "IMAGE" - but there is already an existing internal command for this - HATCHTOBACK. The above listed macro is something like an "IMAGETOBACK".

In AutoCAD LT, where there is no AutoLISP, you can use a menu macro with similar functionality:

^C^CSELECTSIMILARMODE;0;_SELECTSIMILAR;\;_DRAWORDER;_back;SELECTSIMILARMODE;130;

It prompts to select an object (select e.g. an image) and then it moves all objects of the same type (e.g. all images) to back.

NOTE: more detailed options for controlling draworder by object type offers the CADstudio DOBT utility.

ACADLT
100% *  CAD 
22.7.2013    4971x  
Comments   Tell a friend
applies to: AutoCAD · AutoCAD LT ·

See also:
Tip 9255:Align image, change width/height independently.
Tip 8754:Thumbnail settings can influence AutoCAD DWG file size.
Tip 7869:New raster formats supported in AutoCAD 2012.
Tip 7654:Three methods for transparent images in AutoCAD.
Tip 7503:Autodesk 3ds Max keyboard shortcuts.


Back   All CAD Tips All CAD tips&tricks

Interactive display and polygon statistics of FBX, DXF, 3DS scenes « | » How to add custom paper format to AutoCAD? (grayed)

Have we helped you? If you want to support the CAD Forum web service, consider buying one of our CAD applications, or our custom software development offerings, or donating via PayPal (see above). You may also add a link to your web - like this "fan" link: CAD Forum - tips, utilities, blocks for Autodesk products
CAD:    OS:    Categ: 
Text:  FAQ glossary   



Featuring:
Use Google Earth images in your AutoCAD projects with the Plex.Earth Tools More info


Please use these tips at your own risk.
CAD Studio (Xanadu) is not responsible for possible problems that may occur as a result of using any of these tips.
TOPlist