Marker Object

Markers can be created in Maxsurf to mark locations on the hull surface. Normally these markers are located along section lines and hence are associated with sections.

 

There are several Marker Properties as listed:

Property

Type

Description

Height

Double

Set/Get the height (y coord) of the Marker

Index

Long

The reference index for that particular marker

Name

String

The Name for that Marker

Offset

Double

Set/Get the Offset (z coord) of the Marker

Position

Double

Set/Get the Longitudinal Position (x coord) of the Marker

Station

Long

Set/Get the Station that a Marker is associated with

SurfaceID

Long

Set/Get the surface that a Marker is associated with

Type

msMarkerType

Define the type of Marker that a Marker is (Interior, top edge etc.) see page 87 for the complete list.

 

The Marker object can be used to set or get the properties of existing Markers. The object could be used to export a Marker table into Excel, edit or alter the points, and then return them to Maxsurf. The object can also be used to recreate the marker points in AutoCAD, as is shown in the example Importing Markers into AutoCAD on page 77

 

See Also:

Markers on page 25

Importing Markers into AutoCAD on page 77

Marker Example

To set the contents of the Cell Ei (where i is an integer) to the height value of the ith marker

Range("E" & i) = msDesign.Markers(i).Height

 

To set the type of the ith marker to be msMTBottomLeft

msDesign.Markers(i).Type = msMTBottomLeft