Hide Table of Contents
IconFiles Property (IMacroFeatureData)

Gets or sets the file names for the icons for this macro feature.

.NET Syntax

Visual Basic (Declaration) 
Property IconFiles As System.Object
Visual Basic (Usage) 
Dim instance As IMacroFeatureData
Dim value As System.Object
 
instance.IconFiles = value
 
value = instance.IconFiles
C# 
System.object IconFiles {get; set;}
C++/CLI 
property System.Object^ IconFiles {
   System.Object^ get();
   void set ( &   System.Object^ value);
}

Property Value

Array of the file names for the icons (see Remarks)

Remarks

The array of the file names for the icons can contain either three or nine strings.

Number of strings in array Types of images in this order Image format and sizes
Three
  1. Regular
  2. Suppressed
  3. Highlighted
  • Windows bitmap (*.bmp) format
  • 16 pixels wide X 18 pixels high

Nine

NOTES:

  • This size array is only valid for macro features created in parts, assemblies, and drawings in SOLIDWORKS 2017 and later.
  • SOLIDWORKS displays the appropriate images based on the current DPI setting of the display device.
  1. Regular small
  2. Suppressed small
  3. Highlighted small
  4. Regular medium
  5. Suppressed medium
  6. Highlighted medium
  7. Regular large
  8. Suppressed large
  9. Highlighted large

 

  • Windows bitmap (*.bmp) format
  • Recommended sizes are:
    • Small: 20 pixels wide X 20 pixels high
    • Medium: 32 pixels wide X 32 pixels high
    • Large: 40 pixels wide X 40 pixels high

You can specify either the full path name or just the file name for the strings; for example, c:\bitmaps\icon1.bmp or icon1.bmp.

If you change the bitmaps after inserting them with a macro feature into a SOLIDWORKS document, then the new bitmaps are not displayed until you exit and restart SOLIDWORKS.

See Accessing Selections that Define Features for additional details on using this property.

See Also

Availability

SOLIDWORKS 2004 FCS, Revision Number 12.0


Provide feedback on this topic

SOLIDWORKS welcomes your feedback concerning the presentation, accuracy, and thoroughness of the documentation. Use the form below to send your comments and suggestions about this topic directly to our documentation team. The documentation team cannot answer technical support questions. Click here for information about technical support.

* Required

 
*Email:  
Subject:   Feedback on Help Topics
Page:   IconFiles Property (IMacroFeatureData)
*Comment:  
*   I acknowledge I have read and I hereby accept the privacy policy under which my Personal Data will be used by Dassault Systèmes

Print Topic

Select the scope of content to print:

x

We have detected you are using a browser version older than Internet Explorer 7. For optimized display, we suggest upgrading your browser to Internet Explorer 7 or newer.

 Never show this message again
x

Web Help Content Version: API Help (English only) 2018 SP05

To disable Web help from within SOLIDWORKS and use local help instead, click Help > Use SOLIDWORKS Web Help.

To report problems encountered with the Web help interface and search, contact your local support representative. To provide feedback on individual help topics, use the “Feedback on this topic” link on the individual topic page.