Can't set SketchedSymbol.Scale Property

Can't set SketchedSymbol.Scale Property

Anonymous
Not applicable
514 Views
4 Replies
Message 1 of 5

Can't set SketchedSymbol.Scale Property

Anonymous
Not applicable
{color:#3366ff}Inventor 2010 SP-2 32bit Build 260 on Windows XP{color}

I am trying to write a simple macro to rescale certain Sketched Symbols in a drawing sheet.

This line fails with:
oSktSym.Scale=0.5 "Compile Error- Expected ("

This happens in VBA, VB6 and VB.Net 2008
0 Likes
515 Views
4 Replies
Replies (4)
Message 2 of 5

Anonymous
Not applicable

Try:

 

Dim dblScale As Double = 0.5

oSktSym.Scale = dblScale






брайян р.
ивашкевич


style="FONT-FAMILY: Verdana; FONT-SIZE: 14pt">inventor
specialist
0 Likes
Message 3 of 5

Anonymous
Not applicable
Been there done that....

This issue happens at design time.
Just type in sketchedSymbol.Scale = 1 and then hit enter.... ERROR
0 Likes
Message 4 of 5

Anonymous
Not applicable

Try:

 

oSktSym.[Scale] = dblScale






брайян р.
ивашкевич


style="FONT-FAMILY: Verdana; FONT-SIZE: 14pt">inventor
specialist
0 Likes
Message 5 of 5

Anonymous
Not applicable
That seems to have worked.



Thanks!
0 Likes