Hello,
I'm migrating my code from Intent 2012 to 2013 and having problems with the :IVSketchedSymbol" design.
For some reason it is throwing an exception when providing leaderPoints values.
Does anyone has an example on the syntax for this parameter?
This is the code that used to work on 2012 and previous but not on 2013 ETO.
{TopView.origin + Vector(ScaledModelLength * .65, ScaledModelWidth * .6, 0),
TopView.origin +
Vector((LocalX(DPlateDrain_GrHole_Point)*DrawingScale) , (LocalY(DPlateDrain_GrHole_Point)*DrawingScale), 0)}
Any help is appreciated.
Solved! Go to Solution.
Solved by wayne.brill. Go to Solution.
Sorry,
this is the parameter:
leaderPoints = {TopView.origin +
Vector(ScaledModelLength * .65, ScaledModelWidth * .6, 0), _
TopView.origin +
Vector((LocalX(DPlateDrain_GrHole_Point)*DrawingScale) , (LocalY(DPlateDrain_GrHole_Point)*DrawingScale), 0)}
Hi,
I am able to recreate this behavior and have logged an issue with ETO engineering. Here is a work around to consider.
Use an IvLeaderNote with an empty string for the text to create the leader. (leaderPoints for this design does not have the error). Here is what I used to test. The IvSketchSymbol and IvLeaderNote are in the same design. ( IvDrawingSheet)
Child loadSymbol2 As :IvSketchedSymbol
definition = "Load"
symbolOrigin = Point(350,250,0)
promptStrings = {{"user_load", loadStr}}
End Child
Child leaderNote_WB As :IvLeaderNote
formattedText = ""
leaderPoints = {Point(350,250,0),Point(250,50,0)}
End Child
Thanks,
Wayne
Can't find what you're looking for? Ask the community or share your knowledge.