Over 1.116.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
The new Beam calculator, Spirograph generator and Regression curves in the Converters section.
New AutoCAD 2027 commands and sys.variables
CAD tip # 5362:
Question
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
15.1.2007
14432×
this tip shared by ARKANCE experts applies to: AutoCAD ·
![CAD Forum - ARKANCE Community - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](../common/arkance_186.png)

