Graphisoft®

API Development KitVersion: 18

VectorImage::AddHotspot


Adds a hotspot to the VectorImage.


GSErrCode  AddHotspot (
    short               pen,
    short               layer,
    short               drwIndex,
    const Coord&        pt
);

Parameters

pen
The drawing pen of the hotspot.
layer
The containing layer of the hotspot It should range from 1 to 16.
drwIndex
The drawing index of the hotspot. It influences the drawing order of the item.
pt
The place of the hotspot in the model in meters.

Return value

If the function succeeds, the return value is NoError. If the function fails, the return value is the error code.

Description

Addition always merges the new item to the end of the primitives list but drawing order can differ from placing order.

Requirements

Version:API 10.0 or later, ModelerGraphics 8 or later
Library:ModelerGraphicsImp.lib (Win) or ModelerGraphics.framework (Mac)
Header:VectorImage.hpp