API Instructions: Adding a Custom Property to SOLIDWORKS files

add custom properties to SOLIDWORKS and designlibrary components

Instructions: Create Custom Property

This macro is used to add custom properties to SOLIDWORKS and designlibrary components.


  • Place the CreateCustomProperty folder extracted from the CreateCustomProperty.zip file in any desired location.
  • You can review the macro by selecting Tools > Macro > Edit and navigating to the .swp folder contained in the CreateCustomProperty.zip file


This file will add custom properties SOLIDWORKS parts, assemblies, drawings, and library feature parts such as weldment profiles. This will apply this property to all the files in a directory as well as any files found in sub directories.


  • Run the Macro by Selecting Tools > Macro > Run > “CreateCustomProperty.swp”
SOLIDWORKS API Create Custom Property
  • Once the macro initiated the user will be given a message box asking for the custom property and value for that custom property.
Create or Update Custom Property
  • Enter the property and value into the fields provided and choose “Add Custom Property”
  • The user will then be presented with a second window to navigate to the folder to apply this to.
Browse for Folder API Custom Property
  • Once Ok is selected the macro will add the custom property to the files in the folder selected and all sub folders of that parent folder.
  • This will apply to all parts, assemblies, drawings, and library feature parts.





Usage Agreement

The software/macro/customization is supplied “as is” and all use is at your own risk. GoEngineer disclaims all warranties of any kind, either express or implied, as to the features and functionality. Neither this agreement nor any documentation furnished under it is intended to neither express or imply any warranty that the operation of the software will be error‐free nor cause undesirable results on files that it is ran against. Under no circumstances shall GoEngineer be liable to any user for direct, indirect, incidental, consequential, special, or exemplary damages, arising from or relating to this agreement, the software, or users use or misuse of the software or any other services provided by GoEngineer. Such limitation of liability shall apply whether the damages arise from the use or misuse of the software or any other services supplied by GoEngineer (including such damages incurred by third parties), or errors of the software. Use of the software/macro/customization constitutes acceptance to this agreement.

Additional Resources

Take Advantage of GoEngineer’s Extensive Knowledge Base and Resources

GoEngineer Knowledge Base and website search

Find a Solution

Our robust Knowledge Base contains over 12,000 resources to help answer your product design questions. From basic CAD questions to in-depth guides and tutorials, find your solution here. Find a Solution

Get Certified Professional SOLIDWORKS Training at GoEngineer


Improve your skills with professional training and certifications in SOLIDWORKS, CAM, 3D Printing, and 3D Scanning offered four ways: self-paced, online, on-site, or in-classroom. Certified Training Courses

GoEngineer blog page


#1 Technical Resource Worldwide - Right at your fingertips. Search or browse through hundreds of SOLIDWORKS tips & tricks, additive manufacturing product developments, announcements, how-to guides, and tutorials. Blog

GoEngineer YouTube Channel

YouTube Channel

Our YouTube channel hosts hundreds of educational tutorials, product demonstrations, recorded webinars, and best practices for all of our products and services. GoEngineer's YouTube Channel

Order 3D printing materials and consumables from GoEngineer


Order 3D printing materials and consumables, enroll in SOLIDWORKS training classes, and buy official GoEngineer gear directly from our online store. Online Store

Free SOLIDWORKS tools offered from GoEngineer


Enjoy this collection of small ‘macros’ that were tailored to help our customers. These free SOLIDWORKS tools are for you to use, review, and modify. SOLIDWORKS Automation Tools

Webinars offered by GoEngineer


Our engineering webinars are hosted by some of the top experts in the industry. They are always recorded, always free, and always offer a live Q&A. WEBINARS

3D design and part printing services available at GoEngineer

3D Printing Services

Need to 3D print a part? Our Additive Manufacturing experts will 3D print your part and deliver it to you using the latest technology on one of our professional FDM, PolyJet, SL, or Metal 3D printers. 3D Printing Services