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

See also:
Tip 14718:Activating contextual learning in Eagle Point Pinnacle.
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.


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:
Take advantage of orthophotos, point clouds, and design files. Get better quality design changes faster with Pointscene 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