All Frameworks  Object Hierarchy  This Framework  Indexes   

Marker3Ds (Collection)

A collection of Marker3D objects.

The method Product.GetTechnologicalObject ("Marker3Ds") on the root product retrieves this collection.


Method Index

Add3DText
Creates a text marker 3D and adds it to the marker 3D collection.
Item
Returns a marker 3D using its index from the Marker3Ds collection.
Remove
Removes a marker 3D from the Marker3Ds collection.

Methods


o Func Add3DText( iTextCoordinates,
iText,
iObjectCoordinates,
iObject) As
Creates a text marker 3D and adds it to the marker 3D collection. The bottom-left corner of the text is anchored to a given point.
Parameters:
iTextCoordinates
The coordinates of the text anchor point
  • iTextCoordinates(0) is the X coordinate of the text anchor point
  • iTextCoordinates(1) is the Y coordinate of the text anchor point
  • iTextCoordinates(2) is the Z coordinate of the text anchor point
iText
The text
iObjectCoordinates
The coordinates of the anchor of the marker 3D on the object
  • iObjectCoordinates(0) is the X coordinate of the object anchor point
  • iObjectCoordinates(1) is the Y coordinate of the object anchor point
  • iObjectCoordinates(2) is the Z coordinate of the object anchor point
iObject
The object which supports the text.
Returns:
The created marker 3D
Example:
This example creates a new marker 3D in the TheMarker3Ds collection.
    Dim NewMarker3DText As Marker3D
    Set NewMarker3DText = TheMarker3Ds.Add3DText(Position1, "example", Position2, Product2)
    
o Func Item( iIndex) As
Returns a marker 3D using its index from the Marker3Ds collection.
Parameters:
iIndex
The index or the name of the marker 3D to retrieve from the collection of Marker3Ds. As a numerics, this index is the rank of the marker 3D in the collection. The index of the first Marker3D in the collection is 1, and the index of the last Marker3D is Count. As a string, it is the name you assigned to the Marker3D.
Returns:
The retrieved marker 3D
Example:
This example retrieves in ThisMarker3D the ninth marker 3D, and in ThatMarker3D the marker 3D named Marker3D3 from the TheMarker3Ds collection.
    Dim ThisMarker3D As Marker3D
    Set ThisMarker3D = TheMarker3Ds.Item(9)
    Dim ThatMarker3D As Marker3D
    Set ThatMarker3D = TheMarker3Ds.Item("Marker3D3")
    
o Sub Remove( iIndex)
Removes a marker 3D from the Marker3Ds collection.
Parameters:
iIndex
The index or the name of the marker 3D to retrieve from the collection of Marker3Ds. As a numerics, this index is the rank of the marker 3D in the collection. The index of the first marker 3D in the collection is 1, and the index of the last marker 3D is Count. As a string, it is the name you assigned to the marker 3D.
Example:
The following example removes the tenth marker 3D and the marker 3D named Marker3D2 from the TheMarker3Ds collection.
    TheMarker3Ds.Remove(10)
    TheMarker3Ds.Remove("Marker3D2")
    

Copyright © 2003, Dassault Systèmes. All rights reserved.