Preview | SOLIDWORKS USER FORUM
Use your SOLIDWORKS ID or 3DEXPERIENCE ID to log in.
apazer pouity12/10/2024
Hello everyone,
I have this error: “Compilation error: expected function or variable”
The error is on the following line and the “GetTransparency” function
Debug.Print swSketchPicture.GetTransparency(Style, Transparency, MatchingColor, MatchingTolerance)
I am using SolidWorks 2022 and the code is as follows:
Sub recupTranparenceImage() Dim swApp As SldWorks.SldWorks Dim swModel As SldWorks.ModelDoc2 Dim