Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
rogmitch
542 Views, 2 Replies

Unable to scale a sketch symbol

Can anyone please explain why the following code generates a Syntax error for the 'oSymbol.Scale=0.5' .  If I remove the offending 'Scale' line of code then my symbols rotate as expected?

 

Thanks

 

Roger Mitchell

        Dim oSymbol As SketchedSymbol
        Dim oSymbols As SketchedSymbols
        For Each oSymbol In oSymbols
            oSymbol.Scale=0.5  'This line gives a Syntax error
            oSymbol.Rotation = 1.571  'This works as expected
        Next