IPoint Interface

IPoint Interface | Send Feedback
See Also Members Example

Allows access to a point.

# Syntax

Visual Basic |
--- | ---
    Public Interface IPoint

C# |
--- | ---
    public interface IPoint

JavaScript |
--- | ---
    Object dsPoint

COM native C++ |
--- | ---
    interface IPoint

C++ |
--- | ---
    class dsPoint

# Example

#### COM native C++

If the selected object is an IPoint object, then get the object.

...
//Write number of selected objects to output file
long selCount = dsSelManager->GetSelectedObjectCount( dsSelectionSetType_Current );
strPrint.Format( L"Selected objects: (%d):\r\n", selCount );
fileOutput.WriteString( strPrint );
if( selCount > 0 )
{
for( long i = 0; i < selCount; ++i )
{
//Get selected object type
dsObjectType_e retObjType;
IDispatchPtr selObj = dsSelManager->GetSelectedObject( dsSelectionSetType_Current, i, &retObjType );
//If selected object is point entity
if( dsPointType == retObjType )
{
IPointPtr dsPoint( selObj );
fileOutput.WriteString( L"Point\r\n" );
//Do dump for point entity
//See the entity's Layer, LineScale, LineStyle, LineWeight,
//or Visible property for the DumpGraphicsEntity template
CAddinDumpManager::DumpGraphicsEntity<IPointPtr>( dsPoint, fileOutput );
...

# Example

Insert Point (C#)
Insert Point (VB.NET)
Insert Point (VBA)

# Accessors

IDocument::GetObjectByHandle

ISelectionManager::GetSelectedObject

ISelectionManager::GetSelectedObjects

ISketchManager::GetEntities

ISketchManager::InsertPoint

# Object Model

Point

# See Also

####

IPoint Members
Interop.dsAutomation Namespace