how to pass the VARIANT argument in this functioin?
-
I am programming with the API of Autodesk Inventor(a CAD software). and there is a function which is described in its documentation below:
Profiles.AddForSolid Method:
Method that creates a profile containing multiple paths for creating solid features.
AddForSolid(Combine As Boolean = True,Curves As Variant,reserved As Variant)As Profile
Combine
Optional input Boolean that specifies ......(the following info doesn't help, so I leave it out)
Curves
Optional input ObjectCollection that contains sketch curves. The method will create a profile consisting of only those paths that are comprised of the exact set of sketch curves specified in the ObjectCollection. If not specified, all the possible profile paths are included. This argument is ignored if the Combine argument is specified to be True.
reserved
Optional input Variant reserved for future use. This argument is currently ignored.while the corresponding wrapper class in the rxInventor.tli is declared as:
HRESULT Profiles::AddForSolid ( VARIANT_BOOL Combine, const VARIANT & Curves, const VARIANT & reserved, struct Profile * * _presult )
I have no idea how to pass the paramter const VARIANT & Curves, could anybody help me ? Thank you very much!!! ------------------- I am learning C++ and English
-
I am programming with the API of Autodesk Inventor(a CAD software). and there is a function which is described in its documentation below:
Profiles.AddForSolid Method:
Method that creates a profile containing multiple paths for creating solid features.
AddForSolid(Combine As Boolean = True,Curves As Variant,reserved As Variant)As Profile
Combine
Optional input Boolean that specifies ......(the following info doesn't help, so I leave it out)
Curves
Optional input ObjectCollection that contains sketch curves. The method will create a profile consisting of only those paths that are comprised of the exact set of sketch curves specified in the ObjectCollection. If not specified, all the possible profile paths are included. This argument is ignored if the Combine argument is specified to be True.
reserved
Optional input Variant reserved for future use. This argument is currently ignored.while the corresponding wrapper class in the rxInventor.tli is declared as:
HRESULT Profiles::AddForSolid ( VARIANT_BOOL Combine, const VARIANT & Curves, const VARIANT & reserved, struct Profile * * _presult )
I have no idea how to pass the paramter const VARIANT & Curves, could anybody help me ? Thank you very much!!! ------------------- I am learning C++ and English
-
Thanks for the reply (you are one further than many posters that find the answer themsleves), but to make it wonderful, next time, explain also HOW you made it (for other users that may be interested by the answer) ;) ~RaGE();
I found that it was one of my mistakes that made the easy problem much more complicated. if anybody runs into the same problem, just feel free to email me, I will be happy to help you as soon as possible! my email: ewighell@hotmail.com I must addmit ,I have got a lot of helps from codeproject and feel so grateful that I will try my best to help others. ------------------- I am learning C++ and English