CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE

CAD tip CAD tip # 5362:

Question

CAD 
 %  platform  category 
A
To switch to a different AutoCAD profile from a macro, script or a user application, you can use the command:
_VBASTMT
ThisDrawing.Application.Preferences.Profiles.ActiveProfile = "PROFILENAME"
Alternatively you can use a VisualLISP function:
(defun SetProfile (profilename)
 (vl-load-com)
 (vla-put-ActiveProfile
  (vla-get-Profiles
   (vla-get-Preferences
    (vlax-get-acad-object)
   )
  )
  profilename
 )
)
You may also make use of the Workspace functionality.
ACAD
100% *CAD
15.1.2007    14234×  
this tip shared by ARKANCE experts applies to: AutoCAD ·

See also:
Tip 14829:Where can I get the original ACAD.DWT/ACADISO.DWT template drawing?
Tip 14826:AutoCAD runs slower on a laptop docked in a docking station.
Tip 14753:Overview of startup parameters for acad.exe and acadlt.exe (runstring)
Tip 14718:Activating contextual learning in Eagle Point Pinnacle.
Tip 14354:Bit-encoded value of the undocumented variable INPUTSEARCHOPTIONFLAGS.


Back    All CAD Tips



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
  



Featuring:
Increase your productivity with our set of add-on functions for Autodesk Inventor
Be.Smart T4I More info


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