Hide Table of Contents
Display3 Method (IBody2)

Displays a temporary body in the context of the specified part or component.

.NET Syntax

Visual Basic (Declaration) 
Function Display3( _
   ByVal Component As System.Object, _
   ByVal Color As System.Integer, _
   ByVal Option As System.Integer _
) As System.Integer
Visual Basic (Usage) 
Dim instance As IBody2
Dim Component As System.Object
Dim Color As System.Integer
Dim Option As System.Integer
Dim value As System.Integer
 
value = instance.Display3(Component, Color, Option)
C# 
System.int Display3( 
   System.object Component,
   System.int Color,
   System.int Option
)
C++/CLI 
System.int Display3( 
&   System.Object^ Component,
&   System.int Color,
&   System.int Option
) 

Parameters

Component
Part or component where the body exists
Color
COLORREF value
Option
Selection state of temporary body as defined by swTempBodySelectOptions_e

Return Value

  • 0 = Success

  • 1 = Failed because you did not get the body before using this method

  • 2 = Invalid component

  • 3 = Not a part instance

Example

Remarks

Using this method, you can select temporary bodies. You can then assign colors to faces on temporary bodies and to entire temporary bodies using IFace2::MaterialPropertyValues or IFace2::IMaterialPropertyValues and IBody2::MaterialPropertyValues2 or IBody2::IMaterialPropertyValues2. To determine if a body is temporary, call IBody2::IsTemporaryBody.

If you specify swTempBodySelectable for the option argument, then the blocking state is set to swModifyBlock. The blocking state is unset after IBody2::Hide or IBody2::IHide is called.

The component cannot be in a subassembly.

 

See Also

Availability

SOLIDWORKS 2007 FCS, Revision Number 15


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:   Display3 Method (IBody2)
*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) 2017 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.