What is igCommand and how can it be used

 

Hello everyone.

I have some code that a consultant wrote a few years ago that  I am making some changes to.  I got to a couple of lines that I don't understand:

     Set Me.igCommand1.Command = Me.oSEApplic

     Set Me.oSCSaveObject.oSEobjApp = Me.igCommand1.Application

it is using a control called igCommand from the Solid Edge Command Control (SECCtl.oca)

It looks like it is being used to create an application object.  If so, what is the difference between this method and using:

     Set oSEobjApp = CreateObject("SolidEdge.Application")

Any feedback would be appreciated.

Thanks.

Carl

 

Posted by: Carl Breving
Post date: 7/21/2008 10:36:45 AM

1 REPLY

RE: What is igCommand and how can it be used

Carl,

 

That is typically used in a .DLL macro. It's not the same as starting a new instance of Solid Edge. You execute a .DLL macro via Solid Edge. When the .DLL get executed, Solid Edge calls Command_Initialize() inside the .DLL. It looks something like:

 

Sub Command_Initialize(BasicCmd As Object)

mfrmMouse.igCommand1.Command = BasicCmd

End Sub

 

Look in the C:\Program Files\Solid Edge VXX\Custom folder for examples.

 

Posted by: Jason Newell
Post date: 7/27/2008 9:30:47 PM