Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
BLBrendan L06/02/2009
I am trying to write a macro that gathers information about
the tip displacement of a wing. The Macro is written in C++ and
uses the COM interface. The function I need to use is:
status = CWResults->GetDisplacementForEntities ( NComponent, NStepNumber, DispPlane, ArraySelectedEntities, NUnits, ErrorCode, &RetVal)
Looking further at the API I am not sure of 2 things for this function:
1. The DispPlane is a "Dispatch pointer to reference entity" - What does that mean in this instance?
2. the ArraySelectedEntities is an "Array of selected entities" of type VARIANT. What is the VARIANT Type needed for this specific function - if someone could give me a simple example to go by that would be extremely helpful (just on how to make the VARIANT really).
Regards,
Brendan
status = CWResults->GetDisplacementForEntities ( NComponent, NStepNumber, DispPlane, ArraySelectedEntities, NUnits, ErrorCode, &RetVal)
Looking further at the API I am not sure of 2 things for this function:
1. The DispPlane is a "Dispatch pointer to reference entity" - What does that mean in this instance?
2. the ArraySelectedEntities is an "Array of selected entities" of type VARIANT. What is the VARIANT Type needed for this specific function - if someone could give me a simple example to go by that would be extremely helpful (just on how to make the VARIANT really).
Regards,
Brendan