Hide Table of Contents
IGetIconFiles Method (IMacroFeatureData)

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

.NET Syntax

Visual Basic (Declaration) 
Sub IGetIconFiles( _
   ByVal IconCount As System.Integer, _
   ByRef IconFiles As System.String _
) 
Visual Basic (Usage) 
Dim instance As IMacroFeatureData
Dim IconCount As System.Integer
Dim IconFiles As System.String
 
instance.IGetIconFiles(IconCount, IconFiles)
C# 
void IGetIconFiles( 
   System.int IconCount,
   out System.string IconFiles
)
C++/CLI 
void IGetIconFiles( 
&   System.int IconCount,
&   [Out] System.String^ IconFiles
) 

Parameters

IconCount
Number of files for the icons
IconFiles
  • in-process, unmanaged C++: Pointer to an array of file names for the icons (see Remarks)
  • VBA, VB.NET, C#, and C++/CLI: Not supported

See In-process Methods for details about this type of method.

Remarks

Before calling this method, call IMacroFeatureData::GetIconFileCount to determine the size of the array.

The array of the file names for IconFiles 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.

 

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:   IGetIconFiles Method (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) 2020 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.