CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] ARKANCE | CONTACT - CZ | SK | EN | DE
Over 1.096.000 registered users (EN+CZ). AutoCAD tips, Inventor tips, Revit tips. Try the new precise Engineering calculator. New AutoCAD 2026 commands and variables.

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    13910×  
applies to: AutoCAD ·

See also:
Tip 14354:Bit-encoded value of the undocumented variable INPUTSEARCHOPTIONFLAGS.
Tip 14240:How to simplify an uneven profile imported via DXF into Autodesk Fusion?
Tip 14204:How to draw a parabola in Autodesk Fusion (or other 2D/3D curves).
Tip 14121:The default dimension style setting in AutoCAD Mechanical does not "hold", it reverts to AM_ISO.
Tip 13802:Dual-color hatches in AutoCAD.


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 AutoCAD Civil 3D
CADstudio Civil Tools 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