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   14781×  
   
this tip shared by ARKANCE experts applies to: ACAD ·

See also:
Tip 15141:How to create a point at the center of gravity of a sketch curve in Autodesk Fusion.
Tip 15053:AutoCAD Mechanical 2027 reports that gendimz.mld files cannot be found.
Tip 15040:Autodesk Flex Token Calculator - "Pay-as-you-go" pricing for licenses and services.
Tip 15022:How to control the agentic mode in Autodesk Assistant (AI)?
Tip 14935:"Mechanical" osnap modes in AutoCAD Mechanical.


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
  





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