I am trying to write a macro that gathers information aboutthe tip displacement of a wing. The Macro is written in C++ anduses 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 thisfunction:
1. The DispPlane is a "Dispatch pointer to reference entity" - Whatdoes that mean in this instance?
2. the ArraySelectedEntities is an "Array of selected entities" oftype VARIANT. What is the VARIANT Type needed for this specificfunction - if someone could give me a simple example to go by thatwould be extremely helpful (just on how to make the VARIANTreally).
Regards,
Brendan
SolidworksApi macros
status = CWResults->GetDisplacementForEntities ( NComponent,NStepNumber, DispPlane, ArraySelectedEntities, NUnits, ErrorCode,&RetVal)
Looking further at the API I am not sure of 2 things for thisfunction:
1. The DispPlane is a "Dispatch pointer to reference entity" - Whatdoes that mean in this instance?
2. the ArraySelectedEntities is an "Array of selected entities" oftype VARIANT. What is the VARIANT Type needed for this specificfunction - if someone could give me a simple example to go by thatwould be extremely helpful (just on how to make the VARIANTreally).
Regards,
Brendan
SolidworksApi macros