Hey samho_atom, is there any difference if I run this in E3D instead of PDMS?
Thanks!
[QUOTE=samho_atom;44121]Hi binford6000
A PML.NET object is created and added to the EDG packet's action. EDG is then started from .NET by adding the packet. The packet's action can then raise events witch can be handled in .NET.
First - you must create a "PickAddIn.dll" , see below code.
Second - call start() and add event to your code.
using System;
using System.Collections.Generic;
using System.Text;
using Aveva.PDMS.PMLNet;
using Aveva.Pdms.Geometry;
using Aveva.Pdms.Utilities.CommandLine;
using Aveva.Pdms.Database;
namespace Aveva.PickAddIn
{
///
/// Pick point
///
[PMLNetCallable()]
public class PickPoint
{
public delegate void PointSelectedHandler(double x, double y, double z);
///
/// Entry point method for selected point. The method is called only from PML environment.
///
/// x coordinate
/// y coordinate
/// z coordinate
[PMLNetCallable()]
public void PmlPointSelected(double x, double y, double z)
{
if (mPointSelected != null)
{
mPointSelected(x, y, z);
}
}
Hey samho_atom, is there any difference if I run this in E3D instead of PDMS?
Thanks!
[QUOTE=samho_atom;44121]Hi binford6000
A PML.NET object is created and added to the EDG packet's action. EDG is then started from .NET by adding the packet. The packet's action can then raise events witch can be handled in .NET.
First - you must create a "PickAddIn.dll" , see below code.
Second - call start() and add event to your code.
using System;
using System.Collections.Generic;
using System.Text;
using Aveva.PDMS.PMLNet;
using Aveva.Pdms.Geometry;
using Aveva.Pdms.Utilities.CommandLine;
using Aveva.Pdms.Database;
namespace Aveva.PickAddIn
{
///
/// Pick point
///
[PMLNetCallable()]
public class PickPoint
{
public delegate void PointSelectedHandler(double x, double y, double z);
///
/// Entry point method for selected point. The method is called only from PML environment.
///
/// x coordinate
/// y coordinate
/// z coordinate
[PMLNetCallable()]
public void PmlPointSelected(double x, double y, double z)
{
if (mPointSelected != null)
{
mPointSelected(x, y, z);
}
}